2004-07-14 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/parser.yy (context_prop_spec): check grob name for
+ alphanumericness..
+
* lily/lyric-engraver.cc: creates LyricText objects
2004-07-13 Han-Wen Nienhuys <hanwen@xs4all.nl>
context_prop_spec:
simple_string {
+ if (!is_regular_identifier ($1))
+ {
+ THIS->here_input ().error (_("Grob name should be alphanumeric"));
+ }
+
$$ = scm_list_2 (ly_symbol2scm ("Bottom"),
scm_string_to_symbol ($1));
}
# If set, LILYPONDPREFIX must take prevalence
# if datadir is not set, we're doing a build and LILYPONDPREFIX
-import getopt, os, sys
+import getopt
+import os
+import sys
datadir = '@local_lilypond_datadir@'
if not os.path.isdir (datadir):
datadir = '@lilypond_datadir@'
# deal with "((latex ) >& 1 ) .." too
cmd = re.match ("([\(\)]*)([^ ]*)", cmd).group(2)
- return os.basename (cmd)
+ return os.path.basename (cmd)
def error_log (name):
name = re.sub('[^a-z]','x', name)