* scripts/lilypond-book.py (do_file): put texidoc before image.
(TexiPaper.process_ly2dvi_block): make multipage _really_ work.
2003-07-04 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * python/lilylib.py (make_ps_images): make multipage _really_ work.
+
* scripts/lilypond-book.py (do_file): put texidoc before image.
+ (TexiPaper.process_ly2dvi_block): make multipage _really_ work.
* input/regression/*.ly: fix snippet octaves
@chapter GNU LilyPond --- The music typesetter
-This is the user manual for GNU LilyPond 1.7.16.
+This is the user manual for GNU LilyPond 1.8.0.
@cindex web site
* Tutorial:: A tutorial introduction.
* Notation manual:: All notation supported, and how to
produce it
+* Literature:: Books about notation and engraving.
* Technical manual:: How it all works.
* Invoking LilyPond:: Operation.
* Converting from other formats:: Converting to lilypond source format.
* lilypond-book manual:: Integrating text and music with lilypond-book.
-* Literature:: Additional reading material.
* Index:: Unified index.
* Reference manual details::
* Cheat sheet::
## todo:
## have better algorithm for deciding when to crop page,
## and when to show full page
-
- multi_page = re.search ('^%%Pages: ', open (ps_name).read (1024))
+
+ header = open (ps_name).read (1024)
+ multi_page = re.search ('\n%%Pages: ', header)
cmd = ''
if multi_page == None:
s = 'output-html'
def html_pages (basename):
- files = glob.glob ("%s-page*.png"% basename)
-
+ pat = os.path.join (g_outdir, "%s-page*.png"% basename)
+
+ files = glob.glob (pat)
+
+
template = '''<img align="center" valign="center"
border="0" src="%s" alt="[picture of music]">'''
str = ''
- if not files:
+ if files == []:
files = [basename+'.png' ]
- for f in files:
+ else:
+ files = map (os.path.basename, files)
+
+ for f in files:
str += template % f
str = '<a href="%s.ly">%s</a>' % (basename, str)
+
+ print 'hai', str
+
return str
+
newbody = newbody + get_output (s) % {'fn': basename,
'htmlimages': html_pages(basename)
}
changed = update_file (content, outname)
preview = base + ".png"
- if changed or not os.path.isfile (preview):
+ preview_page = base + '-page1.png'
+
+ if changed or not (os.path.isfile (preview) or
+ os.path.isfile (preview_page)):
ly.system ('%s --preview --postscript --verbose %s ' % (ly2dvi_binary, base) )
import string
import sys
import __main__
-
+
package_name = 'lilypond'
program_name = 'build-lily'
program_version = '@TOPLEVEL_VERSION@'