X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocument-backend.scm;h=95be16550a9230bfeace0329c37667fd005c7422;hb=38eb0e029bdeb5ff9dfa5ca3be83ce2f285dbe09;hp=02a09736b0927715bde6dfe74458599d14d300e8;hpb=73abdfa52f0403da92b84e248dc7454e63215005;p=lilypond.git diff --git a/scm/document-backend.scm b/scm/document-backend.scm index 02a09736b0..95be16550a 100644 --- a/scm/document-backend.scm +++ b/scm/document-backend.scm @@ -2,13 +2,35 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2000--2007 Han-Wen Nienhuys +;;;; (c) 2000--2009 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen +(define (sort-grob-properties x) + ;; force 'meta to the end of each prop-list + (let ((meta (assoc 'meta x))) + (append (sort (assoc-remove! x 'meta) ly:alist-citexi 'backend pr grob-description))) @@ -25,13 +47,13 @@ (if (pair? uprops) (string-append - "\n\n@unnumberedsubsubsec User settable properties:\n" + "\n\n@subsubheading User settable properties:\n" (description-list->texi user-propdocs #t)) "") (if (pair? iprops) (string-append - "\n\n@unnumberedsubsubsec Internal properties:\n" + "\n\n@subsubheading Internal properties:\n" (description-list->texi internal-propdocs #t)) "")))) @@ -56,12 +78,10 @@ (let* ((name (symbol->string (car interface))) (interface-list (human-listify (map ref-ify - (sort (map symbol->string (hashq-ref iface->grob-table (car interface) - '())) - string #:name name #:text (string-append @@ -120,9 +140,9 @@ node." engraver-list)) "." - "\n\nStandard settings: \n\n" + "\n\nStandard settings:\n\n" (grob-alist->texi description) - "\n\nThis object supports the following interface(s): \n" + "\n\nThis object supports the following interface(s):\n" (human-listify ifacedoc) ".")))) @@ -139,8 +159,6 @@ node." (cons (cons key val) prior)) '() (ly:all-grob-interfaces))) -(set! interface-description-alist (sort interface-description-alist aliststring lst) stringstring lst) ly:string-citexi 'backend (string->symbol prop) '())) ps)) (texi (description-list->texi descs #f)))