X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocument-music.scm;h=1491a30cad343f4d7b783afcfb75401cb242ba23;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=0d01abb6b9c66b5289ae8ab0cda057f387240150;hpb=96041f379c0e0f9fe328c277987daa56f90959cd;p=lilypond.git diff --git a/scm/document-music.scm b/scm/document-music.scm index 0d01abb6b9..1491a30cad 100644 --- a/scm/document-music.scm +++ b/scm/document-music.scm @@ -1,8 +1,8 @@ ;;;; document-markup.scm -- part of generated backend documentation ;;;; ;;;; source file of the GNU LilyPond music typesetter -;;;; -;;;; (c) 1998--2006 Han-Wen Nienhuys +;;;; +;;;; (c) 1998--2008 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen (define (music-props-doc) @@ -14,7 +14,7 @@ (descs (map (lambda (prop) (property->texi 'music (string->symbol prop))) ps)) - (texi (description-list->texi descs))) + (texi (description-list->texi descs #f))) texi))) (define music-types->names (make-vector 61 '())) @@ -22,13 +22,14 @@ (let* ((class (ly:camel-case->lisp-identifier (car entry))) (classes (ly:make-event-class class))) (if classes - (map (lambda (cl) - (hashq-set! music-types->names cl - (cons (car entry) - (hashq-ref music-types->names cl '())))) - classes) + (map + (lambda (cl) + (hashq-set! music-types->names cl + (cons (car entry) + (hashq-ref music-types->names cl '())))) + classes) #f))) - + music-descriptions) (define (strip-description x) @@ -36,33 +37,39 @@ "")) (define (music-type-doc entry) - (make - #:name (symbol->string (car entry)) - #:text - (string-append - "\nMusic event type @code{" - (symbol->string (car entry)) - "} is in music objects of type " - (human-listify - (sort - (map (lambda (x) (ref-ify (symbol->string x))) - (cdr entry)) stringstring + (map ly:translator-name + (filter + (lambda (x) + (engraver-accepts-music-type? (car entry) x)) + all-engravers-list))))))) + (make + #:name (symbol->string (car entry)) + #:text + (string-append + "\nMusic event type @code{" + (symbol->string (car entry)) + "} is in music objects of type " + (human-listify + (sort + (map (lambda (x) (ref-ify (symbol->string x))) + (cdr entry)) stringstring - (map ly:translator-name - (filter - (lambda (x) (engraver-accepts-music-type? (car entry) x)) all-engravers-list))))) - "." - "\n\n"))) + "\n\n" + (if (equal? accept-list "none") + "Not accepted by any engraver or performer" + (string-append + "Accepted by: " + accept-list)) + ".")))) (define (music-types-doc) (make #:name "Music classes" - #:children + #:children (map music-type-doc (sort (hash-table->alist music-types->names) alistlisp-identifier namesym)) (classes (ly:make-event-class class)) + (accept-list (if classes + (human-listify + (map ref-ify + (map symbol->string + (map ly:translator-name + (filter + (lambda (x) + (engraver-accepts-music-types? classes x)) + all-engravers-list))))) + "")) (event-texi (if classes (string-append "\n\nEvent classes:\n" - (human-listify (map ref-ify (map symbol->string classes))) + (human-listify + (map ref-ify (map symbol->string classes))) "." - "\n\nAccepted by: " - (human-listify - (map ref-ify - (map symbol->string (map ly:translator-name - (filter - (lambda (x) (engraver-accepts-music-types? classes x)) all-engravers-list))))) + "\n\n" + (if (equal? accept-list "none") + "Not accepted by any engraver or performer" + (string-append + "Accepted by: " + accept-list)) ".") ""))) @@ -94,7 +112,8 @@ (description-list->texi (map (lambda (x) (property->texi 'music x props)) - (map car props)))))) + (map car props)) + #t)))) (define (music-object-doc obj) (make