+2002-04-10 Mats Bengtsson <matsb@s3.kth.se>
+
+ * scm/grob-description.scm (MultiMeasureRest): number-threshold=1
+ by default: avoid "1" over single bar rests.
+
+ * scripts/lilypond-book.py (LatexPaper.set_geo_option): Simplify
+ and correct the handling of geometry options.
+
2002-04-10 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* lily/include/grob-interface.hh (ADD_INTERFACE): make
* lily/beam.cc: remove end_after_line_breaking().
- * lily/grob.cc (calculate_dependencies): remove list support for callbacks.
+ * lily/grob.cc (calculate_dependencies): remove list support for
+ callbacks.
* lily/font-size-engraver.cc: only do font-interface.
* Documentation/windows/gsview-profile.sh: Remove. Functionality
moved to gs/gsview windows packages.
-2002-04-06 Mats Bengtsson <matsb@matsb@s3.kth.se>
+2002-04-06 Mats Bengtsson <matsb@s3.kth.se>
* lily/stem-engraver.cc (acknowledge_grob): Revert to old way of
finding out the duration. Fixes chord tremolo bug.
* lily/system-start-delimiter.cc (after_line_breaking): Bugfix:
glyph is string.
-2002-02-28 Mats Bengtsson <matsb@matsb@s3.kth.se>
+2002-02-28 Mats Bengtsson <matsb@s3.kth.se>
* scm/tex.scm, scm/ps.scm (or): Bugfix, ps output with Guile 3.4
* scm/font.scm (make-style-sheet): Fixes to make staff-sizes work
again.
-2001-12-22 Mats Bengtsson <matsb@matsb@s3.kth.se>
+2001-12-22 Mats Bengtsson <matsb@s3.kth.se>
* tex/lilyponddefs.tex: Make sure interscorelinefill=1 doesn't
spread the last few lines all over the last page of a score.
conv = dimension_conversion_dict[m.group(2)]
value = conv(num)
-
- if name == 'body' or name == 'text':
- if type(value) == type(""):
- self.m_geo_textwidth = value
+
else:
- self.m_geo_textwidth = value[0]
+ m = re.match ("^[0-9.]+$",value)
+ if m:
+ value = float(value)
+
+ if name == 'body' or name == 'text':
+ self.m_geo_textwidth = value
self.__body = 1
elif name == 'portrait':
self.m_geo_landscape = 0
self.m_geo_x_marginparsep = value
self.m_geo_includemp = 1
elif name == 'scale':
- if type(value) == type(""):
- self.m_geo_width = self.get_paperwidth() * float(value)
- else:
- self.m_geo_width = self.get_paperwidth() * float(value[0])
+ self.m_geo_width = self.get_paperwidth() * value
elif name == 'hscale':
- self.m_geo_width = self.get_paperwidth() * float(value)
+ self.m_geo_width = self.get_paperwidth() * value
elif name == 'left' or name == 'lmargin':
self.m_geo_lmargin = value
elif name == 'right' or name == 'rmargin':
if value[2] not in ('*', ''):
self.m_geo_rmargin = value[2]
elif name == 'hmargin':
- if type(value) == type(""):
- self.m_geo_lmargin = value
- self.m_geo_rmargin = value
- else:
- self.m_geo_lmargin = value[0]
- self.m_geo_rmargin = value[1]
+ self.m_geo_lmargin = value
+ self.m_geo_rmargin = value
elif name == 'margin':#ugh there is a bug about this option in
# the geometry documentation
- if type(value) == type(""):
- self.m_geo_lmargin = value
- self.m_geo_rmargin = value
- else:
- self.m_geo_lmargin = value[0]
- self.m_geo_rmargin = value[0]
+ self.m_geo_lmargin = value
+ self.m_geo_rmargin = value
elif name == 'total':
- if type(value) == type(""):
- self.m_geo_width = value
- else:
- self.m_geo_width = value[0]
+ self.m_geo_width = value
elif name == 'width' or name == 'totalwidth':
self.m_geo_width = value
elif name == 'paper' or name == 'papername':