Re: lilypond-book on windows

2012-01-13 Thread David Kastrup
David Kastrup writes: > Graham Percival writes: > >> On Thu, Jan 12, 2012 at 07:00:27PM +0100, David Kastrup wrote: >>> Reinhold Kainhofer writes: >>> >>> > However, even for HTML we need some kind of line width so that we can >>> > line-break all lilypond snippets. >>> >>> That line width sh

Re: lilypond-book on windows

2012-01-13 Thread David Kastrup
Graham Percival writes: > On Thu, Jan 12, 2012 at 07:00:27PM +0100, David Kastrup wrote: >> Reinhold Kainhofer writes: >> >> > However, even for HTML we need some kind of line width so that we can >> > line-break all lilypond snippets. >> >> That line width should be based on a pixel width (10

Re: lilypond-book on windows

2012-01-12 Thread Graham Percival
On Thu, Jan 12, 2012 at 07:00:27PM +0100, David Kastrup wrote: > Reinhold Kainhofer writes: > > > However, even for HTML we need some kind of line width so that we can > > line-break all lilypond snippets. > > That line width should be based on a pixel width (1024 is probably > reasonably). It

Re: lilypond-book on windows

2012-01-12 Thread Graham Percival
On Thu, Jan 12, 2012 at 06:50:56PM +0100, Reinhold Kainhofer wrote: > The problem is just that the subprocess module needs msvcrt on Windows, > but that python as provided by lilypond does not ship that module. This does not appear to have been a problem for the past few releases. > I would rathe

Re: lilypond-book on windows

2012-01-12 Thread David Kastrup
Reinhold Kainhofer writes: > On 12/01/2012 09:06, David Kastrup wrote: >> "Trevor Daniels" writes: >> >>> Trevor Daniels wrote Wednesday, January 11, 2012 6:49 PM >>> To carry things to their logical conclusion I'm installing MikTeX to see if it is possible to make Reinhold's code work

Re: lilypond-book on windows

2012-01-12 Thread Reinhold Kainhofer
On 12/01/2012 09:06, David Kastrup wrote: > "Trevor Daniels" writes: > >> Trevor Daniels wrote Wednesday, January 11, 2012 6:49 PM >> >>> To carry things to their logical conclusion I'm installing MikTeX to >>> see if it is possible to make Reinhold's code work as intended on >>> Windows. Even if

Re: lilypond-book on windows

2012-01-12 Thread David Kastrup
"Trevor Daniels" writes: > Trevor Daniels wrote Wednesday, January 11, 2012 6:49 PM > >> To carry things to their logical conclusion I'm installing MikTeX to >> see if it is possible to make Reinhold's code work as intended on >> Windows. Even if it does, I could not recommend downloading >> 167

Re: lilypond-book on windows

2012-01-11 Thread Julien Rioux
On 11/01/2012 7:46 PM, Reinhold Kainhofer wrote: On 2012-01-11 15:12, Julien Rioux wrote: One problem that exists here for sure for windows is the definition of cmd which include "LC_ALL=C texi2pdf ...". LC_ALL is an environment variable that sets the locale. I think this is here to ensure that

Re: lilypond-book on windows

2012-01-11 Thread Reinhold Kainhofer
On 2012-01-11 15:12, Julien Rioux wrote: One problem that exists here for sure for windows is the definition of cmd which include "LC_ALL=C texi2pdf ...". LC_ALL is an environment variable that sets the locale. I think this is here to ensure that the output from texi2pdf is in English and can b

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Trevor Daniels wrote Wednesday, January 11, 2012 11:23 PM Well, MikTex contains texi2dvi.exe, so I renamed this to texi2pdf.exe and added its directory to the MinGW path. lilypond-book and Reinhold's code then seems to work correctly, provided I comment out the _sleep call in threading.py and

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Trevor Daniels wrote Wednesday, January 11, 2012 6:49 PM To carry things to their logical conclusion I'm installing MikTeX to see if it is possible to make Reinhold's code work as intended on Windows. Even if it does, I could not recommend downloading 167Mbytes of MikTeX just to pick up these

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Phil Holmes wrote Wednesday, January 11, 2012 5:34 PM I'd be a little wary of simply making this work on Windows by commenting code out, without ensuring there is no effect on other platforms. I'd be even more wary of doing this in a Python delivered file. It'd be a shame to break the doc b

Re: lilypond-book on windows

2012-01-11 Thread Werner LEMBERG
[Note that I'm not a Windows user.] > It's all a bit academic if no one can point me to a Windows > implementation of texi2pdf or texi2dvi, though. Perhaps trying the `texify' program from MikTeX? Look here http://ftp.uni-erlangen.de/mirrors/CTAN/systems/win32/miktex/tm/packages/ and searc

Re: lilypond-book on windows

2012-01-11 Thread Phil Holmes
- Original Message - From: "Trevor Daniels" To: "Trevor Daniels" ; "Graham Percival" ; Cc: "Phil Holmes" Sent: Wednesday, January 11, 2012 2:32 PM Subject: Re: lilypond-book on windows Trevor Daniels wrote Running lilypond-book lilypond-b

Re: lilypond-book on windows

2012-01-11 Thread David Kastrup
catch...@philholmes.me.uk writes: > The other aspect to this is that lilypond-book hasn't been working on > Windows for months and I believe we had one "complaint". Using TeX on > windows doesn't seem to me to be something most users would do - if I > was writing a book, I'd do it in Word and pas

Re: lilypond-book on windows

2012-01-11 Thread catchall
Quoting Graham Percival : I'm going to pursue to the docs in more detail now. http://docs.python.org/release/2.4/lib/node227.html - Graham I honestly don't think it's a good use of time pursuing this. To recap. The failing part is the bit Reinhold added to detect linewidth - and at the

Re: lilypond-book on windows

2012-01-11 Thread Graham Percival
On Wed, Jan 11, 2012 at 02:42:19PM -, Trevor Daniels wrote: > > It's all a bit academic if no one can point me to a Windows implementation > of texi2pdf or texi2dvi, though. www.pinteric.com/miktex.html ? Cygwin also has latex. I see a bunch of hits in google for "texi2pdf windows", although

Re: lilypond-book on windows

2012-01-11 Thread Julien Rioux
On 11/01/2012 9:42 AM, Trevor Daniels wrote: Julien Rioux I would try removing one-by-one the arguments from the subprocess.Popen call, e.g., remove universal_newlines=True, remove shell=True, remove stderr=subprocess.PIPE, etc. one-by-one. See if you get further. Yes, I tried this earlier.

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Julien Rioux I would try removing one-by-one the arguments from the subprocess.Popen call, e.g., remove universal_newlines=True, remove shell=True, remove stderr=subprocess.PIPE, etc. one-by-one. See if you get further. Yes, I tried this earlier. Setting universal_newlines False bypasses th

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Trevor Daniels wrote Running lilypond-book lilypond-book.py (GNU LilyPond) 2.15.25 Reading C:/Users/Trevor/LilyPond-git/Documentation/notation/contemporary.itely.. . Running texi2pdf on file c:\users\trevor\appdata\local\temp\tmpt4vqnk.texi to de tect default page settings. Traceback (most

Re: lilypond-book on windows

2012-01-11 Thread Julien Rioux
On 11/01/2012 6:17 AM, Trevor Daniels wrote: Graham, you wrote Wednesday, January 11, 2012 10:43 AM Just as a quick check of the ridiculous: could you open up lilypond-book.py and confirm that line 213 is: stdout=subprocess.PIPE, stderr=subprocess.PIPE) there might be an off-by-one thing happe

Re: lilypond-book on windows

2012-01-11 Thread Janek Warchoł
2012/1/11 Graham Percival : > On Wed, Jan 11, 2012 at 07:28:18AM +0100, Janek Warchoł wrote: >> This might be a stupid question, but i never used lilypond-book >> before: should i call it without any input file?  If no, can you >> provide example input? > > Read the Usage manual.  Specifically the

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Graham, you wrote Wednesday, January 11, 2012 10:43 AM Just as a quick check of the ridiculous: could you open up lilypond-book.py and confirm that line 213 is: stdout=subprocess.PIPE, stderr=subprocess.PIPE) there might be an off-by-one thing happening. Yes it is. if that's the case

Re: lilypond-book on windows

2012-01-11 Thread Graham Percival
On Wed, Jan 11, 2012 at 09:41:01AM -, Trevor Daniels wrote: > > File "out/book_texinfo.py", line 213, in get_texinfo_width_indent > File "/usr/lib/python2.4/subprocess.py", line 549, in __init__ > OSError: [Errno 22] Invalid argument > Lilypond-book returned code 1 excellent, I can fix that

Re: lilypond-book on windows

2012-01-11 Thread Trevor Daniels
Graham Percival wrote Wednesday, January 11, 2012 6:21 AM Please test this version: http://lilypond.org/~graham/lilypond-2.15.25-1.mingw.exe add it to your PATH, then me exactly what you see when you try to call lilypond-book. Running lilypond-book lilypond-book.py (GNU LilyPond) 2.15.25 Read

Re: lilypond-book on windows

2012-01-10 Thread Phil Holmes
- Original Message - From: "Janek Warchoł" To: "Graham Percival" Cc: ; "Phil Holmes" Sent: Wednesday, January 11, 2012 6:28 AM Subject: Re: lilypond-book on windows Graham, 2012/1/11 Graham Percival : Please test this version: http://lilypond.

Re: lilypond-book on windows

2012-01-10 Thread Graham Percival
On Wed, Jan 11, 2012 at 07:28:18AM +0100, Janek Warchoł wrote: > This might be a stupid question, but i never used lilypond-book > before: should i call it without any input file? If no, can you > provide example input? Read the Usage manual. Specifically the lilypond-book chapter. - Graham __

Re: lilypond-book on windows

2012-01-10 Thread Janek Warchoł
Graham, 2012/1/11 Graham Percival : > Please test this version: > http://lilypond.org/~graham/lilypond-2.15.25-1.mingw.exe > add it to your PATH, then me exactly what you see when you try to > call lilypond-book. This might be a stupid question, but i never used lilypond-book before: should i cal

lilypond-book on windows

2012-01-10 Thread Graham Percival
ok, I'm really confused with all the reports about what happens on all sorts of different lilypond versions. Please test this version: http://lilypond.org/~graham/lilypond-2.15.25-1.mingw.exe add it to your PATH, then me exactly what you see when you try to call lilypond-book. I have various susp