Thomas Morley <thomasmorle...@gmail.com> writes: > 2015-08-22 10:46 GMT+02:00 David Kastrup <d...@gnu.org>: >> ClausRogge <claus.ro...@aon.at> writes: >> >>> OK thanks for all your suggestions ... the error was very simple - one space >>> too much here >>> \stopStaff s2 s_\markup {\bold "D dur"}^\markup{{\fret-diagram #"s:6;h:5; >>> <-!! >>> 6-2;6-3;6-5;5-2;5-4;5-5;4-2;4-4;4-5;3-2;3-4;2-2;2-3;2-5;1-2;1-3;1-5;"}} >>> >>> I didn't show in my posting because of the automatic line breaking. >> >> That begs the question on whether \fret-diagram should be ignoring >> embedded whitespace in order to allow for more readable formatting of >> the command string. >> >> -- >> David Kastrup > > > How about a check like: > > (string-filter > "s:2;h:5; > 6-x; > 5-x; > 4-4; > 3-2; > 2-3; > 1-x;" > (char-set-union > char-set:letter+digit > char-set:punctuation)) > > If no better suggestion, I'll put up a patch
I'd really just filter on whitespace. If people rely on arbitrary characters getting filtered out, we are not free to extend the syntax at some later point of time with more characters. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user