]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/mf-to-table.py
* ly/engraver-init.ly (AncientRemoveEmptyStaffContext): move
[lilypond.git] / buildscripts / mf-to-table.py
index c3051019a0fd32675410be1f1d8b2fdbce390fbc..3ad0c86bc2794788a51046ede08a0121fef560ed 100644 (file)
@@ -169,13 +169,15 @@ def write_fontlist (file, global_info, charmetrics):
                count += 1
                
 ## \musicglyph and \markup require "_" to be escaped differently:
-               musicglyphname=re.sub('_','\\\\_', m['name'])
-               markupname=re.sub('_','\\\\_', musicglyphname)
+               
 
+               scm_string = re.sub('_', r'_', m['name'])
+               tex_string = re.sub ('_', r'\\_' , m['name'])
+               
 ## prevent TeX from interpreting "--" as long dash:
-               markupname=re.sub('--','-{}-', markupname)
+               tex_string=re.sub('--','-{}-', tex_string)
 
-               file.write ('  s^\\markup { \\musicglyph #"%s" "%s" }\n' % (musicglyphname, markupname))
+               file.write ('  s^\\markup { \\musicglyph #"%s" "%s" }\n' % (scm_string, tex_string))
 
                if (count % 3) ==0:
                        file.write ('  \\break\n')