A while ago, we got a sed script working to fix Lilypond svg output. Looking at the SVG output from 2.12.1 on OSX and using InkScape 0.45 all the grobs are incorrect. I don't have the problems mentioned by other users of missing bar lines, so I'll leave this issue.

I investigated the svg file, and found that the unicode values of all grobs (a three digit, hexadecimal value) has been offset by 15. Thus a quarter-note NoteHead has a unicode value of 136 in Lilypond generated SVG, and this needs to be corrected to 127. A G-clef, which has a unicode value of 1a7 in Lilypond SVG needs to be corrected to 197. The previous corrections relating to font-names also need to be made - see thread http://lists.gnu.org/archive/html/lilypond-user/ 2007-09/msg00029.html (Lilypond incorrectly names Century Schoolbook and Emmentaler fonts.)

I've had a look at making this correction using a sed script, but can't find anything in the documentation relating to the handling of hexadecimal numbers. Does anyone have any ideas, before I write a script manually correcting each grob? Does anyone know where the SVG output is generated and in what language? I might be able to fiddle with the source code too, as it seems to be quite a straightforward adjustment.

Thanks in advance for any tips.

Cheers,

Vivian.







_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to