]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.104.jcn2
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 7 Nov 2000 21:57:22 +0000 (22:57 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 7 Nov 2000 21:57:22 +0000 (22:57 +0100)
1.3.104.jcn2
============

* Separate interface description (test phase).

* Makeinfo --html split fix: http://appel.lilypond.org/fred/software/texinfo-4.0.jcn2.diff

* Use headers for makeinfo html output.

CHANGES
Documentation/user/GNUmakefile
Documentation/user/lilypond.tely
VERSION
scm/backend-documentation-lib.scm
scm/documentation-lib.scm
scm/generate-documentation.scm
stepmake/stepmake/texinfo-rules.make

diff --git a/CHANGES b/CHANGES
index 89a2775ee0bbaf2957b7948c9591346c5a1c62a3..e183985b1fec9320ac1b615d93341450982ad670 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,12 @@
+1.3.104.jcn2
+============
+
+* Separate interface description (test phase).
+
+* Makeinfo --html split fix: http://appel.lilypond.org/fred/software/texinfo-4.0.jcn2.diff
+
+* Use headers for makeinfo html output.
+
 1.3.104.jcn1
 ============
 
@@ -2922,3 +2931,9 @@ pl 15.hwn1
 pl 15.jcn4
        - direct #... to scm parser  (Thanks to Gary Houston)
 
+
+
+# Local variables:
+# mode: change-log
+# left-margin: 0
+# End:
index 5a8db6f264e50b8d4e4d43f4b24c6ef095ffc2af..544b7f6e5771724f8ab5a09c57bce50475a8bb45 100644 (file)
@@ -49,6 +49,7 @@ localclean:
        rm -f fonts.aux fonts.log feta*.tfm feta*.*pk 
 
 backdoc-WWW: $(outdir)/lilypond-internals.html
+       $(MAKE) footify
 
 #ugh. lily/OUT/lilypond hardcoded.
 # when cross-compiling, we don't have lilypond
index d988d771646410809a9a62f1ccf4a20642ff9912..71a42333d1805023de2c6ca791ca0922d345d28f 100644 (file)
@@ -80,8 +80,6 @@ than the names being similar :-)"
 @node Top, , , (dir)
 @chapter GNU LilyPond --- The music typesetter
 
-@contents
-
 @menu
 * Tutorial::                       A tutorial introduction to lilypond.
 * Invoking LilyPond::              Operation.
@@ -96,6 +94,8 @@ than the names being similar :-)"
 * Index::                          Unified index.
 @end menu
 
+@contents
+
 @macro keyindex {word}
 @cindex \word\
 
diff --git a/VERSION b/VERSION
index b4d58e1246228719fa3c9ce10e7a658768039b06..60051929eadbb0aae1c75abd19f5de758ef5b173 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=104
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index a7d785a00db4ee7289344c7aabfdbb79d95496ea..529bac67e48d43fb67805ae629040501dcc27da7 100644 (file)
@@ -25,8 +25,9 @@
          "not set" )
       "}"))))
 
+;; First level Interface description
 ;; Second level, part of element description
-(define (document-interface interface element-description)
+(define (document-interface level interface element-description)
   (let* ((name (car interface))
         (desc (cadr interface))
         (props (caddr interface))
                    props)))
 
     (string-append
-     (section 2 (string-append "Interface: " (symbol->string name)))
+     (section level (string-append (interface-name (symbol->string name))))
      desc
      (description-list docs))))
 
+;; First level Interface description
+(define (document-separate-interface interface)
+  (let ((name (car interface)))
+    (string-append
+     (node (interface-name name))
+     (document-interface 2 interface '()))))
+
 ;; First level element description
 (define (document-element iname description)
   (display (string-append "\nProcessing " iname " ... ") (current-error-port))
@@ -51,8 +59,8 @@
         
         (name (cdr (assoc 'name meta)))
         (ifaces (cdr (assoc 'interface-descriptions meta)))
-        (ifacedoc (map (lambda (x) (document-interface x description))
-                               (reverse ifaces))))
+        (ifacedoc (map (lambda (x) (document-interface x description))
+                       (reverse ifaces))))
     
     (string-append
      (node (element-name name))
      (texi-node-menu name (map (lambda (x) (cons (element-name x) ""))
                               names))
      doc)))
+
+;; testin.. -- how to do this
+(eval-string (ly-gulp-file "interface.scm"))
+(define interface-description-alist
+  `(
+    (general-element . ,general-element-interface)
+    (beam . ,beam-interface)
+    (clef . ,clef-interface)
+    (slur . ,slur-interface)
+    ))
+             
+(define (document-all-interfaces name)
+  (string-append
+   (texi-node-menu name (map (lambda (x) (cons (interface-name x) ""))
+                            (map cadr interface-description-alist)))
+   (apply string-append
+         (map document-separate-interface
+              (map cdr interface-description-alist)))))
+
+
index 5bc447653120e3dca7e7edba5b188592d0e74cfe..b4782af375b15697ff5e0f2ea905027d06b1d281 100644 (file)
              items-alist))
   "\n@end menu\n"
   ;; Menus don't appear in html, so we make a list ourselves
+  "\n@ignore\n"
   "\n@ifhtml\n"
   (description-list (map (lambda (x) (cons (reffy (car x)) (cdr x)))
                         items-alist))
-  "\n@end ifhtml\n"))
+  "\n@end ifhtml\n"
+  "\n@end ignore\n"))
 
   
 (define (texi-node-menu name items-alist)
 
 (define (texi-file-head name file-name top items-alist)
   (string-append
-   "\input texinfo @c -*-texinfo-*-\n"
-   "@settitle " name
+   "\\input texinfo @c -*-texinfo-*-"
    "\n@setfilename " file-name ".info"
+   "\n@settitle " name
    (node "Top") top
    "\n@top"
    (section 1 name)
-   (texi-menu items-alist)))
+   (texi-menu items-alist)
+   "\n@contents"
+   ))
 
 (define (context-name name)
   (string-append "Context " name))
 (define (element-name name)
   (string-append "Element " name))
 
+(define (interface-name name)
+  name)
+
 (define (reffy x)
   (string-append "@ref{" x "}"))
 
index 2971b956ec8e127917ee694d65a27e9ecd2f212a..0af8fa789a7acfa66ede1bff7e5624b80d9e1f93 100644 (file)
 ;; Also, copies of interfaces use up lots more space, but that's
 ;; functional because the default property values of the interfaces
 ;; are described...
-(define no-copes #f)
+(define no-copies #f)
 
 (let* ((doc (string-append
-           (document-paper "LilyPond interpretation contexts")
-           (document-all-engravers "LilyPond engravers")
-           (document-all-elements "LilyPond backend")))
+            (document-paper "LilyPond interpretation contexts")
+            (document-all-engravers "LilyPond engravers")
+            (document-all-elements "LilyPond backend")
+            (document-all-interfaces "LilyPond interfaces")))
        (name "lilypond-internals")
        (outname (string-append name ".texi"))
        (out (open-output-file outname)))
@@ -46,7 +47,8 @@
      "LilyPond internals" name "(lilypond.info)"
      '(("LilyPond interpretation contexts" . "Hierarchy and grouping of Engravers")
        ("LilyPond engravers" . "Engravers create Elements")
-       ("LilyPond backend" . "Detailed description of all Elements")))
+       ("LilyPond backend" . "Detailed description of all Elements")
+       ("LilyPond interfaces" . "Element Interfaces")))
      
     doc
     "\n@bye")
index 796be65295775c8bda5126148d41fc7cfabf8362..b4a7e41117fd0a6551edc25aeccf7f93cacac871 100644 (file)
@@ -6,7 +6,7 @@ $(outdir)/%.info: $(outdir)/%.texi
        -$(MAKEINFO) --force --output=$@ $<
 
 $(outdir)/%.html:      $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ --html --no-headers $< 
+       -$(MAKEINFO) --force --output=$@ --html $<
 # we want footers even if website builds (or is built) partly
        $(footify) $@