lilypond-user
[Top][All Lists]
Advanced

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

Re: search and replace on all included files on compile


From: Michael Winter
Subject: Re: search and replace on all included files on compile
Date: Wed, 6 Mar 2024 21:51:36 +0100 (CET)

perfect thanks!


Mar 6, 2024, 14:35 by lilypond@hillvisions.com:
On 2024-03-06 10:56 am, Michael Winter via LilyPond user discussion wrote:
I have a programmatically generated score and am now realizing that I want to make a small tweak to text markups that are throughout the score in multiple files that are included at multiple levels. 

" 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded by a 1)

Is it possible to do this with a global search and replace on compile such that I do not need to edit each individual file (of which there are hundreds) manually?

LilyPond does support basic replacements for text markup:

%%%%
\paper {
#(add-text-replacements! '(("1↑" . "1")))
}
%%%%


-- Aaron Hill


reply via email to

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