;;;
;;; source file of the GNU LilyPond music typesetter
;;;
-;;; (c) 2000--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+;;; (c) 2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
;;; Jan Nieuwenhuizen <janneke@gnu.org>
-(use-modules (oop goops))
+(use-modules (oop goops)
+ (srfi srfi-13)
+ (srfi srfi-1)
+ )
(define-class <texi-node> ()
(children #:init-value '() #:accessor node-children #:init-keyword #:children)
(define (dump-node node port level)
(display
(string-append
- "\n@html"
- "\n<hr>"
- "\n@end html\n@node "
+ "\n@node "
(node-name node)
"\n\n"
(texi-section-command level) " "
(apply string-append
(map (lambda (x)
(string-append
- (pad-string-to
+ (string-pad-right
(string-append "\n* " (car x) ":: ")
(+ maxwid 8)
)
(display (string-append "\nWriting " x " ... ") (current-error-port)))
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; property stuff.
(define (property->texi where sym)
"Document SYM for WHERE (which can be translation, backend, music)"
- (let* (
- (name (symbol->string sym))
+ (let* ((name (symbol->string sym))
(type?-name (string->symbol
(string-append (symbol->string where) "-type?")))
(doc-name (string->symbol
(desc (object-property sym doc-name)))
(if (eq? desc #f)
- (error "No description for property ~S" sym)
- )
+ (error "No description for property ~S" sym))
+
(cons
(string-append "@code{" name "} "
"(" typename ")")
"(unset)"
(scm->texi (cdr handle)))))
-
(define (backend-property->texi sym)
(property->texi 'backend sym))
((without (property->texi where sym))
(rv
- (cons (car without)
- (if (eq? alist #f)
- (cdr without)
- (string-append
- (cdr without)
- "\nDefault value: "
- (document-property-value sym alist)))))
-
- )
-; (display rv)
- rv ))
+ (cons (car without)
+ (if (eq? alist #f)
+ (cdr without)
+ (string-append
+ (cdr without)
+ "\nDefault value: "
+ (document-property-value sym alist))))))
+ rv))