Re: convert-ly for note/rest-markup

2021-02-11 Thread Aaron Hill
On 2021-02-11 2:54 pm, Michael Käppler wrote: Am 11.02.2021 um 23:39 schrieb Aaron Hill: On 2021-02-11 2:04 pm, David Kastrup wrote: Short of special-patterning the known exceptions...  a bit of a nightmare. Does the pattern matching need to be so particular about context? Consider a primitiv

Re: convert-ly for note/rest-markup

2021-02-11 Thread Michael Käppler
Am 11.02.2021 um 23:39 schrieb Aaron Hill: On 2021-02-11 2:04 pm, David Kastrup wrote: Short of special-patterning the known exceptions...  a bit of a nightmare. Does the pattern matching need to be so particular about context? Consider a primitive approach:   re.sub(r'\\note\s*#"([^"]+)"', r

Re: convert-ly for note/rest-markup

2021-02-11 Thread Aaron Hill
On 2021-02-11 2:04 pm, David Kastrup wrote: Short of special-patterning the known exceptions... a bit of a nightmare. 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 th

Re: convert-ly for note/rest-markup

2021-02-11 Thread Carl Sorensen
Oops -- copying to the list. Sorry about my mistake. See below. On 2/11/21, 3:29 PM, "David Kastrup" wrote: Carl Sorensen writes: > On 2/11/21, 3:15 PM, "lilypond-devel on behalf of David Kastrup" > behalf of d...@gnu.org> wrote: > > Michael Käppler writes:

Re: convert-ly for note/rest-markup

2021-02-11 Thread David Kastrup
Michael Käppler writes: > Am 03.02.2021 um 09:05 schrieb Michael Käppler: >> Hi Harm, >> >> Am 02.02.2021 um 22:52 schrieb Thomas Morley: >>> Hi, >>> >>> with e35b7959dfe the note-markup-command was changed to need a >>> duration-argument, before it was a string. >>> With, MR 627 "Revisit rest-ma

Re: convert-ly for note/rest-markup

2021-02-11 Thread Michael Käppler
Am 03.02.2021 um 09:05 schrieb Michael Käppler: Hi Harm, Am 02.02.2021 um 22:52 schrieb Thomas Morley: Hi, with e35b7959dfe the note-markup-command was changed to need a duration-argument, before it was a string. With, MR 627 "Revisit rest-markup-commands" https://gitlab.com/lilypond/lilypond/

Re: convert-ly for note/rest-markup

2021-02-03 Thread Michael Käppler
Hi Harm, Am 02.02.2021 um 22:52 schrieb Thomas Morley: Hi, with e35b7959dfe the note-markup-command was changed to need a duration-argument, before it was a string. With, MR 627 "Revisit rest-markup-commands" https://gitlab.com/lilypond/lilypond/-/merge_requests/627 I attempt to do similar for

convert-ly for note/rest-markup

2021-02-02 Thread Thomas Morley
Hi, with e35b7959dfe the note-markup-command was changed to need a duration-argument, before it was a string. With, MR 627 "Revisit rest-markup-commands" https://gitlab.com/lilypond/lilypond/-/merge_requests/627 I attempt to do similar for the rest-markup-command. This change would need a convert