* ps/lilyponddefs.ps: Add end markers.
+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.
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.
-%!PS-Adobe-1.0: lilyponddefs
+%!PS-Adobe-1.0: lilyponddefs.ps
%
% Functions for direct PostScript output
% see if we're there...
% 10 setlinewidth 0 0 moveto 400 800 lineto stroke
+
+% end lilyponddefs.ps
stroke
} bind def
+%end music-drawing-routines.ps
(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" "")
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)
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