]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_texinfo.py
Remove unneccessary parenthesis
[lilypond.git] / python / book_texinfo.py
index 4b5120f9d9f331f66eb1e07ddeac359a6aa8c380..5cfa95a687472364460229bb9770ce295ca2f481 100644 (file)
@@ -58,6 +58,15 @@ TexInfo_snippet_res = {
             .*?
            @end\s+ignore))\s''',
 
+    'musicxml_file': r'''(?mx)
+          ^(?P<match>
+          @musicxmlfile\s*(
+          \[
+           \s*(?P<options>.*?)\s*
+          \])?\s*{
+           (?P<filename>\S+)
+          })''',
+
     'singleline_comment': r'''(?mx)
           ^.*
           (?P<match>
@@ -103,7 +112,7 @@ TexInfo_output = {
 @end ifinfo
 @html
 <p>
- <a href="%(base)s.ly">
+ <a href="%(base)s%(ext)s">
   <img align="middle"
        border="0"
        src="%(image)s"
@@ -115,7 +124,7 @@ TexInfo_output = {
 
     PRINTFILENAME: '''
 @html
-<a href="%(base)s.ly">
+<a href="%(base)s%(ext)s">
 @end html
 @file{%(filename)s}
 @html
@@ -125,10 +134,6 @@ TexInfo_output = {
 
     QUOTE: r'''@quotation
 %(str)s@end quotation
-''',
-
-    NOQUOTE: r'''@format
-%(str)s@end format
 ''',
 
     VERBATIM: r'''@exampleindent 0
@@ -242,7 +247,7 @@ class BookTexinfoOutputFormat (BookBase.BookOutputFormat):
             rep['verb'] = snippet.verb_ly ()
             substr = self.output[VERBATIM] % rep
         substr += self.output_info (basename, snippet)
-        if LILYQUOTE in snippet.option_dict:
+        if QUOTE in snippet.option_dict:
             substr = self.output[QUOTE] % {'str': substr}
         str += substr
 
@@ -250,9 +255,6 @@ class BookTexinfoOutputFormat (BookBase.BookOutputFormat):
 #                str += ('@tex\n' + self.output_latex () + '\n@end tex\n')
 #                str += ('@html\n' + self.output_html () + '\n@end html\n')
 
-        if QUOTE in snippet.option_dict:
-            str = self.output[QUOTE] % rep
-
         # need par after image
         str += '\n'