LEFT | RIGHT |
1 #!@TARGET_PYTHON@ | 1 #!@TARGET_PYTHON@ |
2 | 2 |
3 # This file is part of LilyPond, the GNU music typesetter. | 3 # This file is part of LilyPond, the GNU music typesetter. |
4 # | 4 # |
5 # LilyPond is free software: you can redistribute it and/or modify | 5 # LilyPond is free software: you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation, either version 3 of the License, or | 7 # the Free Software Foundation, either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # LilyPond is distributed in the hope that it will be useful, | 10 # LilyPond is distributed in the hope that it will be useful, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 version = '@TOPLEVEL_VERSION@' | 56 version = '@TOPLEVEL_VERSION@' |
57 if version == '@' + 'TOPLEVEL_VERSION' + '@': | 57 if version == '@' + 'TOPLEVEL_VERSION' + '@': |
58 version = '(unknown version)' # uGUHGUHGHGUGH | 58 version = '(unknown version)' # uGUHGUHGHGUGH |
59 | 59 |
60 """ | 60 """ |
61 @relocate-preamble@ | 61 @relocate-preamble@ |
62 """ | 62 """ |
63 | 63 |
64 ################################################################ | 64 ################################################################ |
| 65 # Load translation and install _() into Python's builtins namespace. |
65 gettext.install ('lilypond', '@localedir@') | 66 gettext.install ('lilypond', '@localedir@') |
66 | 67 |
67 import lilylib as ly | 68 import lilylib as ly |
68 | 69 |
69 finale_clefs= ['treble', 'alto', 'tenor', 'bass', 'percussion', 'treble_8', 'bas
s_8', 'baritone'] | 70 finale_clefs= ['treble', 'alto', 'tenor', 'bass', 'percussion', 'treble_8', 'bas
s_8', 'baritone'] |
70 | 71 |
71 def lily_clef (fin): | 72 def lily_clef (fin): |
72 try: | 73 try: |
73 return finale_clefs[fin] | 74 return finale_clefs[fin] |
74 except IndexError: | 75 except IndexError: |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 if out_filename == f: | 1250 if out_filename == f: |
1250 out_filename = os.path.basename (f + '.ly') | 1251 out_filename = os.path.basename (f + '.ly') |
1251 | 1252 |
1252 sys.stderr.write ('Writing `%s\'' % out_filename) | 1253 sys.stderr.write ('Writing `%s\'' % out_filename) |
1253 ly = e.dump() | 1254 ly = e.dump() |
1254 | 1255 |
1255 fo = open (out_filename, 'w') | 1256 fo = open (out_filename, 'w') |
1256 fo.write ('%% lily was here -- automatically converted by etf2ly from %s\n'
% f) | 1257 fo.write ('%% lily was here -- automatically converted by etf2ly from %s\n'
% f) |
1257 fo.write(ly) | 1258 fo.write(ly) |
1258 fo.close () | 1259 fo.close () |
LEFT | RIGHT |