tags = string.split(l, '@:')
if tags[0] == 'group':
group = tags[1]
+ elif tags[0] == 'puorg':
+ group = ''
elif tags[0] == 'char':
+ name = tags[9]
+ if group:
+ name = group + '-' + name
m = {
'description': tags[1],
- 'name': group + '-' + tags[9],
+ 'name': name,
'tex': tags[10],
'code': string.atoi (tags[2]),
'breapth':string.atof (tags[3]),
#urg
if 0: #testing
tags.append ('Regular')
- tags[5] = re.sub (' ','-', tags[5])
+
+
+ encoding = re.sub (' ','-', tags[5])
+ tags = tags[:-1]
name = tags[1:]
global_info['DesignSize'] = string.atof (tags[4])
- print tags
global_info['FontName'] = string.join (name,'-')
global_info['FullName'] = string.join (name,' ')
global_info['FamilyName'] = string.join (name[1:-1],
global_info['FontBBox'] = '0 0 1000 1000'
global_info['Ascender'] = '0'
global_info['Descender'] = '0'
- global_info['EncodingScheme'] = tags[5]
+ global_info['EncodingScheme'] = encoding
return (global_info, charmetrics, deps)
file.write (r"""
%% LilyPond file to list all font symbols and the corresponding names
%% Automatically generated by mf-to-table.py
-\score{ \lyrics \new Lyrics { \time %d/8
+\score{ \new Lyrics \lyrics { \time %d/8
""" % (2*per_line+1))
count = 0
## prevent TeX from interpreting "--" as long dash:
tex_string=re.sub('--','-{}-', tex_string)
- file.write (' \\markup { \\raise #0.75 \\vcenter \\musicglyph #"%s" " %s" } 4 \n' % (scm_string, tex_string))
+ file.write (' \\markup { \\raise #0.75 \\vcenter \\musicglyph #"%s" \\typewriter " %s" } 4 \n' % (scm_string, tex_string))
if (count % 3) ==0:
file.write ('\skip 8 \\break\n')
interscoreline = 1.0
indent = 0.0 \cm
\context {
- \LyricsContext
+ \Lyrics
\override SeparationItem #'padding = #2
minimumVerticalExtent = ##f
}
\context {
- \ScoreContext
+ \Score
\remove "Bar_number_engraver"
}
}
texfile_nm = a
elif o == '--enc':
enc_nm = a
- elif o == '--ly' or o == '-':
+ elif o == '--ly' or o == '-l':
lyfile_nm = a
elif o== '--help' or o == '-h':
help()
base = re.sub ('.tex$', '', texfile_nm)
for filenm in files:
- (g,m, deps) = parse_logfile (filenm)
+ (g, m, deps) = parse_logfile (filenm)
cs = tfm_checksum (re.sub ('.log$', '.tfm', filenm))
afm = open (afmfile_nm, 'w')
del g['DesignSize']
write_afm_metric (afm, g, m)
-
+
write_tex_defs (open (texfile_nm, 'w'), g, m)
enc_name = 'FetaEncoding'
if re.search ('parmesan', filenm) :
elif re.search ('feta-brace', filenm) :
enc_name = 'FetaBraceEncoding'
-
write_ps_encoding (enc_name, open (enc_nm, 'w'), g, m)
- write_deps (open (depfile_nm, 'wb'), deps, [base + '.dvi', base + '.pfa', base + '.pfb', texfile_nm, afmfile_nm])
- if lyfile_nm != '':
- write_fontlist(open (lyfile_nm, 'w'), g, m)
+ if depfile_nm:
+ write_deps (open (depfile_nm, 'wb'), deps,
+ [base + '.dvi', base + '.pfa', base + '.pfb',
+ texfile_nm, afmfile_nm])
+ if lyfile_nm:
+ write_fontlist (open (lyfile_nm, 'w'), g, m)