X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocumentation-lib.scm;h=5239ce78912fec620d955a0936c96560537bde4b;hb=8bb707c295338bb85ec28ebc8a6d9465fa43a69e;hp=5f13bd4bac6a7e90b800f362e344c75ce600887c;hpb=57be7394ffa2e7d7ba6d60548dba563f3409d472;p=lilypond.git diff --git a/scm/documentation-lib.scm b/scm/documentation-lib.scm index 5f13bd4bac..5239ce7891 100644 --- a/scm/documentation-lib.scm +++ b/scm/documentation-lib.scm @@ -3,7 +3,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2000--2005 Han-Wen Nienhuys +;;;; (c) 2000--2007 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen (use-modules (oop goops) @@ -54,16 +54,6 @@ (string-append "@code{" (texify (scm->string x)) "}")) -;; -;; don't confuse users with # syntax. -;; -(define (scm->string val) - (if (and (procedure? val) (symbol? (procedure-name val))) - (symbol->string (procedure-name val)) - (string-append - (if (self-evaluating? val) "" "'") - (call-with-output-string (lambda (port) (display val port)))))) - (define (texi-section-command level) (cdr (assoc level '( @@ -88,9 +78,13 @@ . string-to-use) " (string-append - "\n@table @asis\n" + "\n" + "@quotation\n" + "@table @asis\n" (apply string-append (map one-item->texi items-alist)) - "\n@end table\n")) + "\n" + "@end table\n" + "@end quotation\n")) (define (texi-menu items-alist) "Generate what is between @menu and @end menu." @@ -121,7 +115,7 @@ "\\input texinfo @c -*-texinfo-*-" "\n@setfilename " file-name ".info" "\n@settitle " name - "\n@dircategory GNU music project" + "\n@dircategory LilyPond" "\n@direntry" ;; prepend GNU for dir, must be unique "\n* GNU " name ": (" file-name "). " name "." @@ -179,7 +173,7 @@ with init values from ALIST (1st optional argument) (handle (assoc sym alist))) (if (eq? desc #f) - (ly:error (_ "can't find description for property ~S") sym)) + (ly:error (_ "cannot find description for property ~S (~S)") sym where)) (cons (string-append "@code{" name "} "