import stat
import string
import tempfile
+import commands
# Users of python modules should include this snippet
# and customize variables below.
datadir = os.environ['LILYPONDPREFIX']
while datadir[-1] == os.sep:
datadir= datadir[:-1]
-
+
+ datadir = os.path.join (datadir, "share/lilypond/current/")
+
sys.path.insert (0, os.path.join (datadir, 'python'))
# Customize these.
%(preamble_string)s
-%% ********************************
+
+
+
+
+%% ****************************************************************
%% Start cut-&-pastable-section
-%% ********************************
+%% ****************************************************************
\paper {
#(define dump-extents #t)
FRAGMENT_LY = r'''
%(notes_string)s
{
+
+
+%% ****************************************************************
%% ly snippet contents follows:
+%% ****************************************************************
%(code)s
+
+
+%% ****************************************************************
%% end ly snippet
+%% ****************************************************************
}
'''
FULL_LY = '''
+
+
+%% ****************************************************************
%% ly snippet:
+%% ****************************************************************
%(code)s
+
+
+%% ****************************************************************
%% end ly snippet
+%% ****************************************************************
'''
texinfo_linewidths = {
if VERBATIM in self.option_dict:
verb = self.substring ('code')
str += (output[LATEX][VERBATIM] % vars ())
- if QUOTE in self.option_dict:
- str = output[LATEX][QUOTE] % vars ()
str += (output[LATEX][OUTPUT] % vars ())
+ if QUOTE in self.option_dict:
+ str = output[LATEX][QUOTE] % vars ()
return str
def output_print_filename (self, format):
+ ' --formats=%s --backend eps ' % formats
if process_cmd:
- process_cmd += string.join ([(' -I %s' % p)
+ process_cmd += string.join ([(' -I %s' % commands.mkarg (p))
for p in include_path])
ly.identify (sys.stderr)