]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.61.jcn1: tegen 61
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 18 Jun 2000 16:36:06 +0000 (18:36 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 18 Jun 2000 16:36:06 +0000 (18:36 +0200)
1.3.60.jcn2
===========

* Did som more webpage hacking and made some make website fixes, back links
  should work again.

15 files changed:
CHANGES
Documentation/GNUmakefile
Documentation/footer.html.in
Documentation/header.html.in
Documentation/index.texi
Documentation/misc/GNUmakefile
Documentation/topdocs/index.tely
Documentation/user/tutorial.itely
VERSION
buildscripts/ps-to-gifs.sh [new file with mode: 0644]
input/test/scales.ly
make/toplevel.make.in
scripts/abc2ly.py
stepmake/bin/add-html-footer.py
stepmake/stepmake/documentation-vars.make

diff --git a/CHANGES b/CHANGES
index 652041d578466d45423d8eafb5d56367ae9f1215..d8157aa0279655c0a452dfec68bf45362c9a56a4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+1.3.60.jcn2
+===========
+
+* Did som more webpage hacking and made some make website fixes, back links
+  should work again.
+
 1.3.60.jcn1
 ===========
 
index 72aeaddca76d010edb642e0e88fcabb4725e7b6c..40b54c886bcbf10c2beb67f487e45f383348d14f 100644 (file)
@@ -12,8 +12,15 @@ include $(depth)/make/stepmake.make
 
 default: local-doc
 
-local-WWW: copy-for-me $(outdir)/regression-test.ps.gz $(outdir)/regression-test.html footify
+local-WWW: copy-for-me txt-to-html $(outdir)/regression-test.ps.gz $(outdir)/regression-test.html footify
 
 copy-for-me:
-       $(foreach a, $(README_TOP_FILES),cp ../$(a) $(outdir)/$(a).txt && ) true
+       $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
 
+txt-to-html:
+       $(foreach a, $(README_TOP_FILES), \
+               echo "<html><body><xmp>" > $(outdir)/$(a).html;\
+               cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
+               echo "</xmp></body></html>" >> $(outdir)/$(a).html\
+       && ) true
+       $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(README_TOP_FILES)))
index bcae009876f14208e2ba654642626be628c3f6ff..205114b3354ee4c92d7fbf6ebbe08f8054f11676 100644 (file)
@@ -1,27 +1,20 @@
-
-<! shamefully inspired by Franc,ois Pinard's TP pages >
-
-    </td>
-  </tr>
-</table>
-
 <!--
 
-if this file ./Documentation/footer.html.in is present, it is included
+If this file ./Documentation/footer.html.in is present,
+it is included automatically by add-html-footer.py,
+which substitutes some @AT_VARIABLES@ as well.
+
+!-->
 
-automatically by add-html-footer, and replaces the simple standard
-footer substitutions:
+<! Layout shamelessly inspired by Franc,ois Pinard's TP pages >
 
- * index,
- * package name
- * package name
- * ENV:WEBMASTER,
- * ENV:WEBMASTER
+    </td>
+  </tr>
 
--->
+  <tr align=left valign=bottom>
+   <td align=left valign=middle colspan=3 width="100%" bgcolor="#e8e8ff">
 
-<hr>
-Go <a href=%s>back</a> to index of LilyPond.
+Go <a href="@INDEX@">back</a> to index of LilyPond.
 
 <p>
 Please send GNU LilyPond questions and comments to 
@@ -30,12 +23,8 @@ Please send GNU LilyPond questions and comments to
 <em>gnu-music-discuss@gnu.org</em></a>.
 <p>
 
-<!-- package %s %s -->
-
 Please send comments on these web pages to 
-<a href="mailto:%s"><em>%s</em></a>
-
-
+<a href="mailto:@MAIL_ADDRESS@"><em>@MAIL_ADDRESS@</em></a>
 
 <p>
 
@@ -46,3 +35,6 @@ Copyright (c) 1997, 1998, 1999, 2000 Han-Wen Nienhuys and Jan Nieuwenhuizen.
 Verbatim copying and distribution of this entire article is 
 permitted in any medium, provided this notice is preserved.<p>
 
+   </td>
+  </tr>
+</table>
index e96b3aaf299d11e2ad76acaef295f3edb6fa08bb..22300ddee0333614c4b779173d1471f0bc331de2 100644 (file)
+<!--
 
-<! your header here >
-<! shamefully inspired by Franc,ois Pinard's TP pages >
+If this file ./Documentation/header.html.in is present,
+it is included automatically by add-html-footer.py,
+which substitutes some @AT_VARIABLES@ as well.
 
-<! ur* can't we generate this with @table from a .texi? >
+!-->
+
+<! Layout shamelessly inspired by Franc,ois Pinard's TP pages >
+
+<!--
+<table cellpadding=5 width="100%">
+  <tr align=left valign=bottom>
+   <td align=middle valign=middle colspan=3 width="100%" bgcolor="#e8ffe8">
+    <h1>
+    GNU LilyPond
+    </h1>
+    <h2>Welcome to the home of the GNU Music Typesetter</h2>
+   </td>
+  </tr>
+!-->
 
-<bgcolor="grey">
 <table cellpadding=5 width="100%">
+  <tr align=left valign=bottom>
+    <td align=center valign=middle width="15%" bgcolor="#e8ffe8">
+      <img align=center valign=middle
+        src="@TOP@Documentation/pictures/out-www/lelie-icon.png" alt="[icon]">
+     </td>
+    <td align=center valign=middle width="85%" bgcolor="#e8ffe8">
+      <h1>GNU LilyPond</h1>
+      <h2>Welcome to the home of the GNU Music Typesetter</h2>
+    </td>
+  </tr>
+
   <tr>
-    <td align=left valign=top width="15%" bgcolor="grey">
+    <td align=left valign=top width="15%" bgcolor="#e8ffe8">
     <table align=left>
-      <tr><td bgcolor="cyan"><b>General info</b></td></tr>
+      <tr><td bgcolor="#e8e8ff"><a href="@INDEX@"><b>Home</b></a></td></tr>
       <tr><td><font size=-1>
-          <a href="http://www.lilypond.org"><b>Entry page</b></a><br>
-          <a href="http://appel.dyndns.org/lilypond"><b>Hacking</b></a><br>
+        <a href="http://appel.dyndns.org/lilypond">Hacking</a><br>
+        <a href="http://www.gnu.org">GNU Project</a><br>
+        <a href="http://www2.iro.umontreal.ca/~pinard/po/registry.cgi?domain=lilypond">Translations</a><br>
+        <a href="http://www.lilypond.org">LilyPond dot org</a><br>
+       <br>
+      </td></tr>
+      <tr><td bgcolor="#e8e8ff">
+       <a href="@TOP@Documentation/out-www/index.html"><b>Documentation</b></a>
+      </td></tr>
+      <tr><td><font size=-1>
+       <a href="@TOP@Documentation/out-www/CHANGES.html">News</a><br>
+       <a href="@TOP@Documentation/out-www/faq.html">FAQ</a><br>
+       <a href="@TOP@Documentation/user/out-www/lilypond.html">User manual</a><br>
+       <a href="@TOP@Documentation/out-www/regression-test.html">Features</a><br>
+       <a href="http://appel.dyndns.org/lilypond/todo.html">Todo</a><br>
+       <br>
+      </td></tr>
+      <tr><td bgcolor="#e8e8ff">
+       <a href="@INDEX@#download-source"><b>Download Source</b></a>
+      </td></tr>
+      <tr><td><font size=-1>
+        <a href="ftp://ftp.gnu.org/pub/gnu/lilypond">Stable</a><br>
+        <a href="ftp://ftp.cs.uu.nl/pub/gnu/LilyPond/development">Development</a><br>
+       <br>
+      </td></tr>
+      <tr><td bgcolor="#e8e8ff">
+       <a href="@INDEX@#download-binary"><b>Download Binary</b></a>
+      </td></tr>
+      <tr><td><font size=-1>
+       <a href="ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/RedHat/RPMS/">RedHat i386</a><br>
+       <a href="ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/RedHat/RPMS/ppc">LinuxPPC</a><br>
+       <a href="ftp://ftp.debian.org/debian/dists/unstable/main/binary-i386/tex">Debian i386</a><br>
+       <a href="ftp://ftp.debian.org/debian/dists/unstable/main/binary-powerpc/tex">Debian PowerPC</a><br>
+       <a href="http://home.austin.rr.com/jbr/jeff/lilypond/">Windows Stable</a><br>
+       <a href="http://appel.dyndns.org/lilypond/gnu-windows">Windows Testing</a><br>
+       <br>
+      </td></tr>
+      <tr><td bgcolor="#e8e8ff">
+       <a href="@INDEX@#music"><b>Music</b></a>
+      </td></tr>
+      <tr><td><font size=-1>
+       <a href="@TOP@short-examples.html">Short examples</a><br>
+       <a href="@TOP@long-examples.html">Longer examples</a><br>
+       <a href="http://sca.uwaterloo.ca/Mutopia/">Mutopia Project</a><br>
+       <a href="http://www.geocities.com/Vienna/Studio/1714/scarlattidwn.html">Jonh Sankey</a><br>
+       <a href="http://www4.smart.net/~jcovey/scores/">Jeff Covey</a><br>
+       <a href="http://www.alqualonde.de/lilypond.html">Dirk Lattermann</a><br>
+       <br>
+      </td></tr>
+      <tr><td bgcolor="#e8e8ff">
+        <a href="@INDEX@#mailing-lists"><b>Mailing Lists</b></a>
       </td></tr>
-      <tr><td bgcolor="cyan"><b>Download Source</b></td></tr>
       <tr><td><font size=-1>
-          <a href="ftp://ftp.gnu.org/pub/gnu/lilypond"><b>Stable</b></a><br>
-          <a href="ftp://cs.uu.nl/pub/gnu/LilyPond/development"><b>Development</b></a><br>
+       <a href="http://www.mail-archive.com/gnu-music-discuss@gnu.org">Discussion</a><br>
+       <a href="http://www.mail-archive.com/help-gnu-music@gnu.org">Help</a><br>
+       <a href="http://www.mail-archive.com/bug-gnu-music@gnu.org">Bugs</a><br>
+       <br>
       </td></tr>
-  </table>
-  <! /tr >
-  <td align=left valign=top width="90%">
+    </table>
+  <td align=left valign=top width="85%">
 
 
index d3ee87f0cdc6a5b5c4610a4cb5d73a2cb81daa9b..feb58100c952ab7a7bc88fd87e81a79213265e9f 100644 (file)
@@ -9,11 +9,11 @@
 @unnumberedsubsec General information
 
 @itemize @bullet 
-@item @uref{DEDICATION.txt,Dedication}
+@item @uref{DEDICATION.html,Dedication}
 @item @uref{../topdocs/out-www/AUTHORS.html, Authors}
 @item @uref{../topdocs/out-www/README.html, Readme file}
 @item @uref{../topdocs/out-www/INSTALL.html, Installation instructions}
-@item @uref{CHANGES.txt, Things recently done}
+@item @uref{CHANGES.html, Things recently done}
 @item @uref{faq.html,FAQ: Frequently asked questions}, with answers
 @end itemize
 
@@ -66,18 +66,18 @@ by computer}.
 @itemize @bullet
 @item @uref{hacking.html,Internals} details of the implementation
 @item @uref{README-W32.html,Compiling and running on Windows32}
-@item @uref{../misc/out-www/CHANGES-0.0.txt, Change logs from 0.0 till 0.1 }
-@item @uref{../misc/out-www/CHANGES-0.1.txt, Change logs from 0.1 till 1.0 }
-@item @uref{../misc/out-www/CHANGES-1.0.txt, Change logs from 1.0 till 1.1 }
-@item @uref{../misc/out-www/CHANGES-1.1.txt, Change logs from 1.1 till 1.2 }
-@item @uref{../misc/out-www/NEWS-1.2.txt, summary of changes from 1.1 till 1.2 }
-@item @uref{../misc/out-www/ANNOUNCE-0.1.txt, Announcement of 0.1 (includes summary of
+@item @uref{../misc/out-www/CHANGES-0.0.html, Change logs from 0.0 till 0.1 }
+@item @uref{../misc/out-www/CHANGES-0.1.html, Change logs from 0.1 till 1.0 }
+@item @uref{../misc/out-www/CHANGES-1.0.html, Change logs from 1.0 till 1.1 }
+@item @uref{../misc/out-www/CHANGES-1.1.html, Change logs from 1.1 till 1.2 }
+@item @uref{../misc/out-www/NEWS-1.2.html, summary of changes from 1.1 till 1.2 }
+@item @uref{../misc/out-www/ANNOUNCE-0.1.html, Announcement of 0.1 (includes summary of
 changes)}
-@item @uref{../misc/out-www/ANNOUNCE-1.0.txt, Announcement of 1.0 (includes summary of
+@item @uref{../misc/out-www/ANNOUNCE-1.0.html, Announcement of 1.0 (includes summary of
 changes)}
-@item @uref{../misc/out-www/ANNOUNCE-1.2.txt, Announcement of 1.2 (includes summary of changes)}
-@item @uref{../misc/out-www/AIMS.txt, Why LilyPond?}
-@item @uref{../misc/out-www/interview.txt, Answers} to the Brave GNU world standard questions.
+@item @uref{../misc/out-www/ANNOUNCE-1.2.html, Announcement of 1.2 (includes summary of changes)}
+@item @uref{../misc/out-www/AIMS.html, Why LilyPond?}
+@item @uref{../misc/out-www/interview.html, Answers} to the Brave GNU world standard questions.
 @end itemize
 
 
index 003590955bb2f06eb1583a4fd4d755a0b48eed40..ebcf4f2fd0eebc5191d182f322139d779215be89 100644 (file)
@@ -11,10 +11,20 @@ include $(depth)/make/stepmake.make
 
 default: local-doc
 
-local-WWW: $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
+#urg default local-WWW target uses footify before its time; 
+# must add footify with txt-to-html target
+local-WWW:  $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
 
 copy-for-me:
-       $(foreach a, $(README_TOP_FILES),cp ../$(a) $(outdir)/$(a).txt && ) true
+       $(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
 
 $(outdir)/%.txt: %
        cp $< $@
+
+txt-to-html:
+       $(foreach a, $(TEXTS),\
+               echo "<html><body><xmp>" > $(outdir)/$(a).html;\
+               cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
+               echo "</xmp></body></html>" >> $(outdir)/$(a).html\
+       && ) true
+       $(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))
index cd29b6442a5cb5b6f8f5d2b01c0e49719db8a2c1..ea61df02b02976b13a2ec3efa35d745dc2b89c4a 100644 (file)
@@ -5,28 +5,12 @@
 @node Top, , , (dir)
 @top
 
-@html
-<p align=center>
-[
-    <a href="#download">Download</a>
-    |
-    <a href="Documentation/out-www/faq.html">FAQ</a>
-    |
-    <a href="Documentation/out-www/index.html">Documentation</a>
-    |
-    <a href="#music">Music archives</a>
-    |
-    <a href="#mailing-lists">Mailing lists</a>
-    |
-    <a href="Documentation/out-www/CHANGES.txt">News</a>
-]
-@end html
-
 @html
 <p align=center>
 <img src="Documentation/pictures/out-www/lelie-logo.png" alt="[logo]">
 @end html
-@unnumberedsec LilyPond -- The GNU Project Music Typesetter
+
+@c @unnumberedsec LilyPond -- The GNU Project Music Typesetter
 
 @c something breaks on 3.12 f
 
@@ -46,7 +30,7 @@ this:
 
 @quotation
 @mudela[fragment,verbatim]
-       \relative c'' { \key c \minor; r8 [c16 b] [c8 g] [as c16 b] [c8 d] | g,4 }
+\relative c'' { \key c \minor; r8 c16 b c8 g as c16 b c8 d | g,4 }
 @end mudela 
 @end quotation
 
@@ -70,7 +54,7 @@ are `stable'. The webpages for the stable version (1.2) reside
 enhancements go into the latest odd numbered version (1.3), whose
 webpages are on @uref{http://www.cs.uu.nl/~hanwen/lilypond/,Han-Wen's
 site}.  Information on the latest and greatest features can be found in
-the @uref{Documentation/out-www/CHANGES.txt, Change Log}.
+the @uref{Documentation/out-www/CHANGES.html, Change Log}.
 
 If want more information, you can browse the
 @uref{Documentation/user/out-www/lilypond.html, manual} or other
@@ -102,7 +86,7 @@ Lattermann also put some works
 @uref{http://www.alqualonde.de/lilypond.html,on the web}.
 
 @html
-<a name="download">
+<a name="download-source">
 @end html
 @unnumberedsec Download
 
@@ -114,30 +98,38 @@ If you want to compile LilyPond from source, download here:
 @uref{ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/development/,the source}
 @item @uref{http://sca.uwaterloo.ca/lilypond/, by http (Canadian
 mirror)} and
-@uref{ftp://sca.uwaterloo.ca/pub/, ftp (Canadian  mirror)} 
+@uref{ftp://sca.uwaterloo.ca/pub/, ftp (Canadian mirror)} 
 @item 
-@uref{ftp://ftp.lilypond.org/pub/LilyPond/,mirror (Europe)}
+@uref{ftp://ftp.lilypond.org/pub/LilyPond/, mirror (Europe)}
 @end itemize
 
 Installing and compiling requires many additional packages, which are
 listed in the @uref{Documentation/topdocs/out-www/INSTALL.html,
 installation instructions}.
 
+@html
+<a name="download-binary">
+@end html
 Binaries are available, but are not updated for every version released.
 @itemize @bullet
-@item 
-@uref{ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/RedHat/RPMS/,RedHat-i386 and Linuxppc RPMs:}
+@item @uref{ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/RedHat/RPMS/, RedHat i386}
+@item @uref{ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/RedHat/RPMS/ppc, LinuxPPC}
+@item
+@uref{ftp://ftp.debian.org/debian/dists/unstable/main/binary-i386/tex,
+Debian GNU/Linux i386} 
 @item
-@uref{ftp://ftp.debian.org/pub/debian/dists/unstable/main/binary-i386/tex,
- Debian binary} 
-@item @uref{http://home.austin.rr.com/jbr/jeff/lilypond/,Windows NT}
+@uref{ftp://ftp.debian.org/debian/dists/unstable/main/binary-powerpc/tex,
+Debian GNU/Linux PowerPC} 
+@item @uref{http://home.austin.rr.com/jbr/jeff/lilypond/, Windows Stable}
+@item @uref{http://appel.dyndns.org/lilypond/gnu-windows, Windows
+Testing}
 @end itemize
 
 
 @html
 <a name="mailing-lists">
 @end html
-@unnumberedsec Mailing list
+@unnumberedsec Mailing lists
 
 If you have questions, do write to the mailing lists!
  (But don't forget to read the @uref{Documentation/out-www/faq.html,
@@ -189,21 +181,4 @@ These pages were entirely created from a @strong{development snapshot}
 of the LilyPond package.  The version of this webpage is printed at the
 bottom.
 
-@html
-<p align=center>
-[
-    <a href="#download">Download</a>
-    |
-    <a href="Documentation/out-www/faq.html">FAQ</a>
-    |
-    <a href="Documentation/out-www/index.html">Documentation</a>
-    |
-    <a href="#music">Music archives</a>
-    |
-    <a href="#mailing-lists">Mailing lists</a>
-    |
-    <a href="Documentation/out-www/CHANGES.txt">News</a>
-]
-@end html
-
 @bye
index a457b40368dc947063c360b0c094013623051b30..87993537ae4cb43baca46d8e375fc87a5f722299 100644 (file)
@@ -707,7 +707,7 @@ Sammartini.  It was composed around 1740.
 
 @mudela[verbatim]
 
-\version "1.3.56";
+\version "1.3.61";
 \include "paper16.ly";
 
 viola = \notes \relative c' \context Voice = viola {
@@ -771,7 +771,7 @@ If it looks like incomprehensible gibberish to you@dots{} Then you are
 right.  The author has doctored this example to have as many quirks in
 one system as possible.
 @example 
-\version "1.3.56";
+\version "1.3.61";
 @end example 
 Lilypond and the Mudela language is still under development, therefore
 it is useful to indicate the Lilypond version of the file. Lilypond 
diff --git a/VERSION b/VERSION
index 5599f7aa07385ecc08b92af0c4de462366222685..85b18afde3b9417133a2f8b3c14a5d41da98ee82 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=61
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
diff --git a/buildscripts/ps-to-gifs.sh b/buildscripts/ps-to-gifs.sh
new file mode 100644 (file)
index 0000000..e2a3da8
--- /dev/null
@@ -0,0 +1,90 @@
+#!/bin/sh
+# ps-to-gifs, convert PS to multiple gifs or other bitmaps
+
+usage()
+{
+    cat <<EOF
+Convert PS to multiple gifs or other bitmaps
+Usage: ps-to-gifs.sh [OPTION]... [FILE]
+Options:
+  -h, --help         this help
+  -c, --crop         crop output
+  -o, --output=NAME  set output base
+  -p, --png          convert to png
+  -s, --size=SIZE    set papersize
+  -t, --transparent  change white to transparent
+EOF
+}
+
+if [ $# -lt 1 ]; then
+    usage;
+    exit 2;
+fi
+CROP=cat
+GIF=gif
+PNMTOGIF=ppmtogif
+
+while [ $# -gt 0 ]; do
+opt=$1
+shift
+    case $opt in
+    -t|--t*)
+       color='-transparent white'
+       ;;
+    -h|--h*)
+       usage;
+       exit 0
+       ;;
+    -c|--c*)
+       CROP=" pnmcrop "
+       ;;
+    -o) OUTFILE=$2; shift
+        ;;
+    --o*=*) OUTFILE=`echo $opt | sed -e s/"^.*="//`
+        ;;
+    -p|--p*)
+       GIF=png
+       PNMTOGIF=pnmtopng
+       ;;
+    -s) SIZE="-sPAPERSIZE=$2"; shift
+        ;;
+    --s*=*)
+        SIZE="-sPAPERSIZE=`echo $opt | sed -e s/"^.*="//`"
+       ;;
+    -*)
+        echo "ps-to-gifs: unknown option: \`$opt'"
+       exit 1
+       ;;
+    *)
+       FILE=$opt
+       ;;
+    esac
+done
+
+if [ "x$TRANSPARENT_IS_BROKEN" != "x" ]; then
+       color=
+fi
+
+if [ "x$OUTFILE" = "x" ]; then
+       BASE=`dirname $FILE`/`basename $FILE .ps`
+else
+       BASE=`dirname $OUTFILE`/`basename $OUTFILE .$GIF`
+fi
+
+# urg, pipe breaks
+rm -f $BASE{.ppm,.$GIF} $BASE-page*{.ppm,.$GIF}
+
+cat $FILE | gs -sDEVICE=pgm $SIZE -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile="$BASE-page%d.ppm" -r90 -dNOPAUSE - -c quit $FILE
+# quant is soo slow
+# cat $PPMFILE | ppmquant 2 | pnmscale 0.3333 | pnmcrop | $PNMTOGIF $color > $OUTFILE
+PPMS=`ls $BASE*ppm`
+for i in $PPMS; do
+    o=`dirname $i`/`basename $i .ppm`.$GIF
+    cat $i | $CROP | $PNMTOGIF $color > $o
+    rm $i
+done
+
+if [ "x$OUTFILE" != "x" ]; then
+       mv $BASE-page1.$GIF $BASE.$GIF
+fi
+
index d31e9ca81db04fb9ee9d64f798d07c41e96107bd..f3f8df7c05a13e7a462547878edf5d17ee7fc77b 100644 (file)
@@ -3,28 +3,28 @@
     % sharp-major 
        % c g d a e b fis cis
        
-       \key c;
+       \key c \major;
        c' d e f g a b c
        
-       \key g;
+       \key g\major;
        g a b c d e fis g
        
-       \key d;
+       \key d\major;
        d, e fis g a b cis d
        
-       \key a;
+       \key a\major;
        a b cis d e fis gis a
        
-       \key e;
+       \key e\major;
        e, fis gis a b cis dis e
        
-       \key b;
+       \key b\major;
        b cis dis e fis gis ais b
        
-       \key fis;
+       \key fis\major;
        fis, gis ais b cis dis eis fis
        
-       \key cis;
+       \key cis\major;
        cis, dis eis fis gis ais bis cis
        
        % sharp-minor
        % flat-major 
        % c f bes es as des ges ces
        
-       \key f;
+       \key f\major;
        f, g a bes c d e f
        
-       \key bes;
+       \key bes\major;
        bes, c d es f g a bes
        
-       \key es;
+       \key es\major;
        es,, f g as bes c d es 
        
-       \key as;
+       \key as\major;
        as, bes c des es f g as
        
-       \key des;
+       \key des\major;
        des,, es f ges as bes c des
        
-       \key ges;
+       \key ges\major;
        ges, as bes ces des es f ges
        
-       \key ces;
+       \key ces\major;
        ces,, des es fes ges as bes ces
        
        % flat-minor 
   }
   \paper { }  
   \midi { }
-}
\ No newline at end of file
+}
index 9cc19ff4b5c58f8cce22427d8b754126b012c542..dd38191b509f6bb52055d2bd3af45651a1a8901d 100644 (file)
@@ -26,7 +26,11 @@ STEPMAKE_TEMPLATES=toplevel yolily-toplevel po
 include $(depth)/make/stepmake.make 
 #
 
-website: fonts htmldoc examples doc++
+website: fonts htmldoc examples doc++ footify
+
+footify:
+       $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
+       $(footify-all-command)
 
 fonts:
        $(MAKE) -C $(depth)/mf 
@@ -38,6 +42,7 @@ htmldoc:
        $(MAKE) out='www' local-WWW
        $(MAKE) out='www' -C Documentation WWW
        rm -f `find . -name \*.html~ -print`
+       $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
        $(footify-all-command)
        find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www'  > wwwlist
        tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png $(ERRORLOG)`  index.html
@@ -45,10 +50,12 @@ htmldoc:
 examples:
        $(MAKE) out='www' -C input WWW
        $(MAKE) out='www' -C mutopia WWW
-       $(footify-all-command)
+       # arg, should not break concept of recursive make;
+       # this breaks links (and dependencies, see above)
        $(PYTHON) $(buildscripts)/mutopia-index.py -o short-examples.html input/
        $(PYTHON) $(buildscripts)/mutopia-index.py -o long-examples.html mutopia/
-
+       #$(footify-all-command)
+       $(footify) --index=./ `$(FIND) . -name '*.html' -print`
        tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz *-examples.html  `find input mutopia -type d -name 'out-www' -print`
 
 
index b206fcebdd7a5e23055e507d7c880e8356dd5f6e..9dcba7c6861b06cf914b5f1483e80e998c734e7c 100644 (file)
@@ -512,11 +512,11 @@ def try_parse_header_line (ln, state):
                                m = re.match ('^([^ \t]*) *(.*)$', a) # seperate clef info
                                if m:
                                        __main__.global_key  =compute_key (m.group(1))# ugh.
-                                       voices_append ('\\key %s;' % lily_key(m.group(1)))
+                                       voices_append ('\\key %s \\major;' % lily_key(m.group(1)))
                                        check_clef(m.group(2))
                                else:
                                        __main__.global_key  =compute_key (a)# ugh.
-                                       voices_append ('\\key %s;' % lily_key(a))
+                                       voices_append ('\\key %s \\major;' % lily_key(a))
                if g == 'O': # Origin
                        header ['origin'] = a
                if g == 'X': # Reference Number
index adb115208822fc8537e15520a52a258589652730..984bbc7c10d105dc64e68ba804247551599a7165 100644 (file)
@@ -10,8 +10,9 @@ import time
 import string 
 import getopt
 
-fullname = "unknown"
-index_file=''
+gcos = "unknown"
+index_url=''
+top_url=''
 changelog_file=''
 package_name = ''
 package_version = ''
@@ -33,15 +34,14 @@ footer_file = ''
 default_header = r"""
 """
 
-default_footer = r"""<hr>Please take me <a href=%s>back to the index</a>
-of %s
-<!-- package name %s>
- <!-- webmaster fields. %s %s>
+default_footer = r"""<hr>Please take me <a href=@INDEX@>back to the index</a>
+of @PACKAGE_NAME@
 """
 
-builtstr = r"""<hr><font size=-1>
-This page was built from %s-%s by 
-<address><br>%s &lt<a href="mailto:%s">%s</a>&gt,  %s.</address><p></font>"""
+built = r"""<hr><font size=-1>
+This page was built from @PACKAGE_NAME@-@PACKAGE_VERSION@ by 
+<address><br>@GCOS@ &lt<a href="mailto:%s">@MAIL_ADDRESS@</a>&gt,
+@LOCALTIME@.</address><p></font>"""
 
 
 def gulp_file (f):
@@ -89,8 +89,9 @@ for opt in options:
                header_file = a
        elif o == '-h' or o == '--help':
                help ()
+       # urg, this is top!
        elif o == '--index':
-               index_file = a
+               index_url = a
        elif o == '--name':
                package_name = a
        elif o == '--version':
@@ -98,8 +99,9 @@ for opt in options:
        else:
                raise 'unknown opt ', o
 
-def set_vars ():
-       global fullname
+#burp?
+def set_gcos ():
+       global gcos
        os.environ["CONFIGSUFFIX"] = 'www';
        if os.name == 'nt':
                import ntpwd
@@ -110,36 +112,29 @@ def set_vars ():
 
        f = pw[4]
        f = string.split (f, ',')[0]
-       fullname = f 
-
-#burp
-def compose_header ():
-       global default_header
-       head = default_header
-       if header_file:
-               head = gulp_file (header_file)
-       return head
-
-def compose_footer (index):
-       global default_footer
-       foot = default_footer
-
-       if footer_file:
-               foot = gulp_file (footer_file)
-
-       s = foot % (index, package_name, package_name, webmaster, webmaster)
-       s = s + builtstr % (package_name, package_version, fullname,
-                           mail_address, mail_address, 
-                           time.strftime ('%c %Z', time.localtime (time.time ())))
+       gcos = f 
+
+def compose (default, file):
+       s = default
+       if file:
+               s = gulp_file (file)
        return s
 
-set_vars ()
-header = compose_header ()
-footer = compose_footer (index_file)
+set_gcos ()
+localtime = time.strftime ('%c %Z', time.localtime (time.time ()))
+
+if os.path.basename (index_url) != "index.html":
+       index_url = index_url + "/index.html"
+top_url = os.path.dirname (index_url) + "/"
+
+header = compose (default_header, header_file)
+footer = compose (default_footer, footer_file) + built
 header_tag = '<! header_tag >'
 footer_tag = '<! footer_tag >'
 
-def do_file (s):
+def do_file (f):
+       s = gulp_file (f)
+
        if changelog_file:
                changes = gulp_file (changelog_file)
                # urg?
@@ -150,12 +145,12 @@ def do_file (s):
                s = re.sub ('top_of_ChangeLog', '<XMP>\n'+ changes  + '\n</XMP>\n', s)
 
        if re.search (header_tag, s) == None:
-               body='<BODY BGCOLOR=WHITE><FONT COLOR=BLACK>'
+               body = '<BODY BGCOLOR=WHITE><FONT COLOR=BLACK>'
                s = re.sub ('(?i)<body>', body, s)
                if re.search ('(?i)<BODY', s):
-                       s = re.sub ('(?i)<body[^>]*>', body + header, s)
+                       s = re.sub ('(?i)<body[^>]*>', body + header, s, 1)
                elif re.search ('(?i)<html', s):                
-                       s = re.sub ('(?i)<html>', '<HTML>' + header, s)
+                       s = re.sub ('(?i)<html>', '<HTML>' + header, s, 1)
                else:
                        s = header + s
 
@@ -165,31 +160,33 @@ def do_file (s):
                s = s + footer_tag
 
                if re.search ('(?i)</body', s):
-                       s = re.sub ('(?i)</body>', footer + '</BODY>', s)
+                       s = re.sub ('(?i)</body>', footer + '</BODY>', s, 1)
                elif re.search ('(?i)</html', s):               
-                       s = re.sub ('(?i)</html>', footer + '</HTML>', s)
+                       s = re.sub ('(?i)</html>', footer + '</HTML>', s, 1)
                else:
                        s = s + footer
 
-       return s
-
+       #URUGRGOUSNGUOUNRIU
+       index = index_url
+       top = top_url
+       if os.path.basename (f) == "index.html":
+               cwd = os.getcwd ()
+               if os.path.basename (cwd) == "topdocs":
+                       index = "./index.html"
+                       top = "./"
+
+       s = re.sub ('@INDEX@', index, s)
+       s = re.sub ('@TOP@', top, s)
+       s = re.sub ('@PACKAGE_NAME@', package_name, s)
+       s = re.sub ('@PACKAGE_VERSION@', package_version, s)
+       s = re.sub ('@WEBMASTER@', webmaster, s)
+       s = re.sub ('@GCOS@', gcos, s)
+       s = re.sub ('@LOCALTIME@', localtime, s)
+       s = re.sub ('@MAIL_ADDRESS@', mail_address, s)
 
-for f in files:
-       s = gulp_file (f)
-       s = do_file (s)
        open (f, 'w').write (s)
 
-if 0:
-       title = '<HEAD><TITLE>' \
-               + package_name + ' -- ' + os.path.basename (os.path.splitext(f)[0]) \
-               + '</TITLE></HEAD>'
-       s = check_tag ('<title>', title, 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)
-
-       dump_file (f, s)
 
+for f in files:
+       do_file (f)
 
index 440e6b94100f39ab594d633c7fa25589e15b612b..bbed23c068c9857bbdff8f2336c75ad3c5bb8169 100644 (file)
@@ -3,7 +3,7 @@ AT_FILES = $(BLURBS) #
 at-dir = $(doc-dir)/
 at-ext = .in
 
-footify=$(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION) --header=$(depth)/Documentation/header.html.in --footer $(depth)/Documentation/footer.html.in
+footify=$(PYTHON) $(step-bindir)/add-html-footer.py --index=../$(depth)/ --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION) --header=$(depth)/Documentation/header.html.in --footer $(depth)/Documentation/footer.html.in
 
 footify-all-command=$(footify) `$(FIND) . -name '*.html' -print`