X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocument-translation.scm;h=821eea401024a48282f162752df7f48861cb6021;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=2c11e163d8985729b1401e699b6130ac9bc37800;hpb=3f43309ace290fc86c4fafb4e2841028d04e2c4e;p=lilypond.git diff --git a/scm/document-translation.scm b/scm/document-translation.scm index 2c11e163d8..821eea4010 100644 --- a/scm/document-translation.scm +++ b/scm/document-translation.scm @@ -1,8 +1,8 @@ ;;;; document-translation.scm -- Functions for engraver documentation ;;;; ;;;; source file of the GNU LilyPond music typesetter -;;;; -;;;; (c) 2000--2007 Han-Wen Nienhuys +;;;; +;;;; (c) 2000--2008 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen (define (engraver-makes-grob? name-symbol grav) @@ -21,7 +21,7 @@ (define (engraver-doc-string engraver in-which-contexts) (let* ((propsr (cdr (assoc 'properties-read (ly:translator-description engraver)))) (propsw (cdr (assoc 'properties-written (ly:translator-description engraver)))) - (accepted (cdr (assoc 'events-accepted (ly:translator-description engraver)))) + (accepted (cdr (assoc 'events-accepted (ly:translator-description engraver)))) (name-sym (ly:translator-name engraver)) (name-str (symbol->string name-sym)) (desc (cdr (assoc 'description (ly:translator-description engraver)))) @@ -48,18 +48,18 @@ (map (lambda (x) (property->texi 'translation x '())) propsr) #t)) "") - + (if (null? propsw) "" (string-append - "Properties (write)" + "Properties (write)" (description-list->texi (map (lambda (x) (property->texi 'translation x '())) propsw) #t))) (if (null? grobs) "" (string-append - "\n\nThis engraver creates the following layout objects:\n\n" + "\n\nThis engraver creates the following layout object(s):\n\n" (human-listify (map ref-ify (uniq-list (sort grobs stringstring contexts) + stringstring contexts) stringengraver-table name #f)) (define (document-engraver-by-name name) "NAME is a symbol." - + (let* ((eg (find-engraver-by-name name))) (cons (string-append "@code{" (ref-ify (symbol->string name)) "}") @@ -140,7 +147,7 @@ context-sym (scm->texi (car args)))) ))) - + (define (context-doc context-desc) (let* ((name-sym (cdr (assoc 'context-name context-desc))) @@ -149,7 +156,7 @@ (desc-handle (assoc 'description context-desc)) (desc (if (and (pair? desc-handle) (string? (cdr desc-handle))) (cdr desc-handle) "(not documented)")) - + (accepts (cdr (assoc 'accepts context-desc))) (consists (cdr (assoc 'consists context-desc))) (props (cdr (assoc 'property-ops context-desc))) @@ -159,7 +166,7 @@ (make #:name name #:text - (string-append + (string-append desc (if (pair? aliases) (string-append @@ -168,7 +175,7 @@ ".") "") - "\n\nThis context creates the following layout objects:\n\n" + "\n\nThis context creates the following layout object(s):\n\n" (human-listify (uniq-list (sort grob-refs stringstring accepts))) ".")) - + (if (null? consists) "" (string-append - "\n\nThis context is built from the following engravers:" + "\n\nThis context is built from the following engraver(s):" (description-list->texi (map document-engraver-by-name consists) #t))))))) @@ -241,8 +248,8 @@ (define (all-engravers-doc) (make - #:name "Engravers" - #:desc "All separate engravers." + #:name "Engravers and Performers" + #:desc "All separate engravers and performers." #:text "See @ruser{Modifying context plug-ins}." #:children (map engraver-doc all-engravers-list)))