]> git.donarmstrong.com Git - lilypond.git/commitdiff
Improve formatting of lilypond-internals.
authorWerner Lemberg <wl@gnu.org>
Tue, 26 Jun 2007 18:02:52 +0000 (20:02 +0200)
committerWerner Lemberg <wl@gnu.org>
Tue, 26 Jun 2007 18:02:52 +0000 (20:02 +0200)
scm/document-translation.scm
scm/documentation-generate.scm

index 47848728972c5beec4663ea975a04dc8d5be4ddb..75e00a009915fc0188a8f27d2ddd8a0984d1c51f 100644 (file)
 
       (string-append
        "@item Set "
-       (format "grob-property @code{~a} " (string-join (map symbol->string path) " "))
-       (format " in @ref{~a} to @code{~a}.  " context-sym (scm->texi value))
+       (format "grob-property @code{~a} "
+              (string-join (map symbol->string path) " "))
+       (format "in @ref{~a} to ~a."
+              context-sym (scm->texi value))
        "\n")))
      ((equal? (object-property context-sym 'is-grob?) #t) "")
      ((equal? tag 'assign)
-      (format "@item Set translator property @code{~a} to @code{~a}"
+      (format "@item Set translator property @code{~a} to ~a.\n"
              context-sym
              (scm->texi (car args))))
      )))
       (string-append 
        desc
        (if (pair? aliases)
-          (string-append "\n\n This context also accepts commands for the following context(s):\n\n"
-                         (human-listify aliases))
+          (string-append
+           "\n\nThis context also accepts commands for the following context(s):\n\n"
+           (human-listify aliases)
+           ".")
           "")
-       "\n\nThis context creates the following layout objects: \n\n"
-       (human-listify (uniq-list (sort grob-refs string<? )))
+
+       "\n\nThis context creates the following layout objects:\n\n"
+       (human-listify (uniq-list (sort grob-refs string<?)))
        "."
-       (if (pair? props)
+
+       (if (and (pair? props) (not (null? props)))
           (string-append
            "\n\nThis context sets the following properties:\n"
            "@itemize @bullet\n"
           "")
        
        (if (null? accepts)
-          "\n\nThis context is a `bottom' context; it can not contain other contexts."
+          "\n\nThis context is a `bottom' context; it cannot contain other contexts."
           (string-append
            "\n\nContext "
-           name " can contain \n"
-           (human-listify (map ref-ify (map symbol->string accepts)))))
+           name
+           " can contain\n"
+           (human-listify (map ref-ify (map symbol->string accepts)))
+           "."))
        
-       "\n\nThis context is built from the following engravers: "
-       (description-list->texi
-       (map document-engraver-by-name consists))))))
+       (if (null? consists)
+          ""
+          (string-append
+           "\n\nThis context is built from the following engravers:"
+           (description-list->texi (map document-engraver-by-name consists))))))))
 
 (define (engraver-grobs grav)
   (let* ((eg (if (symbol? grav)
index fe37a366ba961c00ab62473af84ede9c550980a7..e49adf59143b1bcac39be96d970dbecb9bf4e620 100644 (file)
 
 @printindex cp
 
-@unnumbered Variable index
-
-@printindex vr
-
 @unnumbered Function index
 
 @printindex fn
 
 (dump-node top-node out-port 0)
 (newline (current-error-port))
-
-
-
-