]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.2.3
authorfred <fred>
Tue, 26 Mar 2002 21:51:15 +0000 (21:51 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:51:15 +0000 (21:51 +0000)
Documentation/metadoc/GNUmakefile
Documentation/metadoc/lilypond-overview.doc
Documentation/metadoc/test.tely [new file with mode: 0644]
Documentation/tex/GNUmakefile
stepmake/bin/add-html-footer.py
stepmake/bin/ls-latex.py

index 015002e47f178a555fc51abe4357ae32d3a47ea6..ebce9188b1add1fe3358096df69fa9ed26e363f2 100644 (file)
@@ -6,7 +6,8 @@ DATA_FILES = $(wildcard *.data)
 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
 TEX_FILES = $(wildcard *.tex)
 DOC_FILES = $(wildcard *.doc)
-DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+TELY_FILES = $(wildcard *.tely)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi) $(TELY_FILES:.tely=.dvi))
 OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
 
 # just include me
@@ -16,8 +17,8 @@ OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
 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) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty) 
-HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(TELY_FILES) $(wildcard *.sty) 
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html) $(TELY_FILES:.tely=.html))
 PS_FILES = $(DVI_FILES:.dvi=.ps)
 
 STEPMAKE_TEMPLATES=tex documentation
@@ -54,7 +55,7 @@ $(outdir)/%.tex: %.data $(depth)/VERSION
 
 local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.doc=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles) ps
        $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about design and implementation of LilyPond' \
-         $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
+         $(TELY_FILES) $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
          $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
 
index 4aa1e759bda231807b3ec98f05050226c20f4140..ddcd7f99e56a2668ccfbd9a14306b7bd87a842ae 100644 (file)
@@ -90,7 +90,7 @@ input along with output in Figure~\ref{fig:intro-fig}.
 %
 \begin{figure}[htbp]
   \begin{center}
-\begin{mudela}[verbatim]
+\begin[verbatim]{mudela}
       \score {
         \notes
           \context GrandStaff <
diff --git a/Documentation/metadoc/test.tely b/Documentation/metadoc/test.tely
new file mode 100644 (file)
index 0000000..ae2662f
--- /dev/null
@@ -0,0 +1,21 @@
+\input texinfo   @c -*-texinfo-*-
+@setfilename foo
+@settitle foo
+
+@c @node Top
+@c @top
+
+@menu
+* foo:: bar
+@end menu
+
+@node foo
+@section foo
+
+@mudela[veryverbatim, intertext="produces this music:"]
+\score{
+  \notes\relative c'{
+       a b c
+  }
+}
+@end mudela
index ce19dc689c35c15840c971a6c4d2c7cc6f1f128d..6fd3cf7762bbc1aaf2a449a8d095b76b0aa1b749 100644 (file)
@@ -6,7 +6,8 @@ DATA_FILES = $(wildcard *.data)
 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
 TEX_FILES = $(wildcard *.tex)
 DOC_FILES = $(wildcard *.doc)
-DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+TELY_FILES = $(wildcard *.tely)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi) $(TELY_FILES:.tely=.dvi))
 
 # just include me
 YO_URG_FILES = $(wildcard *.yo-urg)
@@ -14,8 +15,8 @@ YO_URG_FILES = $(wildcard *.yo-urg)
 OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
 
-EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) testje.fly
-HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(TELY_FILES) testje.fly
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html) $(TELY_FILES:.tely=.html))
 PS_FILES = $(DVI_FILES:.dvi=.ps)
 
 STEPMAKE_TEMPLATES=tex documentation
index 669a319ac3e57f932ad46e240539f889d9ba522f..9c4126e0a1b78252b2a59ce338a41d9d4bc1831e 100644 (file)
@@ -125,7 +125,9 @@ for f in files:
        + '</TITLE></HEAD>'
     s = check_tag ('<title>', title, s, 0)
 
-    s = check_tag ('<html>', '<HTML>', s, 0)
+    s = check_tag ('<html', '', s, 0)
+    if regex.search ('<HTML', s) == -1:
+       s = '<HTML>\n' + s
     s = check_tag ('</html>', '</HTML>', s, 1)
 
     #urg
index d9542c2ae10dcca9fd802953d49967c9b4d28dee..92c0d1644a99dfdb82d6cecb1e78939836dc0771 100644 (file)
@@ -109,6 +109,21 @@ def read_texinfo_header (fn):
     header.format = 'HTML'
     return  header
 
+def read_tely_header (fn):
+    header = Latex_head ()
+    s = gulp_file (fn)
+    i = regex.search( '@settitle', s)
+    s = s[i+10:]
+    i = regex.search( '\n', s)
+    if i < 0:
+       sys.stderr.write ('gulped file: ' + fn + '\n')
+       raise 'huh?'
+    header.title = s[:i]
+    header.filename = fn
+    header.outfile = regsub.gsub ('\.tely', '.html', fn)
+    header.format = 'HTML'
+    return  header
+
 # urg
 # should make a 'next_parens'
 yo_article_re = regex.compile('article(\\([^)]*\\))[ \t\n]*(\\([^)]*\\))')
@@ -136,7 +151,6 @@ def read_yo_header (fn):
     header.format = 'HTML'
     return  header
 
-
 def print_html_head (l,o,h):
     pre =o
 
@@ -192,6 +206,8 @@ for x in files:
        head = read_pod_header (x)
     elif regex.search ('\\.texinfo$', x) <> -1:
        head = read_texinfo_header (x)
+    elif regex.search ('\\.tely$', x) <> -1:
+       head = read_tely_header (x)
     elif regex.search ('\\.yo$', x) <> -1:
        head = read_yo_header (x)
     else: