headertext= r"""
-<p>You're looking at a page with some LilyPond samples.
-These files are also included in the distribution. The output is
-completely generated by LilyPond, without any touch up by humans.
-<p>The PostScript files were generated using TeX and dvips at 600 dpi.
+<p>You're looking at a page with some LilyPond samples. These files
+are also included in the distribution. The output is completely
+generated from the <tt>.ly</tt> source file, without any further touch
+up.
+
+<p>
+
The pictures are 90 dpi anti-aliased snapshots of the printed output.
-The images are in PNG format, and should be viewable with any current
-browser.
+If you want a better impression of the appearance, do print out one of
+the PDF or PostScript files; they use scalable fonts, and should look
+good at any resolution.
-<p>If you want a better impression of the appearance, do print out one of
-the postscript files.
"""
headertext_nopics= r"""
return dict
while s:
- m = re.search (r"""\s*(\S+)\s*=\s*([^;]+)\s*;""", s)
+ m = re.search (r'''\s*(\S+)\s*=\s*"([^"]+)"''', s)
if m == None:
s = ''
else:
list = open(filename, 'w')
else:
list = sys.stdout
- list.write ('<html><title>Rendered Examples</title>\n')
+ list.write ('<html><head><title>Rendered Examples</title>\n')
+ list.write ('<style type="text/css">\n')
+ list.write ('hr { border:0; height:1; color: #000000; background-color: #000000; }\n')
+ list.write ('</style></head>\n')
+
list.write ('<body bgcolor=white>\n')
if inputs:
(base, ext2) = os.path.splitext (base)
ext = ext2 + ext
- print '%s, ' % ex
header = read_lilypond_header(ex)
-
def read_dict(s, default, h =header):
try:
ret = h[s]
break
list_item(f, 'See a picture of page %d' % pageno, 'png')
list_item(base + '.pdf', 'Print', 'PDF')
- list_item(base + '.ps.gz', 'Print', 'gzipped PostScript')
list_item(base + '.midi', 'Listen', 'MIDI')
list.write ("</ul>\n");
for d in dirs:
allfiles = allfiles + find ('*.ly.txt', d)
-print allfiles
-
gen_list (allfiles, outfile)