Felix Janda <[email protected]> writes: > Hi, > > just some thoughts on the current header parsing of Mutopia's software > motivated by (not wanting to install java and) the thought that lilypond's > language is so complex that parsing it should be left to lilypond itself.
dak@lola:/usr/local/tmp/lilypond$ time lilypond -e "(set! print-book-with-defaults (lambda (parser book) (module-for-each (lambda (sym var) (if (markup? (variable-ref var)) (format #t \"~a=~S\\n\" sym (markup->string (variable-ref var))))) (ly:book-header book))))" input/regression/mozart-hrn-3.ly GNU LilyPond 2.17.7 Processing `input/regression/mozart-hrn-3.ly' Parsing...copyright="public domain" opus="KV 447" maintainerEmail="[email protected]" instrument="Horn in F" editor="Henri Kling" maintainer="[email protected]" composer="Wolfgang Amadeus Mozart (1756-1791)" maintainerWeb="http://www.xs4all.nl/~hanwen/" subtitle="für Horn und Orchester" mutopiatitle="Horn Concerto 3" style="classical" lastupdated="2002/May/21" source="Edition Breitkopf 2563" texidoc=" This is the Mozart 3 for horn. It's from an Edition Breitkopf EB 2563, edited by Henri Kling. Henri Kling (1842-1918) was a horn virtuoso that taught in Geneva. " footer="Mutopia-2002/05/21-25" mutopiaopus="KV447" title="Konzert Nr. 3 Es dur" tagline="Mutopia-2002/05/21-25 This music is part of the Mutopia project, http://mutopiaproject.org/ It has been typeset and placed in the public domain by [email protected]. Unrestricted modification and redistribution is permitted and encouraged - copy this music and share it!" enteredby="HWN" mutopiacomposer="W.A.Mozart" Success: compilation successfully completed real 0m0.992s user 0m0.872s sys 0m0.104s dak@lola:/usr/local/tmp/lilypond$ -- David Kastrup _______________________________________________ Mutopia-discuss mailing list [email protected] http://lists.bcn.mythic-beasts.com/mailman/listinfo/mutopia-discuss
