DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
+# just include me
+YO_URG_FILES = $(wildcard *.yo-urg)
+
OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
EL_FILES = $(wildcard *.el)
BIB_FILES= $(wildcard *.bib)
-EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES)
+EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES)
HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
PS_FILES = $(DVI_FILES:.dvi=.ps)
--- /dev/null
+COMMENT(
+I cannot be named .yo, because i'm not a complete document, yodl2x will break.
+)
+whenhtml(
+nsubsect(Disclaimer)
+This document is written in url(Yodl)(ftp://pcnov095.win.tue.nl/pub/yodl)
+and should foremost produce nice LaTeX() output.
+In other formats, such as html, some things will look a bit different,
+while other things will be simply left out.
+Therefore, the authoritive version of this document is the PostScript version,
+produced via LaTeX().
+As you know, url(no gifs due to patent problems)(http://www.gnu.org/philosophy/gif.html),
+but the png images should be viewable with any current browser
+(jpeg is inappropriate for music images).
+)
latexcommand(\def\postexample{\par\medskip})
latexcommand(\def\file#1{{mycode(#1)}})
-whenhtml(
-nsubsect(Disclaimer)
-This document is written in url(Yodl)(ftp://pcnov095.win.tue.nl/pub/yodl)
-and should foremost produce nice LaTeX() output.
-In other formats, such as html, some things will look a bit different,
-while other things will be simply left out.
-Therefore, the authoritive version of this document is the PostScript version,
-produced via LaTeX().
-)
+includefile(html-disclaimer.yo-urg)
sect(Introduction)
label(tutorial:introduction)
import regex
import os
import sys
+import stat
sys.path.append ('@abs-step-bindir@')
list.write ('</ul>')
list.write('<h2>Contents of this directory</h2>\n');
- list.write ('These example files are taken from the LilyPond distribution.\n'
- 'LilyPond currently only outputs TeX and MIDI. The pictures and\n'
- 'PostScript files were generated using TeX, Ghostscript and some\n'
- 'graphics tools. The papersize used for these examples is A4. The GIF\n'
- 'files have been scaled to eliminate aliasing.\n');
+ list.write (
+ 'These example files are taken from the LilyPond distribution. '
+ 'LilyPond currently only outputs TeX and MIDI. The pictures and '
+ 'PostScript files were generated using TeX, Ghostscript and some '
+ 'graphics tools. The papersize used for these examples is A4. '
+ 'As you know, <a href="http://www.gnu.org/philosophy/gif.html">no gifs due to patent problems</a>, '
+ 'but the png images should be viewable with any current browser '
+ '(jpeg is inappropriate for music images).'
+ '\n');
for ex in inputs:
if desc <> '':
list.write('%s<p>' % desc)
list.write ('<ul>')
- def list_item(filename, desc, l = list):
+ def list_item(filename, desc, type, l = list):
if file_exist_b(filename):
- l.write ('<li><a href=%s>%s</a>\n' % (filename, desc))
-
- list_item(ex + ex_ext + '.txt', 'The input')
+ l.write ('<li><a href=%s>%s</a>' % (filename, desc))
+ size=os.stat(filename)[stat.ST_SIZE]
+ l.write (' (%s %dk)' % (type, (size + 512) / 1024))
+ pictures = ['jpeg', 'png', 'xpm']
+ # silly, no?
+ if 0 and type in pictures:
+ l.write (' <a href="http://www.gnu.org/philosophy/gif.html">no gifs due to patent problems</a>')
+ l.write ('\n')
+ list_item(ex + ex_ext + '.txt', 'The input', 'ASCII')
for pageno in range(1,100):
f = ex + '-page%d.png' % pageno
if not file_exist_b (f):
break
- list_item(f, 'The output (picture, page %d)' % pageno)
- list_item(ex + '.ps.gz', 'The output (gzipped PostScript)')
- list_item(ex + '.midi', 'The output (MIDI)')
+ list_item(f, 'The output, page %d' % pageno, 'png')
+ list_item(ex + '.ps.gz', 'The output', 'gzipped PostScript')
+ list_item(ex + '.midi', 'The output', 'MIDI')
list.write ("</ul>");
list.write( "</BODY></HTML>");