# one backreference to group 1 (that's two 2\ ).
new_header = re.sub("@code\{\\\\([a-zA-Z])", "@code{\\\\\\\\\\1", header)
escaped_snippet = (snippet[:header_char_number_start] +
- new_header + snippet[header_char_number_end:])
+ new_header + snippet[header_char_number_end:])
return escaped_snippet
def copy_ly (srcdir, name, tags):
"http://lilypond.org",
mshort+getTrans(" (did not exist in 2.12)",lang))
continue
- # this is stupid and I shouldn't have bothered trying
- # to support the 2.12 docs and it will be deleted once
- # 2.14 is out and the website won't be visible to users
+ # this is stupid and I shouldn't have bothered trying
+ # to support the 2.12 docs and it will be deleted once
+ # 2.14 is out and the website won't be visible to users
# until 2.14 is out. -gp
if (url.endswith('.html')):
make_ver_link(macroLang("manual"+name+mshort+'Pdf',lang),
# questionable
if (not link.startswith("../doc/")):
if (link.endswith(".html")):
- langlink = addLangExt(link[:-5], lang, "html")
+ langlink = addLangExt(link[:-5], lang, "html")
line = line.replace(link, langlink)
if (link.endswith(".pdf")):
- langlink = addLangExt(link[:-4], lang, "pdf")
+ langlink = addLangExt(link[:-4], lang, "pdf")
line = line.replace(link, langlink)
### add google tracker header
if (line.find("</head>") >= 0):
# TODO: Handle the level-display setting for displaying brackets/parentheses
elif n.get_maybe_exist_typed_child (musicxml.Unpitched):
- # Unpitched elements have display-step and can also have
- # display-octave.
- unpitched = n.get_maybe_exist_typed_child (musicxml.Unpitched)
- event = musicexp.NoteEvent ()
- event.pitch = musicxml_unpitched_to_lily (unpitched)
+ # Unpitched elements have display-step and can also have
+ # display-octave.
+ unpitched = n.get_maybe_exist_typed_child (musicxml.Unpitched)
+ event = musicexp.NoteEvent ()
+ event.pitch = musicxml_unpitched_to_lily (unpitched)
elif n.get_maybe_exist_typed_child (musicxml.Rest):
# rests can have display-octave and display-step, which are
p = None
step = mxl_unpitched.get_step ()
if step:
- p = musicexp.Pitch ()
- p.step = musicxml_step_to_lily (step)
+ p = musicexp.Pitch ()
+ p.step = musicxml_step_to_lily (step)
octave = mxl_unpitched.get_octave ()
if octave and p:
- p.octave = octave - 4
+ p.octave = octave - 4
return p
def musicxml_restdisplay_to_lily (mxl_rest):