Re: How to Debug Parse Errors
My problem has been resolved. The line endings were messed up. On my machine, I don't have dos2unix, but I do have dosunix which the man page said should do the same translation. Except in this case, it removed all line endings (plus some characters in column 1 and most of the ending '}'s ). I had to reinsert all of the line endings and missing characters with Nedit. Then ly2dvi processed the file properly. LaTex barffed on the <8A> character, but I just replaced it with an 'a' and everything processed properly. I guess I'll have to unzip and untar the source code to get good copies of example files instead of saving them from the web site through my browser. On Tuesday, December 3, 2002, at 04:56 PM, Simon Bailey wrote: On Tue, 2002-12-03 at 23:23, Richard Grubb wrote: Running "less standchen.ly" shows the only "non-printable" characters are a bunch of ^M (Which are end-of-line characters; Unix or Mac, I would have to look up which it is) and one <8A> in the Mutopia header for the title (an "a" with some accent mark in Standchen). ^M are end of line characters in dos. <8A> = ä, this one shouldnt be a problem for lilypond. i don't know about the ^M's though. you might try running the file through dos2unix ('man dos2unix' for more info), then try ly2dvi on it. greetings, simon. -- Don't be irreplaceable, if you can't be replaced, you can't be promoted. ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Using Lilypond with OpenOffice?
Hi! I'm writing a document on music theory and New Standard Tuning (Robert Fripp's fifths-based guitar tuning). The first version of this was done with Word and Visio (hiss!); the new version is in OpenOffice. I'm adding notation to the new version of the doc (the first version only had fretboard diagrams), and would love to use Lilypond and the GUI front end to generate it. I want the images to scale (I don't want pixmaps). I guess EPS is possible, but that seems like heavy overkill for the dozens of little musical fragments that I want to build. >From what I've been reading I can't quite figure out how to make Lilypond and OpenOffice play together nicely without writing a bunch of software myself, which I don't have time to do (e.g., writing an SVG backend for Lilypond and then a way to import SVG directly into OpenOffice). Do you have any clues for me about who else might be working on this? I really don't want to build notation note-by-note in OpenOffice Draw! Thanks. ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: How to Debug Parse Errors
On Tue, 2002-12-03 at 23:23, Richard Grubb wrote: > Running "less standchen.ly" shows the only "non-printable" characters > are a bunch of ^M (Which are end-of-line characters; Unix or Mac, I > would have to look up which it is) and one <8A> in the Mutopia header > for the title (an "a" with some accent mark in Standchen). ^M are end of line characters in dos. <8A> = ä, this one shouldnt be a problem for lilypond. i don't know about the ^M's though. you might try running the file through dos2unix ('man dos2unix' for more info), then try ly2dvi on it. greetings, simon. -- Don't be irreplaceable, if you can't be replaced, you can't be promoted. ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: How to Debug Parse Errors
I actually used the "Save" or "Save As" menu in IE5 to save the example files. Running "less standchen.ly" shows the only "non-printable" characters are a bunch of ^M (Which are end-of-line characters; Unix or Mac, I would have to look up which it is) and one <8A> in the Mutopia header for the title (an "a" with some accent mark in Standchen). On Tuesday, December 3, 2002, at 04:07 PM, Erik Sandberg wrote: On Tuesday 03 December 2002 21.58, Richard Grubb wrote: I am new to Lilypond. I have 1.6.0 running on MacOSX 10.1.5. I can create .ly files from descriptions in the tutorial and run them through ly2dvi, but have not been able to run the first two examples I saved from the lilypond.org website. When I run ly2dvi -P standchen.ly, I get the following output: error: parse error, unexpected $, expecting STRING or '}' That one occurs to me too, sometimes. The problem is probably that you copied the file through the clipboard or something, and some of the spaces are actually some other kind of character which Lilypond treats as an illegal character (you can see that the characters are distinct from spaces if you run "less file.ly"). A solution is to replace all those spaces with normal spaces. Erik ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: How to Debug Parse Errors
On Tuesday 03 December 2002 21.58, Richard Grubb wrote: > I am new to Lilypond. I have 1.6.0 running on MacOSX 10.1.5. I can > create .ly files from descriptions in the tutorial and run them through > ly2dvi, but have not been able to run the first two examples I saved > from the lilypond.org website. When I run ly2dvi -P standchen.ly, I get > the following output: > > error: parse error, unexpected $, expecting STRING or '}' That one occurs to me too, sometimes. The problem is probably that you copied the file through the clipboard or something, and some of the spaces are actually some other kind of character which Lilypond treats as an illegal character (you can see that the characters are distinct from spaces if you run "less file.ly"). A solution is to replace all those spaces with normal spaces. Erik ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
How to Debug Parse Errors
I am new to Lilypond. I have 1.6.0 running on MacOSX 10.1.5. I can create .ly files from descriptions in the tutorial and run them through ly2dvi, but have not been able to run the first two examples I saved from the lilypond.org website. When I run ly2dvi -P standchen.ly, I get the following output: error: parse error, unexpected $, expecting STRING or '}' error: LilyPond failed on the input file (exit status 1). Traceback (most recent call last): File "/sw/bin/ly2dvi", line 1000, in ? run_lilypond (files, dep_prefix) File "/sw/bin/ly2dvi", line 512, in run_lilypond error ( "\n" \ File "/sw/bin/ly2dvi", line 144, in error raise _ ("Exiting ... ") I checked the file and don't see any obvious missing '}'. So what does the "unexpected $" mean? Unexpected END-OF-FILE? When I try another file, petite-ouverture-a-danser.ly, I least get a line and column number where the parser gives up, and so I have more info to work with. ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book and TeX pool size
As an alternative to editing the texmf.cnf file, you could set the corresponding environment variables. This is useful, for example, if you don't want to change a system-wide texmf.cnf file. The following settings are done by default in the script ly2dvi: export pool_size=25 export extra_mem_top=100 export extra_mem_bottom=100 These settings could, for example, be done in your personal ~/.profile file. Maybe we should include them by default in the lilypond-profile.sh and lilypond-login.sh files? /Mats David Bobroff wrote: Now I've hit a problem which is probably peripheral to Lilypond. I'm preparing a booklet of scales/exercises using lilypond-book. All was going well (once I fixed the side-by-side problem) until I added another page. The new section I'm trying to add compiles fine by itself but when I add it to the rest of the file I get a TeX error: ! TeX capacity exceeded, sorry [pool size=71042]. Do I need to increase my pool size, or is there another way around this? If I need to increase the pool size can somebody tell me how? Thanks, David Bobroff ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~matsb = ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
pool_size fixed
Thanks Jan, I had trouble finding the right file to edit. Windows had put a cute little icon on texmf.cnf so I missed it and was looking at two other files called texmf.cnf-orig and texmf.cnf.cygwin-dist. Found the right file but pool_free=5 was not enough, pool_free=50 was enough but is perhaps more than I need. Is there a problem with too much, or is it dependent on RAM? My knowlege of the internals of TeX is full of gaps. Thanks again, David Bobroff ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book and TeX pool size
Jan Nieuwenhuizen <[EMAIL PROTECTED]> writes: > Edit texmf.cnf, or set environment var poolsize. oops: pool_size -- Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book and TeX pool size
David Bobroff <[EMAIL PROTECTED]> writes: > ! TeX capacity exceeded, sorry [pool size=71042]. > > Do I need to increase my pool size, or is there another way around this? > If I need to increase the pool size can somebody tell me how? Edit texmf.cnf, or set environment var poolsize. Btw, Google has great knowledge of these kind of things, try: TeX capacity exceeded, sorry pool size Jan. -- Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
lilypond-book and TeX pool size
Now I've hit a problem which is probably peripheral to Lilypond. I'm preparing a booklet of scales/exercises using lilypond-book. All was going well (once I fixed the side-by-side problem) until I added another page. The new section I'm trying to add compiles fine by itself but when I add it to the rest of the file I get a TeX error: ! TeX capacity exceeded, sorry [pool size=71042]. Do I need to increase my pool size, or is there another way around this? If I need to increase the pool size can somebody tell me how? Thanks, David Bobroff ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user