[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lilypond-book in Windows. Was: Why is gs-font-load set to #t in Windows
From: |
Mats Bengtsson |
Subject: |
lilypond-book in Windows. Was: Why is gs-font-load set to #t in Windows package |
Date: |
Fri, 25 Aug 2006 21:37:00 +0200 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.0.5) |
Quoting Han-Wen Nienhuys <address@hidden>:
Mats Bengtsson wrote:
- Unless you include dos versions of ps2pdf, the font paths in
.psfonts (when fs-font-load=#t) should use windows style separators.
Of course, you could claim that users of lilypond-book should use
cygwin, but in my opinion, that's just a good way to scare Windows
users from even trying LilyPond.
My preference is actually scaring people into using pdflatex.
PDFLaTeX is much saner approach than the DVI/DVIPS/PS2PDF route.
Fine with me! However, lilypond-book currently fails in several ways
in Windows.
- Problem 1: The python package is broken, so lilypond-book fails with:
AttributeError: 'module' object has no attribute 'pipe'
Workaround: Install the native Python package and call lilypond-book
using
"C:\Program Files\Python2.4\python.exe" "C:\Program
Files\LilyPond\usr\bin\lilypond-book.py" ...
- Problem 2: It seems that you can't use single quotes to quote
arguments in Windows. The printouts from lilypond-book -V --pdf ... include:
--------------------------------------------------------
Processing...
Invoking `lilypond -b eps -I 'C:\Documents and Settings\mabe\My
Documents\lily'
--formats=eps --pdf -deps-font-include -dgs-font-load --verbose
-dread-file-
list -deps-pad-boxes snippet-names'GNU LilyPond 2.9.16
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
warning: can't find file: `'
Processing `snippet-names'
Parsing...
snippet-names:1:7: error: syntax error, unexpected '-', expecting '='
snippet
-map.ly
--------------------------------------------------------
Double quotes seem to work much better and shouldn't cause any
problems in Linux and OSX(?), therefore I proposed a patch in
http://lists.gnu.org/archive/html/bug-lilypond/2006-03/msg00182.html
but it was never accepted.
Problem 3: Even with that patch, lilypond-book --pdf ... fails with
---------------------------------------------------------
Processing...
Running lilypond...GNU LilyPond 2.9.16
warning: can't find file: `'
Processing `lily-840810370.ly'
Parsing...
Interpreting music... [1]
Preprocessing graphical objects...
Calculating line breaks... [2]
Drawing systems...
Writing lily-840810370-systems.tex...
Writing lily-840810370-systems.texi...
Layout output to `lily-840810370-1.eps'...
Converting to `lily-840810370-1.pdf'...
Layout output to `lily-840810370.eps'...
Converting to `lily-840810370.pdf'...
error: failed files: "snippet-map.ly\x0d"
command failed: lilypond -b eps -I "C:\\Documents and
Settings\\mabe\\My Documen
ts\\lily" --formats=eps --pdf -deps-font-include -dgs-font-load
-dread-file-li
st -deps-pad-boxes snippet-names
Child returned 1
----------------------------------------------------------------
and if I run with --verbose, the warning: can't find file: `'
appears in the following context:
----------------------------------------------------------------
...
Evaluating (begin #t (map (lambda (x) (ly:set-option (car x) (cdr x)))
(list (co
ns 'eps-font-include #t)
(cons 'gs-font-load #t)
(cons 'read-file-list #t)
(cons 'eps-pad-boxes #t)
)))[snippet-names]
warning: can't find file: `'
Processing `lily-840810370.ly'
...
----------------------------------------------------------------
However, all lily-*.ly files are processed correctly so if I just
rerun lilypond-book once more, it will succeed and it works well
to produce a PDF using pdflatex from MikTeX.
/Mats