Re: how to remove marks automatically

2024-05-25 Thread Stefan Thomas
Dear Silvain,
thank You, this worked perfectly for me!
Providing you have juste one space as in the example,
in the part \mark \markup {
you can do a search and replace

\\mark.\\markup.{[^{]+{[^}]+}[^}]+}

with nothing

(I tested it in Geany on Ubuntu)

dot means one character
[^{]* means a non-empty sequence of characters without any { character
\ needs escaping
Your could add \s at the end to remove empty spaces or lines


Le 25.05.24 à 18:15, Stefan Thomas a écrit :

Dear community,
I would like to remove automatically all the "\mark \markup { \box { LETTER
} }" in the below quoted text. Can I do this with regex? Does someone know
how?
Thanks,
Stefan

\version "2.22.2"

violine =  {
\clef "treble" | % 1
R1*8 | % 9
\mark \markup { \box { A   } } R1*8 -\markup{ \tiny {Lija+Tambor} }
\mark \markup { \box { B   } }
 R1*8
\mark \markup { \box { C   } }
r4 2. \fermata :32
}



-- 
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 


Re: how to remove marks automatically

2024-05-25 Thread Knute Snortum
On Sat, May 25, 2024 at 9:16 AM Stefan Thomas 
wrote:

> Dear community,
> I would like to remove automatically all the "\mark \markup { \box {
> LETTER } }" in the below quoted text. Can I do this with regex? Does
> someone know how?
> Thanks,
> Stefan
>
> \version "2.22.2"
>
> violine =  {
> \clef "treble" | % 1
> R1*8 | % 9
> \mark \markup { \box { A   } } R1*8 -\markup{ \tiny {Lija+Tambor} }
> \mark \markup { \box { B   } }
>  R1*8
> \mark \markup { \box { C   } }
> r4 2. \fermata :32
> }
>
> You could try something like this:

/\\mark\s*\\markup\s*\{\s*\\box\s\{\s*\w+\s*\}\s*\}/gm



--
Knute Snortum


Re: how to remove marks automatically

2024-05-25 Thread Silvain Dupertuis

Providing you have juste one space as in the example,
in the part \mark \markup {
you can do a search and replace

\\mark.\\markup.{[^{]+{[^}]+}[^}]+}

with nothing

(I tested it in Geany on Ubuntu)

dot means one character
[^{]* means a non-empty sequence of characters without any { character
\ needs escaping
Your could add \s at the end to remove empty spaces or lines


Le 25.05.24 à 18:15, Stefan Thomas a écrit :

Dear community,
I would like to remove automatically all the "|\mark \markup { \box { LETTER } }|" in 
the below quoted text. Can I do this with regex? Does someone know how?

Thanks,
Stefan
|\version "2.22.2" violine = { \clef "treble" | % 1 R1*8 | % 9 \mark \markup { \box { A 
} } R1*8 -\markup{ \tiny {Lija+Tambor} } \mark \markup { \box { B } } R1*8 \mark \markup 
{ \box { C } } r4 2. \fermata :32 } |



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org