Documentation/snippets/jazz-combo-template.ly contains a variable
definition named "bass", of which lilypond-book translates all
occurences in Texinfo verbatim ly code, including the case where
"bass" is an argument of the \clef command. As variables may be used
in Scheme code and this gettextization is done without real parsing,
it's impossible to avoid such corner cases, which will thus be fixed
ad-hoc as they are discovered.
Thanks to Francisco Vila for the report.
if langdefs.LANGDICT[document_language].enable_ly_identifier_l10n:
for v in ly_var_def_re.findall (s):
- s = re.sub (r"(?m)(^|[' \\#])%s([^a-zA-Z])" % v,
+ s = re.sub (r"(?m)(?<!\\clef)(^|[' \\#])%s([^a-zA-Z])" % v,
"\\1" + t (v) + "\\2",
s)
for id in ly_context_id_re.findall (s):