;;;;
;;;; source file of the GNU LilyPond music typesetter
;;;;
-;;;; (c) 1998--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+;;;; (c) 1998--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
;;;; Jan Nieuwenhuizen <janneke@gnu.org>
(string-append
"\n\n@item @code{\\" c-name "} " signature-str
- "\n@findex \\" f-name "\n"
-
+ "\n@funindex \\" c-name "\n"
+ "\n@cindex \\" c-name "\n"
(if (string? doc-str)
doc-str
"")
(define (markup-category-doc-node category)
(let* ((category-string (symbol->string category))
- (match (string-match "-" category-string))
- (category-name (string-capitalize
- (if match
- (regexp-substitute #f match 'pre " " 'post)
- category-string)))
+ (category-name (string-capitalize (regexp-substitute/global #f
+ "-" category-string 'pre " " 'post)))
(markup-functions (hashq-ref markup-functions-by-category
category)))
(make <texi-node>
+ #:appendix #t
#:name category-name
#:desc ""
#:text (string-append
(define (markup-doc-node)
(make <texi-node>
+ #:appendix #t
#:name "Text markup commands"
#:desc ""
#:text "The following commands can all be used inside @code{\\markup @{ @}}."
- #:children (let ((categories (sort (hash-fold (lambda (category function+properties categories)
- (cons category categories))
- (list)
- markup-functions-by-category)
- (lambda (c1 c2)
- (string<? (symbol->string c1)
- (symbol->string c2))))))
+ #:children (let* (;; when a new category is defined, update `ordered-categories'
+ (ordered-categories '(font align graphic music instrument-specific-markup other))
+ (raw-categories (hash-fold (lambda (category functions categories)
+ (cons category categories))
+ (list)
+ markup-functions-by-category))
+ (categories (append ordered-categories
+ (filter (lambda (cat)
+ (not (memq cat ordered-categories)))
+ raw-categories))))
(map markup-category-doc-node categories))))
(define (markup-list-doc-node)
(make <texi-node>
+ #:appendix #t
#:name "Text markup list commands"
#:desc ""
#:text (string-append