[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with 1.3.137
From: |
Jan Nieuwenhuizen |
Subject: |
Re: Problems with 1.3.137 |
Date: |
16 Mar 2001 09:39:21 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
address@hidden writes:
> The example worked in 1.3.135, however in 1.3.137 ly2dvi gives the
> following stack trace
Thanks, this will be fixed in 138, see patch below:
--- scripts/ly2dvi.py~ Thu Mar 15 18:43:30 2001
+++ scripts/ly2dvi.py Fri Mar 16 09:37:54 2001
@@ -103,9 +103,15 @@
'''Make the progress messages stand out between lilypond stuff'''
# Why should they have to stand out? Blend in would be nice too.
sys.stderr.write ('*** ' + s+ '\n')
+
+def warning (s):
+ sys.stderr.write (_ ("warning: ") + s)
+ sys.stderr.write ('\n')
+
def error (s):
- sys.stderr.write (s)
+ sys.stderr.write (_ ("error: ") + s)
+ sys.stderr.write ('\n')
raise _ ("Exiting ... ")
@@ -200,9 +206,8 @@
sys.stdout.write ('\n')
sys.stdout.write (options_help_str (option_definitions))
sys.stdout.write ('\n\n')
- sys.stdout.write (_ ("warning: "))
- sys.stdout.write (_ ("all output is written in the CURRENT directory"))
- sys.stdout.write ('\n\n')
+ warning (_ ("all output is written in the CURRENT directory"))
+ sys.stdout.write ('\n')
sys.stdout.write (_ ("Report bugs to %s") % 'address@hidden')
sys.stdout.write ('\n')
sys.exit (0)
@@ -270,11 +275,13 @@
try:
val = string.atof (val)
except ValueError:
+ warning (_ ("invalid value: %s") % `val`)
pass
try:
dict[key].append (val)
except KeyError:
+ warning (_ ("no such setting: %s") % `key`)
dict[key] = [val]
@@ -314,7 +321,7 @@
x = 0
while 1:
fname = os.path.basename (f)
- fname = os.path.splitext (fname)[0]
+ fname = strip_ly_suffix (fname)
if x:
fname = fname + '-%d' % x
@@ -324,7 +331,9 @@
else:
break
- x = x +1
+ x = x + 1
+ if not x:
+ warning (_ ("no lilypond output found for %s") % `files`)
return tfiles
def one_latex_definition (defn, first):
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org