summaryrefslogtreecommitdiff
path: root/scripts/build/mf-to-table.py
diff options
context:
space:
mode:
authorCarl Sorensen <c_sorensen@byu.edu>2010-04-05 22:42:54 -0600
committerCarl Sorensen <c_sorensen@byu.edu>2010-04-24 12:32:23 -0600
commit6aa85858a5a60256a77dd16e7be44192b523a8f2 (patch)
tree38699af2cc4e845ce4ce2f1329e93fdb87677d18 /scripts/build/mf-to-table.py
parent33c22be29e38987926847629352d0c86ca1bea42 (diff)
Add improved shape note support
Add Christian Harmony, Sacred Harp, and Southern Harmony styles Add variable-thickness open note shapes to the shape note font Change the starting character value for the Feta font to accomodate the extra characters. Add new commands to base shape note scale degrees on the relative major. Modify buildscripts for emmentaler font. Add regression tests for various note styles. Update docs to reflect new settings. Update changes.tely. Move noteheads to separate sub-font to allow space for shape note heads
Diffstat (limited to 'scripts/build/mf-to-table.py')
-rw-r--r--scripts/build/mf-to-table.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/build/mf-to-table.py b/scripts/build/mf-to-table.py
index 9a1c8012e6..542ab774d1 100644
--- a/scripts/build/mf-to-table.py
+++ b/scripts/build/mf-to-table.py
@@ -1,6 +1,6 @@
#!@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.
#
@@ -55,7 +55,7 @@ font_family = 'feta'
def parse_logfile (fn):
autolines, deps = read_log_file (fn)
charmetrics = []
-
+
global_info = {
'filename' : os.path.splitext (os.path.basename (fn))[0]
}
@@ -112,7 +112,7 @@ def parse_logfile (fn):
elif tags[0] == 'parameter':
global_info[tags[1]] = tags[2];
-
+
return (global_info, charmetrics, deps)
@@ -150,7 +150,7 @@ def global_lisp_table (global_info):
keys = ['staffsize', 'stafflinethickness', 'staff_space',
'linethickness', 'black_notehead_width', 'ledgerlinethickness',
- 'design_size',
+ 'design_size',
'blot_diameter'
]
for k in keys:
@@ -159,7 +159,7 @@ def global_lisp_table (global_info):
return str
-
+
def ps_encoding (name, global_info, charmetrics):
encs = ['.notdef'] * 256
for m in charmetrics:
@@ -220,9 +220,9 @@ for opt in options:
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
@@ -242,6 +242,8 @@ for filenm in files:
enc_name = 'FetaEncoding'
if re.search ('parmesan', filenm):
enc_name = 'ParmesanEncoding'
+ elif re.search ('feta-noteheads', filenm):
+ enc_name = 'FetaNoteheadsEncoding'
elif re.search ('feta-brace', filenm):
enc_name = 'FetaBraceEncoding'
elif re.search ('feta-alphabet', filenm):