#
# source file of the GNU LilyPond music typesetter
#
-# (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+# (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
# Jan Nieuwenhuizen <janneke@gnu.org>
### subst:\(^\|[^._a-z]\)\(abspath\|identify\|warranty\|progress\|warning\|error\|exit\|getopt_args\|option_help_str\|options_help_str\|help\|setup_temp\|read_pipe\|system\|cleanup_temp\|strip_extension\|cp_to_dir\|mkdir_p\|init\) *(
str = ''
for s in strs:
- str = str + '%s%s%s\n' % (s[0], ' ' * (w - len(s[0]) + 3), s[1])
+ first = 1
+ for ss in re.split ('\n\s*', s[1]):
+ if first:
+ str = str + '%s%s%s\n' \
+ % (s[0], ' ' * (w - len (s[0]) + 3), ss)
+ first = 0
+ else:
+ str = str + '%s%s\n' \
+ % (' ' * (w + 3), ss)
return str
def help ():
lilypond-book --process="lilypond" BOOK.tely
TODO:
- * ly-options: intertext ?
+ * ly-options: intertext?
* --linewidth?
- * eps in latex / eps by lilypond -fps ?
+ * eps in latex / eps by lilypond -fps?
* check latex parameters, twocolumn, multicolumn?
+ * use --png --ps --pdf for making images?
* Converting from lilypond-book source, substitute:
@mbinclude foo.itely -> @include foo.itely
import stat
import string
-#
-# TODO:
-#
-# * use --png --ps --pdf for making images?
-#
-
-################################################################
# Users of python modules should include this snippet
# and customize variables below.
-# We'll suffer this path init stuff as long as we don't install our
-# python packages in <prefix>/lib/pythonx.y (and don't kludge around
-# it as we do with teTeX on Red Hat Linux: set some environment var
-# (PYTHONPATH) in profile).
+# We'll suffer this path initialization stuff as long as we don't install
+# our python packages in <prefix>/lib/pythonX.Y (and don't kludge around
+# it as we do with teTeX on Red Hat Linux: set some environment variables
+# (PYTHONPATH) in `etc/profile').
# If set, LILYPONDPREFIX must take prevalence.
# if datadir is not set, we're doing a build and LILYPONDPREFIX.
original_dir = os.getcwd ()
help_summary = _ (
-'''Process LilyPond snippets in hybrid HTML, LaTeX or texinfo document.
+'''Process LilyPond snippets in hybrid HTML, LaTeX, or texinfo document.
Example usage:
lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK
lilypond-book --filter="convert-ly --no-version --from=2.0.0 -" BOOK
lilypond-book --process='lilypond -I include' BOOK
-
''')
copyright = ('Jan Nieuwenhuizen <janneke@gnu.org>',
option_definitions = [
(_ ("EXT"), 'f', 'format',
- _ ("use output format EXT (texi [default], texi-html, latex, html)")),
+ _ ('''use output format EXT (texi [default], texi-html,
+ latex, html)''')),
(_ ("FILTER"), 'F', 'filter',
_ ("pipe snippets through FILTER [convert-ly -n -]")),
('', 'h', 'help',