X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocumentation-lib.scm;h=ce91651e7785234fcec35d80698aae021d1a1d11;hb=b89ed23afd3df22f7160ac798ed185f42cb173b2;hp=d37d7970873e111a3028f15d973166a121742573;hpb=26a0623834e3da2fb43a5e1ad249c3e634d2fcb6;p=lilypond.git diff --git a/scm/documentation-lib.scm b/scm/documentation-lib.scm index d37d797087..ce91651e77 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--2006 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen (use-modules (oop goops) @@ -42,7 +42,7 @@ (node-children node))) (define (processing name) - (display (string-append "\nProcessing " name " ... ") (current-error-port))) + (ly:message (_ "Processing ~S...") name)) (define (self-evaluating? x) (or (number? x) (string? x) (procedure? x) (boolean? x))) @@ -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 '( @@ -121,7 +111,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 "." @@ -157,7 +147,7 @@ (else (string-append (car lst) ", " (human-listify (cdr lst)))))) (define (writing-wip x) - (display (string-append "\nWriting " x " ... ") (current-error-port))) + (ly:message (_ "Writing ~S...") x)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -179,7 +169,7 @@ with init values from ALIST (1st optional argument) (handle (assoc sym alist))) (if (eq? desc #f) - (error "No description for property ~S" sym)) + (ly:error (_ "can't find description for property ~S (~S)") sym where)) (cons (string-append "@code{" name "} "