]> git.donarmstrong.com Git - lilypond.git/commitdiff
* ps/music-drawing-routines.ps:
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 24 Feb 2004 22:48:00 +0000 (22:48 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 24 Feb 2004 22:48:00 +0000 (22:48 +0000)
* ps/lilyponddefs.ps: Add end markers.

ChangeLog
ps/lilyponddefs.ps
ps/music-drawing-routines.ps
scm/output-ps.scm
scripts/lilypond.py

index 6882c0fa331c9cf7670f08ea59aea483e72cc662..9084a40d20ee62ecfc9e444615152ed2d38bcc58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-24  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * ps/music-drawing-routines.ps: 
+       * ps/lilyponddefs.ps: Add end markers.
+
 2004-02-24  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * lily/hyphen-engraver.cc (finalize): suicide unterminated hyphens.
@@ -7,6 +12,8 @@
 
 2004-02-24  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * scripts/lilypond.py (find_pfa_fonts): Bugfix and update.
+
        * scm/output-ps.scm: Resurrect.
        
        * scm/output-tex.scm: Minimal cleanups.
index 991dc58caa7c5263f54dba3720469e3e9a6e6762..cc4bf26f4e8ad04c02b0de118c66667c41b5ea0c 100644 (file)
@@ -1,4 +1,4 @@
-%!PS-Adobe-1.0: lilyponddefs
+%!PS-Adobe-1.0: lilyponddefs.ps
 %
 % Functions for direct PostScript output
 
@@ -221,3 +221,5 @@ make-lilypond-title
 
 % see if we're there...
 % 10 setlinewidth 0 0 moveto 400 800 lineto stroke
+
+% end lilyponddefs.ps
index f3cae4c6a01e5a02fde391fd62ddf92a51397b83..39374dae2176cb367932fd987dbaa60ef9256aee 100644 (file)
        stroke 
 } bind def 
 
+%end music-drawing-routines.ps
index 4bf3f57866d1c80118a0e26b13b8daf92bd5489d..7c67171488c6aeb861ba5770eea1924234954951 100644 (file)
   (string-append
    ;; URG: now we can't use scm output without Lily
    (ly:gulp-file "lilyponddefs.ps")
-   " {exch pop //systemdict /run get exec} "
+   "{exch pop //systemdict /run get exec}\n\n"
    (ly:gulp-file "music-drawing-routines.ps")
-   "{ exch pop //systemdict /run get exec } "
+   "{ exch pop //systemdict /run get exec }\n\n"
    ;; ps-testing wreaks havoc when used with lilypond-book.
    ;;  -- is this still true with new modules system?
 ;;   (if (defined? 'ps-testing) "\n /testing true def" "")
index c5ea0ae984ed0dc17bab6288c2540062a2c9b505..9f2c148e828324719b822fd8ef2dba325186ae8b 100644 (file)
@@ -620,6 +620,8 @@ def generate_dependency_file (depfile, outname):
 
 def find_file_in_path (path, name):
        for d in string.split (path, os.pathsep):
+               if not d:
+                       d = original_dir
                if name in os.listdir (d):
                        return os.path.join (d, name)
 
@@ -633,12 +635,12 @@ def find_pfa_fonts (name):
                ly.error (_ ("not a PostScript file: `%s\'" % name))
                ly.exit (1)
        here = 0
-       m = re.match ('.*?/(feta[-a-z0-9]+) +findfont', s[here:], re.DOTALL)
+       m = re.match ('.*?/([-a-zA-Z]*(feta|parmesan)[-a-z0-9]+) +findfont', s[here:], re.DOTALL)
        pfa = []
        while m:
-               here = m.end (1)
+               here = here + m.end (0)
                pfa.append (m.group (1))
-               m = re.match ('.*?/(feta[-a-z0-9]+) +findfont', s[here:], re.DOTALL)
+               m = re.match ('.*?/([-a-zA-Z]*(feta|parmesan)[-a-z0-9]+) +findfont', s[here:], re.DOTALL)
        return pfa