bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glyph-path-regexp in SVG output is overly strict


From: Simon Tatham
Subject: Re: glyph-path-regexp in SVG output is overly strict
Date: Fri, 21 Feb 2020 11:33:03 +0000
User-agent: Sup/git

Jonas Hahnfeld <address@hidden> wrote:
> looking at https://sourceforge.net/p/testlilyissues/issues/5779/ and
> the grammar you linked, I think the regular expression is also missing
> '+Aa,'. Does it make sense to fuse attached patch?

The idea looks sensible to me, but I think you've made a mistake in the
regular expression syntax. The character '-' has to appear immediately
after the open bracket, otherwise it's taken to be the punctuation in a
range such as "A-Z". So the character class
[+-MmZzLlHhVvCcSsQqTtAa0-9,.Ee\n ] will match (at least) any character
between '+' and 'M'.

If you start the brackets with [-+Mm...] instead of [+-Mm...] then I
think it does what you intended.

Cheers,
Simon

-- 
for k in [pow(x,37,0x1a1298d262b49c895d47f) for x in [0x50deb914257022de7fff,
0x213558f2215127d5a2d1, 0x90c99e86d08b91218630, 0x109f3d0cfbf640c0beee7,
0xc83e01379a5fbec5fdd1, 0x19d3d70a8d567e388600e, 0x534e2f6e8a4a33155123]]:
 print("".join([chr(32+3*((k>>x)&1))for x in range(79)])) # <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]