#!@PYTHON@
-# mf-to-table.py -- convert spacing info in MF logs .
+# mf-to-table.py -- convert spacing info in MF logs .
+
+# This file is part of LilyPond, the GNU music typesetter.
+#
+# Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+#
+# LilyPond is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# source file of the GNU LilyPond music typesetter
+# LilyPond is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# (c) 1997--2008 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+# You should have received a copy of the GNU General Public License
+# along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
def parse_logfile (fn):
autolines, deps = read_log_file (fn)
charmetrics = []
-
+
global_info = {
'filename' : os.path.splitext (os.path.basename (fn))[0]
}
elif tags[0] == 'parameter':
global_info[tags[1]] = tags[2];
-
+
return (global_info, charmetrics, deps)
keys = ['staffsize', 'stafflinethickness', 'staff_space',
'linethickness', 'black_notehead_width', 'ledgerlinethickness',
- 'design_size',
+ 'design_size',
'blot_diameter'
]
for k in keys:
return str
-
+
def ps_encoding (name, global_info, charmetrics):
encs = ['.notdef'] * 256
for m in charmetrics:
depfile_nm = a
elif o == '--outdir' or o == '-o':
outdir_prefix = a
- elif o == '--lisp':
+ elif o == '--lisp':
char_lisp_nm = a
- elif o == '--global-lisp':
+ elif o == '--global-lisp':
global_lisp_nm = a
elif o == '--enc':
enc_nm = a
enc_name = 'FetaEncoding'
if re.search ('parmesan', filenm):
enc_name = 'ParmesanEncoding'
+ elif re.search ('parmesan-noteheads', filenm):
+ enc_name = 'ParmesanNoteheadsEncoding'
+ elif re.search ('feta-noteheads', filenm):
+ enc_name = 'FetaNoteheadsEncoding'
+ elif re.search ('feta-flags', filenm):
+ enc_name = 'FetaFlagsEncoding'
elif re.search ('feta-brace', filenm):
enc_name = 'FetaBraceEncoding'
elif re.search ('feta-alphabet', filenm):