[Top][All Lists]

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

Re: convert-ly for note/rest-markup

From: Aaron Hill
Subject: Re: convert-ly for note/rest-markup
Date: Thu, 11 Feb 2021 14:39:03 -0800
User-agent: Roundcube Webmail/1.4.9

On 2021-02-11 2:04 pm, David Kastrup wrote:
Short of special-patterning the known exceptions...  a bit of a

Does the pattern matching need to be so particular about context? Consider a primitive approach:

  re.sub(r'\\note\s*#"([^"]+)"', r"\\note { \g<1> }", ...)

This matches the `\note #"..."` pattern, converting to `\note { ... }`.

-- Aaron Hill

reply via email to

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