]> git.donarmstrong.com Git - lilypond.git/commitdiff
the great dash-replace.
authorhanwen <hanwen>
Mon, 6 Feb 2006 01:13:59 +0000 (01:13 +0000)
committerhanwen <hanwen>
Mon, 6 Feb 2006 01:13:59 +0000 (01:13 +0000)
(lilypond_version_re_str): require
only numbers and dots in \version string.

87 files changed:
ChangeLog
VERSION
lily/ambitus.cc
lily/arpeggio.cc
lily/bar-line.cc
lily/beam.cc
lily/book.cc
lily/break-algorithm.cc
lily/breathing-sign.cc
lily/figured-bass-continuation.cc
lily/font-metric-scheme.cc
lily/gourlay-breaking.cc
lily/grid-line-interface.cc
lily/instrument-name-engraver.cc
lily/lyric-extender.cc
lily/lyric-hyphen.cc
lily/mensural-ligature-engraver.cc
lily/mensural-ligature.cc
lily/multi-measure-rest.cc
lily/output-def-scheme.cc
lily/output-def.cc
lily/paper-def.cc
lily/score-scheme.cc
lily/score.cc
lily/slur-scoring.cc
lily/staff-symbol-referencer.cc
lily/staff-symbol.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/system-start-delimiter.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
ly/Welcome_to_LilyPond.ly
ly/accordion-defs-init.ly
ly/bagpipe.ly
ly/catalan.ly
ly/chord-modifiers-init.ly
ly/declarations-init.ly
ly/deutsch.ly
ly/drumpitch-init.ly
ly/dynamic-scripts-init.ly
ly/english.ly
ly/engraver-init.ly
ly/espanol.ly
ly/generate-documentation.ly
ly/generate-interface-doc-init.ly
ly/grace-init.ly
ly/gregorian-init.ly
ly/init.ly
ly/italiano.ly
ly/midi-init.ly
ly/music-functions-init.ly
ly/nederlands.ly
ly/norsk.ly
ly/paper-defaults.ly
ly/params-init.ly
ly/performer-init.ly
ly/portugues.ly
ly/property-init.ly
ly/scale-definitions-init.ly
ly/script-init.ly
ly/spanners-init.ly
ly/suomi.ly
ly/svenska.ly
ly/titling-init.ly
ly/vlaams.ly
ps/lilyponddefs.ps
python/convertrules.py
scm/define-context-properties.scm
scm/define-grob-interfaces.scm
scm/define-grob-properties.scm
scm/define-grobs.scm
scm/define-markup-commands.scm
scm/framework-gnome.scm
scm/framework-ps.scm
scm/framework-svg.scm
scm/framework-tex.scm
scm/fret-diagrams.scm
scm/layout-beam.scm
scm/layout-page-layout.scm
scm/output-ps.scm
scm/output-tex.scm
scm/page.scm
scm/paper-system.scm
scm/paper.scm
scm/titling.scm
scripts/convert-ly.py

index 4fd6f43b93557c00dc05fa5fea1821a483a0684f..4f9f62303f9dbcf7a46fd5f7c41050a0545a7ee3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-06  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * {ly,lily,scm}/*: use dashes in \paper and \layout variables
+
+       * python/convertrules.py (lilypond_version_re_str): require
+       only numbers and dots in \version string.
+
 2006-02-05  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/system-start-delimiter.cc (print): allow style = text too.
diff --git a/VERSION b/VERSION
index b82c8c0b58e3ac144e4da15f36fccac2a664f822..585440a1805bcde931a68b7a93a770f106747bd0 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=7
-PATCH_LEVEL=31
+PATCH_LEVEL=32
 MY_PATCH_LEVEL=
 
index bdab636b6fd58b667efcddc1319e70904ca39153..9f1f5e769d501a8ac815a5d122d06db6f55c528d 100644 (file)
@@ -51,9 +51,9 @@ Ambitus::print (SCM smob)
 
       if (pmin < pmax)
        {
-         Real linethickness = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"))
+         Real linethickness = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"))
            * robust_scm2double (me->get_property ("thickness"), 1.0);
-         Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+         Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
          Interval x_extent = 0.5 * linethickness * Interval (-1, 1);
          Interval y_extent = Interval (pmin, pmax);
          Box line_box (x_extent, y_extent);
index d4d95a3e8de80a8bb067f8b535b876089b8979c0..15da9771ceedb7fb4aad88df97720f1af51668bf 100644 (file)
@@ -119,7 +119,7 @@ Arpeggio::brew_chord_bracket (SCM smob)
       heads.unite (iv + ss->relative_coordinate (common, Y_AXIS) - my_y);
     }
 
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real sp = 1.5 * Staff_symbol_referencer::staff_space (me);
   Real dy = heads.length () + sp;
   Real x = 0.7;
index 5a30a2c9a5d83ae4d9f8c8b93f9f610eb36f0835..28acd4f68ab219cba1c711edf0422d4448085374 100644 (file)
@@ -45,7 +45,7 @@ Bar_line::compound_barline (Grob *me, std::string str, Real h,
   Real hair = robust_scm2double (me->get_property ("hair-thickness"), 1);
   Real fatline = robust_scm2double (me->get_property ("thick-thickness"), 1);
 
-  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real staff_space = Staff_symbol_referencer::staff_space (me);
 
   kern *= staffline;
@@ -146,7 +146,7 @@ Bar_line::simple_barline (Grob *me,
 {
   Real blot
     = rounded
-    ? me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"))
+    ? me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"))
     : 0.0;
 
   return Lookup::round_filled_box (Box (Interval (0, w),
index d91431a919cd06b52169b678931cff2fface3e17..ce0f1aff2c82e1da286f33823b0266861f35e675 100644 (file)
@@ -334,7 +334,7 @@ Beam::print (SCM grob)
   Real gap_length = robust_scm2double (me->get_property ("gap"), 0.0);
 
   Stencil the_beam;
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   for (vsize i = 0; i <= stems.size (); i++)
     {
@@ -391,7 +391,7 @@ Beam::print (SCM grob)
       if (stem)
        w += stem_width / 2;
 
-      Real blot = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+      Real blot = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
       Stencil whole = Lookup::beam (slope, w, thick, blot);
       Stencil gapped;
 
index 58972afa7c924d26308b8b84b0e6c4c73bd59dba..edfca69fcf740914e94dd730316525163b487a07 100644 (file)
@@ -98,7 +98,7 @@ Book::process (Output_def *default_paper,
     return 0;
   
   Paper_book *paper_book = new Paper_book ();
-  Real scale = scm_to_double (paper->c_variable ("outputscale"));
+  Real scale = scm_to_double (paper->c_variable ("output-scale"));
   Output_def *scaled_bookdef = scale_output_def (paper, scale);
 
   Object_key *key = new Lilypond_general_key (0, user_key_, 0);
index bfc5da52fb3f756819f586cba40733d5bd709eb3..438bbe4c141503bf76b9e340fea3abcbc8ee020b 100644 (file)
@@ -85,7 +85,7 @@ void
 Break_algorithm::set_pscore (Paper_score *s)
 {
   pscore_ = s;
-  linewidth_ = s->layout ()->get_dimension (ly_symbol2scm ("linewidth"));
+  linewidth_ = s->layout ()->get_dimension (ly_symbol2scm ("line-width"));
 }
 
 std::vector<Column_x_positions>
index 6e342f451337a0de7f7a7301a696693f04d0d445..f39e748fb54f72e91edff6e418dd3a93621516b5 100644 (file)
@@ -49,7 +49,7 @@ Breathing_sign::divisio_minima (SCM smob)
   else
     staff_size = 0.0;
 
-  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   /*
    * Draw a small vertical line through the uppermost (or, depending
@@ -80,7 +80,7 @@ Breathing_sign::divisio_maior (SCM smob)
   else
     staff_size = 0.0;
 
-  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   /*
    * Draw a vertical line that is vertically centered in the staff
@@ -118,7 +118,7 @@ Breathing_sign::divisio_maxima (SCM smob)
   else
     staff_size = 0.0;
 
-  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   // like a "|" type bar
   Interval xdim (0, thickness);
@@ -146,7 +146,7 @@ Breathing_sign::finalis (SCM smob)
   else
     staff_size = 0.0;
 
-  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+  Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   // like a "||" type bar
   Interval xdim (0, thickness);
index 45cb543821d5bc99153f1a6e17969be7c5f9b4b2..d6b6f2002bb2be583fd2ff6ae14d1894d99bd4e5 100644 (file)
@@ -51,7 +51,7 @@ Figured_bass_continuation::print (SCM grob)
   Spanner *me = dynamic_cast<Spanner*> (unsmob_grob (grob));
 
   Real thick =
-    me->layout ()->get_dimension (ly_symbol2scm ("linethickness"))
+    me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"))
     * robust_scm2double (me->get_property ("thickness"), 1);
   
   Interval spanned;
index b24a94c3dbd4c3ad03b9a9bb405d473c9b93188d..bcb034174e6561ee1e7e840fe948bb303dffb3c6 100644 (file)
@@ -123,7 +123,7 @@ LY_DEFINE (ly_font_name, "ly:font-name",
 LY_DEFINE (ly_font_magnification, "ly:font-magnification", 1, 0, 0,
           (SCM font),
           "Given the font metric @var{font}, return the "
-          "magnification, relative to the current outputscale.")
+          "magnification, relative to the current outputs-cale.")
 {
   Font_metric *fm = unsmob_metrics (font);
   SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric");
@@ -133,7 +133,7 @@ LY_DEFINE (ly_font_magnification, "ly:font-magnification", 1, 0, 0,
 LY_DEFINE (ly_font_design_size, "ly:font-design-size", 1, 0, 0,
           (SCM font),
           "Given the font metric @var{font}, return the "
-          "design size, relative to the current outputscale.")
+          "design size, relative to the current output-scale.")
 {
   Font_metric *fm = unsmob_metrics (font);
   SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric");
index 83f0006cb2370d5c4f573201f50fe0bac16ce04f..798d2435f9c9cd4ba40cfc623766f6327eaed550 100644 (file)
@@ -86,7 +86,7 @@ Gourlay_breaking::do_solve () const
   Break_node first_node;
   optimal_paths.push_back (first_node);
 
-  bool ragged_right = to_boolean (pscore_->layout ()->c_variable ("raggedright"));
+  bool ragged_right = to_boolean (pscore_->layout ()->c_variable ("ragged-right"));
   bool ragged_last = to_boolean (pscore_->layout ()->c_variable ("raggedlast"));
 
   Real worst_force = 0.0;
index 36dd333124575815ee3374ab0eb4a2538b60784a..49befddff8653fba050309ceaaaf0be4c7d390a4 100644 (file)
@@ -38,7 +38,7 @@ Grid_line_interface::print (SCM smobbed_me)
       return SCM_EOL;
     }
 
-  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real thick = robust_scm2double (me->get_property ("thickness"), 1.0)
     * staffline;
 
@@ -55,7 +55,7 @@ Grid_line_interface::width (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
 
-  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real staffline = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real thick = robust_scm2double (me->get_property ("thickness"), 1.0)
     * staffline;
 
index e6850fba0b6b9bdfcabcc87f0ff219ef8550798a..e8fcfbef03efaaf2e909ad5988b0dc9ff88dc5eb 100644 (file)
 
 #include "translator.icc"
 
-class New_instrument_name_engraver : public Engraver
+class Instrument_name_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS (New_instrument_name_engraver);
+  TRANSLATOR_DECLARATIONS (Instrument_name_engraver);
 
 protected:
   Spanner *text_spanner_;
@@ -28,13 +28,13 @@ protected:
   void process_music ();
 };
 
-New_instrument_name_engraver::New_instrument_name_engraver ()
+Instrument_name_engraver::Instrument_name_engraver ()
 {
   text_spanner_ = 0;
 }
 
 void
-New_instrument_name_engraver::process_music ()
+Instrument_name_engraver::process_music ()
 {
   if (!text_spanner_)
     {
@@ -60,7 +60,7 @@ New_instrument_name_engraver::process_music ()
 }
 
 void
-New_instrument_name_engraver::acknowledge_axis_group (Grob_info info)
+Instrument_name_engraver::acknowledge_axis_group (Grob_info info)
 {
   if (text_spanner_ 
       && dynamic_cast<Spanner *> (info.grob ())
@@ -74,7 +74,7 @@ New_instrument_name_engraver::acknowledge_axis_group (Grob_info info)
 }
 
 void
-New_instrument_name_engraver::finalize ()
+Instrument_name_engraver::finalize ()
 {
   if (text_spanner_)
     {
@@ -85,9 +85,9 @@ New_instrument_name_engraver::finalize ()
 
 #include "translator.icc"
 
-ADD_ACKNOWLEDGER (New_instrument_name_engraver, axis_group);
+ADD_ACKNOWLEDGER (Instrument_name_engraver, axis_group);
 
-ADD_TRANSLATOR (New_instrument_name_engraver,
+ADD_TRANSLATOR (Instrument_name_engraver,
 
                /* doc */
                "Creates a system start text for instrument or vocal names.",
index 051e1231cbdfd9905961081c2880bbcca3a023fa..281296c506157dc570f3cb93d95fc5d9cb649f2a 100644 (file)
@@ -30,7 +30,7 @@ Lyric_extender::print (SCM smob)
     common = common->common_refpoint (right_text, X_AXIS);
 
   common = common->common_refpoint (me->get_bound (RIGHT), X_AXIS);
-  Real sl = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real sl = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   extract_grob_set (me, "heads", heads);
 
index 07a069f761cdb3a0010c74f0102372d9ae9747eb..f37be209710130af357446b093db9f84b5f9d775 100644 (file)
@@ -47,7 +47,7 @@ Hyphen_spanner::print (SCM smob)
     }
   while (flip (&d) != LEFT);
 
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real th = robust_scm2double (me->get_property ("thickness"), 1) * lt;
   Real font_size_step = robust_scm2double (me->get_property ("font-size"), 0.0);
   Real h = robust_scm2double (me->get_property ("height"), 0.5)
index 377c4aebfc290dcf224325a5a48df621f894e418..f6fafa12278b2ab38fc5d74d280ecd0b500ec6bd 100644 (file)
@@ -301,7 +301,7 @@ Mensural_ligature_engraver::propagate_properties (Spanner *ligature,
   Real thickness
     = robust_scm2double (ligature->get_property ("thickness"), 1.4);
   thickness
-    *= ligature->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+    *= ligature->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   Real head_width
     = Font_interface::get_default_font (ligature)->
index aeb0194a3b91ae45e30fb209bf67d1859a8fd2d8..a36f1b17239386c35421129dff891a4f6bfbb111 100644 (file)
@@ -144,7 +144,7 @@ internal_brew_primitive (Grob *me)
     }
 
   Real blotdiameter
-    = (me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter")));
+    = (me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter")));
 
   if (primitive & MLP_STEM)
     {
index 9520ca346071a97f3afb755fa56ceb4c556b4474..95f2d89569dd0e843d77769f7d80094302a16017 100644 (file)
@@ -171,7 +171,7 @@ Multi_measure_rest::big_rest (Grob *me, Real width)
   Real hair_thick = robust_scm2double (me->get_property ("hair-thickness"), .1);
 
   Real ss = Staff_symbol_referencer::staff_space (me);
-  Real slt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real slt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real y = slt * thick_thick / 2 * ss;
   Real ythick = hair_thick * slt * ss;
   Box b (Interval (0.0, max (0.0, (width - 2 * ythick))), Interval (-y, y));
index b0ead005982b7d9b5a23bc925d0d416f74482b89..6c257fd092880f5c764bddfb803109e24a5fc3cd 100644 (file)
@@ -91,7 +91,7 @@ LY_DEFINE (ly_layout_def_p, "ly:layout-def?",
 
 LY_DEFINE (ly_paper_outputscale, "ly:paper-outputscale",
           1, 0, 0, (SCM bp),
-          "Get outputscale for BP.")
+          "Get output-scale for BP.")
 {
   Output_def *b = unsmob_output_def (bp);
   SCM_ASSERT_TYPE (b, bp, SCM_ARG1, __FUNCTION__, "paper");
index 99015153f9cf90bc54b8b0adfec79fd6f261ad05..d93ee5db315fbe1d8d7662735e6b351cbe3af76b 100644 (file)
@@ -144,7 +144,7 @@ Output_def::set_variable (SCM sym, SCM val)
 Interval
 line_dimensions_int (Output_def *def, int n)
 {
-  Real lw = def->get_dimension (ly_symbol2scm ("linewidth"));
+  Real lw = def->get_dimension (ly_symbol2scm ("line-width"));
   Real ind = n ? 0.0 : def->get_dimension (ly_symbol2scm ("indent"));
   return Interval (ind, lw);
 }
index 3f402cc13ddaec48815425fd27516cf93dd1aad0..8a170642616e038022beb00be6cd7ad7488918f1 100644 (file)
@@ -15,7 +15,7 @@
 Real
 output_scale (Output_def *od)
 {
-  return scm_to_double (od->lookup_variable (ly_symbol2scm ("outputscale")));
+  return scm_to_double (od->lookup_variable (ly_symbol2scm ("output-scale")));
 }
 
 SCM
index 3cefb8f772d03da847f001e56fd46eac6ae05cf5..c188de3704d9e1a7ea9d32d16250ad363cbe3f87 100644 (file)
@@ -30,7 +30,7 @@ LY_DEFINE (ly_make_score, "ly:make-score",
 LY_DEFINE (ly_score_embedded_format, "ly:score-embedded-format",
           2, 1, 0, (SCM score, SCM layout, SCM key),
           "Run @var{score} through @var{layout}, an output definition, "
-          "scaled to correct outputscale already, "
+          "scaled to correct output-scale already, "
           "return a list of layout-lines. "
           "\nTake optional Object_key argument.")
 {
index 9b525ddd2312b05491bfd21e65514fd0cf5f28ad..c8fbf84056b7d3d667220d045195a6bd58c1d9a2 100644 (file)
@@ -107,7 +107,7 @@ default_rendering (SCM music, SCM outdef,
   /* ugh.  */
   if (bpd->c_variable ("is-paper") == SCM_BOOL_T)
     {
-      Real scale = scm_to_double (bpd->c_variable ("outputscale"));
+      Real scale = scm_to_double (bpd->c_variable ("output-scale"));
 
       Output_def *def = scale_output_def (unsmob_output_def (outdef), scale);
       Output_def *bdef = scale_output_def (bpd, scale);
@@ -164,7 +164,7 @@ Score::book_rendering (Output_def *layoutbook,
   Real scale = 1.0;
 
   if (layoutbook && layoutbook->c_variable ("is-paper") == SCM_BOOL_T)
-    scale = scm_to_double (layoutbook->c_variable ("outputscale"));
+    scale = scm_to_double (layoutbook->c_variable ("output-scale"));
 
   SCM outputs = SCM_EOL;
   SCM *tail = &outputs;
index 2980d3c5b81dbd14ad10da644494c0952867f29d..5f978cc483507c0537812e72f3ad5ab0cbdc6caa 100644 (file)
@@ -292,7 +292,7 @@ Slur_score_state::fill (Grob *me)
     }
 
   staff_space_ = Staff_symbol_referencer::staff_space (me);
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   thickness_ = robust_scm2double (me->get_property ("thickness"), 1.0) * lt;
 
   dir_ = get_grob_direction (me);
index b866302a21641da7e8c750b2432899f21b5d04d3..cfde343029a980f20dbf565ac060e20f9d26e4c7 100644 (file)
@@ -70,7 +70,7 @@ Staff_symbol_referencer::line_thickness (Grob *me)
   Grob *st = get_staff_symbol (me);
   if (st)
     return Staff_symbol::get_line_thickness (st);
-  return me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  return me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 }
 
 Real
index aa9596bfdd145b9a38280e1c4963cc3b6d80ab29..6edb1f910e4afb8b520e5e67eeb6e23504ee44c6 100644 (file)
@@ -35,7 +35,7 @@ Staff_symbol::print (SCM smob)
 
     --hwn.
   */
-  Real t = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real t = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   t *= robust_scm2double (me->get_property ("thickness"), 1.0);
 
   Direction d = LEFT;
@@ -125,7 +125,7 @@ Staff_symbol::staff_space (Grob *me)
 Real
 Staff_symbol::get_line_thickness (Grob *me)
 {
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   return robust_scm2double (me->get_property ("thickness"), 1.0) * lt;
 }
@@ -144,7 +144,7 @@ SCM
 Staff_symbol::height  (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
-  Real t = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real t = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   t *= robust_scm2double (me->get_property ("thickness"), 1.0);
   
   SCM line_positions = me->get_property ("line-positions");
index 7c0e9e96801bde7d72badce7392820ae8fd71324..f515f959082844cfced915fbf7d268ca78f86948 100644 (file)
@@ -73,7 +73,7 @@ Stem_tremolo::raw_stencil (Grob *me)
   Real ss = Staff_symbol_referencer::staff_space (me);
   Real thick = robust_scm2double (me->get_property ("beam-thickness"), 1);
   Real width = robust_scm2double (me->get_property ("beam-width"), 1);
-  Real blot = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+  Real blot = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   width *= ss;
   thick *= ss;
index 111eda05327640f7f90a089f9f1fe8c14b39940e..0f42976d32dcb531c29cdf9cc076e5158e7aaf9e 100644 (file)
@@ -702,7 +702,7 @@ Stem::print (SCM smob)
   // URG
   Real stem_width = thickness (me);
   Real blot
-    = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+    = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
 
   Box b = Box (Interval (-stem_width / 2, stem_width / 2),
               Interval (stem_y[DOWN] * half_space, stem_y[UP] * half_space));
@@ -723,7 +723,7 @@ Stem::get_translated_flag (Grob *me)
     {
       Direction d = get_grob_direction (me);
       Real blot
-       = me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
+       = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"));
       Real stem_width = thickness (me);
       Real half_space = Staff_symbol_referencer::staff_space (me) * 0.5;
       Real y2 = robust_scm2double (me->get_property ("stem-end-position"), 0.0);
index 73b350976e35edb25a8edb019eda9633ca16f4bf..7b37557b34f6cdf407236bdcd16bc0c02a589e68 100644 (file)
@@ -55,7 +55,7 @@ Stencil
 System_start_delimiter::line_bracket (Grob *me, Real height)
 {
   Real thick
-    = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"))
+    = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"))
     * robust_scm2double (me->get_property ("thickness"), 1);
   Real w = 0.8;
   
@@ -95,7 +95,7 @@ System_start_delimiter::text (Grob *me_grob, Real h)
 Stencil
 System_start_delimiter::simple_bar (Grob *me, Real h)
 {
-  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+  Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real w = lt * robust_scm2double (me->get_property ("thickness"), 1);
   return Lookup::round_filled_box (Box (Interval (0, w), Interval (-h / 2, h / 2)),
                                   lt);
index 1c8abf7150b639cba5d9746bf83e26549a91b9c9..46078a6ad2d3e3f9bc1d8808962bc4284a0ac6a3 100644 (file)
@@ -163,7 +163,7 @@ Vaticana_ligature_engraver::align_heads (std::vector<Grob_info> primitives,
     = dynamic_cast<Item *> (primitives[0].grob ())->get_column ();
 
   Real join_thickness
-    = thickness * column->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+    = thickness * column->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   /*
    * Amount of extra space two put between some particular
index 87c983dcb3cdeaf1096bd3d2ba61270110822041..76e3162e41957dfe4f241097539ff8049646e13f 100644 (file)
@@ -203,10 +203,10 @@ vaticana_brew_primitive (Grob *me)
   Real thickness = robust_scm2double (me->get_property ("thickness"), 1);
 
   Real line_thickness
-    = thickness * me->layout ()->get_dimension (ly_symbol2scm ("linethickness"));
+    = thickness * me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
 
   Real blotdiameter
-    = (me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter")));
+    = (me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter")));
 
   int pos = Staff_symbol_referencer::get_rounded_position (me);
 
index 220f869f29c40b2f0457e9b7cbb532a9029a7344..cbf08fc1ec88529b14e65a747effae3fdd8ae61a 100644 (file)
@@ -31,4 +31,4 @@ That's it.  For more information, visit http://lilypond.org .
 }
 
 
-\version "2.6.0"  % necessary for upgrading to future LilyPond versions.
+\version "2.7.32"  % necessary for upgrading to future LilyPond versions.
index f27288e148b5fadb5430d6ca8701ec59f704ff3c..15e73bd9a32ca2631e863d0357001285007d97c4 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 % Symbols needed to print accordion music
 % 
 %  2' = T
index 3d9c657d7bf8e1a1da77835c712bcd8bf817bc34..1c8ccbe485abd729a85cd374d9fc4e5c7de32c1c 100755 (executable)
@@ -6,10 +6,10 @@
   Sven Axelsson, the Murray Pipes & Drums of Gothenburg
   (http://www.murrays.nu)
   
-  $Id: bagpipe.ly,v 1.9 2006/01/31 23:52:53 hanwen Exp $
+  $Id: bagpipe.ly,v 1.10 2006/02/06 01:13:58 hanwen Exp $
 %}
 
-\version "2.7.31"
+\version "2.7.32"
 
 % Notes of the scale of the Great Highland Bagpipe. Extra high notes for bombarde.
 % Flat notes used mainly in some modern music.
index 18ce75265828061a7a1061f89f9b14507a3bed1d..945a718fef3661bcda4f26cc7af5cae0e38ba8bc 100644 (file)
@@ -74,6 +74,6 @@ pitchnamesCatalan = #`(
 
 pitchnames = \pitchnamesCatalan
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 66713ae8b46067679afea0148451497e0b4bd94d..24c113ecd2763daebdecc1ea156e2e7a4cac5ccf 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 chordmodifiers = #default-chord-modifier-list
 
index e7e2ded3d8efac33702af8a3591b8878526b2d6e..9eef5204b0bfecbc4a771ad44064826fcab97a4b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 %% < 1.8 compatibility switch
 #(ly:set-option 'old-relative)
index 6cb8b9464f434ccb1f00906450b8564446bf5c8a..0af40d7261d7d1d7478dbec6f8ff4cc66cf190bb 100644 (file)
@@ -63,6 +63,6 @@ pitchnamesDeutsch = #`(
 
 pitchnames = \pitchnamesDeutsch
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 07be83d784395e6676ba178e739fd5003669c709..68ed30d565ecf52be6955db0a6e18fdfc4ea075c 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.6.0"
+\version "2.7.32"
 
 drumPitchNames =
 #'((acousticbassdrum . acousticbassdrum)
index 439e6d184b56ac4d910dc5b87574c77479d823c4..17b75898b02a05072b9201dce08a7fe95a3ce8b5 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 %
 % declare the standard dynamic identifiers.
index 35292caf5fe445a277e660a150f69a4f416d8254..b5423dcd93386825dc61afbcc8376cac6df45625 100644 (file)
@@ -87,7 +87,7 @@ pitchnamesEnglish = #`(
 
 pitchnames = \pitchnamesEnglish
 
-\version "2.6.0"
+\version "2.7.32"
 
 
 #(ly:parser-set-note-names parser pitchnames)
index f60ff00515f8f117da5a87a8ee1d07ca98d9bf32..a5b0b93fba36d2e7fcdbd1152b929ec8222b9765 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.7.14"
+\version "2.7.32"
 
 \context {
   \name "Global"
@@ -35,7 +35,7 @@
   \consists "Rest_collision_engraver"
   \consists "Accidental_engraver"
   \consists "Piano_pedal_engraver"
-  \consists "New_instrument_name_engraver"
+  \consists "Instrument_name_engraver"
   \consists "String_number_engraver"
   \consists "Axis_group_engraver"
 
@@ -144,7 +144,7 @@ contained staves are not connected vertically."
   \consists "Staff_symbol_engraver"
   \consists "Pitch_squash_engraver"
   \consists "Time_signature_engraver"
-  \consists "New_instrument_name_engraver"
+  \consists "Instrument_name_engraver"
   \consists "Axis_group_engraver"
   
   \accepts "Voice"
@@ -284,7 +284,7 @@ contained staves are not connected vertically."
   \override VerticalAlignment #'self-alignment-Y = #0
 
   \consists "Vertical_align_engraver"
-  \consists "New_instrument_name_engraver"
+  \consists "Instrument_name_engraver"
   
   instrument = #'()
   instr = #'()
@@ -343,7 +343,7 @@ printing of a single line of lyrics.  "
   \consists "Extender_engraver"
   \consists "Hyphen_engraver"
   \consists "Stanza_number_engraver"
-  \consists "New_instrument_name_engraver"
+  \consists "Instrument_name_engraver"
   \consists "Skip_event_swallow_translator"
   \consists "Font_size_engraver"
   \consists "Hara_kiri_engraver"
index 44e5befbee52e66efa6d610d88444835bd48f42e..7265b68834472600fc2dedc9f6c0e65dfed686cf 100644 (file)
@@ -58,6 +58,6 @@ pitchnamesEspanol = #`(
 
 pitchnames = \pitchnamesEspanol
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 376d6a3f16ddf6c5c03c0b6a47c2a977257c39f3..2458c5c1f2fdaf1fcff91e0b8f82bc60685c80db 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 %
 % Running LilyPond on this file generates the documentation
index 4eff2d7dd14746688db6a08a3fc1a9229a75eeaf..bcef8602c2f6b318dd0ab0a11ec767ca2e010e24 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 %
 % Running LilyPond on this file generates the short interface doc
index fbd299096c94fbc766e9c8e00a6979e343190ac2..c5d1263bcd28de184d99b4f3f945a431c4cf7b85 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 
 startGraceMusic =  {
index 63f70023c4eb8d2ea5c15a114f7f6aa1b86784c2..5b580ae510e1a842e8eed4fff3cc6adda9b3cede 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.7.31"
+\version "2.7.32"
 
 %%%%%%%%
 %%%%%%%% shortcuts common for all styles of gregorian chant notation
index 677f4347b676a6bd0556db909d1ff356f27015d5..fba222de43335b640adcc35155c979df6037a489 100644 (file)
@@ -7,7 +7,7 @@
 #(define-public midi-debug  #f)
 
 
-\version "2.6.0"
+\version "2.7.32"
 
 \include "declarations-init.ly"
 
index 4dd4c809cd1aefe993464ed08979be8a41484d1c..51083a5f78cc5b1e63a9c21357aa286bc839217e 100644 (file)
@@ -86,6 +86,6 @@ pitchnamesItaliano = #`(
 
 pitchnames = \pitchnamesItaliano
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index dde5d3b4edf5e2b72f34797efbf5fc9ce866aaee..875ed950e93210278f25e8c474af4c24007f04d9 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 \midi {
         \tempo 4=60
        \include "performer-init.ly"
index cf185485b6a37a02923c87d5804ce3e907425e02..fdccdab3758360e7d21ab786dfcacdecdfc7b391 100644 (file)
@@ -1,6 +1,6 @@
 % -*-Scheme-*-
 
-\version "2.6.0"
+\version "2.7.32"
 
 %% need SRFI-1 filter 
 
@@ -391,7 +391,7 @@ Example:
    ;;
    ;; bind voice identifiers to the voices
    (map (lambda (voice-id voice)
-          (ly:parser-define! parser voice-id 
+          (ly:parser-define!! parser voice-id 
                              (make-music 'SequentialMusic 
                                'origin location
                                'elements voice)))
index 93b266874393cced9bfa60d828878cd1629acd7e..57eac1dac9eba3e3f131c88672686a693c886c0e 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 %{
  common dutch names for notes. es means flat, is means sharp
 
index 676fb65f6879bd76992c8682b1df34ea533f8373..fa3dc0b54f38160d7fe3e716099d1269d6915daa 100644 (file)
@@ -105,6 +105,6 @@ pitchnamesNorsk = #`(
 
 pitchnames =\pitchnamesNorsk
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index c8116b55c15de5c741ac3ef2988d7274a4530447..a176c942e401ba71ef886181b5123c009db0c18d 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 \paper {
 
 
     %% This is weird; `everyone' uses LATIN1?  How does I select TeX
     %% input encoding in EMACS? -- jcn
-    %%%%inputencoding = #"TeX"
-    inputencoding = #"latin1"
-    printpagenumber = ##t
+    %%%%input-encoding = #"TeX"
+    input-encoding = #"latin1"
+    print-page-number = ##t
 
     %%
     %% 20pt staff, 5 pt = 1.75 mm
     %%
 
-    outputscale = #1.7573
+    output-scale = #1.7573
     
     #(define-public book-title (marked-up-title 'bookTitleMarkup))
     #(define-public score-title (marked-up-title 'scoreTitleMarkup))
     %% this dimension includes the extent of the
     %% staves themselves.
     %%
-    betweensystemspace = #(* 20 mm)
+    between-system-space = #(* 20 mm)
     
     
     %%
     %% fixed space between systems.
     %%
-    betweensystempadding = #(* 4 mm)
+    between-system-padding = #(* 4 mm)
 
-    aftertitlespace = 5 \mm
-    beforetitlespace = 10 \mm
-    betweentitlespace = 2 \mm
+    after-title-space = 5 \mm
+    before-title-space = 10 \mm
+    between-title-space = 2 \mm
 
 
     %%
     %% Small staves are aligned so they come out on the same place on
     %% across different pages.
     %%
-    pagetopspace = #(* 12 mm)
+    page-top-space = #(* 12 mm)
 
     
-    raggedbottom = ##f
+    ragged-bottom = ##f
 
     %%
     %% looks best for shorter scores.
     %%
-    raggedlastbottom= ##t
+    ragged-last-bottom= ##t
 
     #(define font-defaults
       '((font-encoding . fetaMusic)))
 
     \include "titling-init.ly"
 
+    top-margin = 5 \mm
+    bottom-margin = 6 \mm
+    heap-separation = 4 \mm
+    foot-separation = 4 \mm
+    right-margin = 10 \mm
 
-    topmargin = 5 \mm
-    bottommargin = 6 \mm
-    headsep = 4 \mm
-    footsep = 4 \mm
-    rightmargin = 10 \mm
-
-    leftmargin = ##f
-    firstpagenumber = #1
-    printfirstpagenumber =##f
+    left-margin = ##f
+    first-page-number = #1
+    print-first-page-number =##f
   }
index 05d07bb5333012dc8187344d12014f742c24bac7..d477cfd53eddd0e415bd2cfb90a726722d4728df 100644 (file)
@@ -1,2 +1,2 @@
-\version "2.6.0"
+\version "2.7.32"
 
index ee0872fb51d9ba9b2d6e0245f13adc692213482a..cc98b254be535acbf277caf0f6bced2f8505429c 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.7.6"
+\version "2.7.32"
 
 %%
 %% setup for Request->Element conversion. 
index d04c36b2bb30b17c9b37f5e6ab85511178acee67..f865fac8bdd346db5a835cba8a790f5233032f7a 100644 (file)
@@ -86,6 +86,6 @@ pitchnamesPortuguese = #`(
 
 pitchnames = \pitchnamesPortuguese
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 7fe0219e47275cc249320837be1ea345eec32fcb..2b956cc39742f79c892320d2bc8f61b4478b75b6 100644 (file)
@@ -1,6 +1,6 @@
 % property-init.ly
 
-\version "2.7.31"
+\version "2.7.32"
 
 stemUp = \override Stem  #'direction = #UP
 stemDown = \override Stem  #'direction = #DOWN 
index 7a600ea10608cbd391977fe91714b7f7330973d4..650388798e3e9028a079abdef4bf6727dd88ddcd 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 
 major = #`(
index 09a0ce2b29f99305db52ce72ae5ffda6da12b4c0..bd875f15d6f63afea00d566d974060f97f41d29c 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 
 % code char abbreviations
index d8a3390c771fb2dba0010c36db339f020d0783f2..e7bf8b66eb5683e89a019da894a14307756f7b53 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 startGroup = #(make-span-event 'NoteGroupingEvent START)
 stopGroup = #(make-span-event 'NoteGroupingEvent STOP)
index 34980c2205b13f8fe672414f8a5db6f60a7df91c..ff283ddc0f8f12d264990f6a7ffd6b98d57a1d90 100644 (file)
@@ -48,6 +48,6 @@ pitchnamesSuomi = #`(
 
 pitchnames = \pitchnamesSuomi
 
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 6a92b3a76851cba65b843b9450ee36043fa70319..7db961ab28b53b9e3ee9140047eb8ef64ffc4ede 100644 (file)
@@ -42,6 +42,6 @@ pitchnamesSvenska = #`(
 )
 
 pitchnames = \pitchnamesSvenska
-\version "2.6.0"
+\version "2.7.32"
 
 #(ly:parser-set-note-names parser pitchnames)
index 886792990378e2977c0cecbf9b41012d41bac481..aabbcf9da02a325da942116677170d863b2923b9 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0"
+\version "2.7.32"
 
 slashSeparator = \markup {
   \hcenter
@@ -70,7 +70,7 @@ scoreTitleMarkup = \markup { \column {
 
 #(define (first-page layout props arg)
   (if (= (chain-assoc-get 'page:page-number props -1) 
-         (ly:output-def-lookup layout 'firstpagenumber))   (interpret-markup layout props arg)
+         (ly:output-def-lookup layout 'first-page-number))   (interpret-markup layout props arg)
    empty-stencil))
 
 #(define (last-page layout props arg)
@@ -80,27 +80,27 @@ scoreTitleMarkup = \markup { \column {
 
 #(define (not-first-page layout props arg)
   (if (not (= (chain-assoc-get 'page:page-number props -1)
-              (ly:output-def-lookup layout 'firstpagenumber)))
+              (ly:output-def-lookup layout 'first-page-number)))
    (interpret-markup layout props arg)
    empty-stencil))
 
 %% unused
 #(define (not-single-page layout props arg)
   (if (not (and (= (chain-assoc-get 'page:page-number props -1) 
-                   (ly:output-def-lookup layout 'firstpagenumber))
+                   (ly:output-def-lookup layout 'first-page-number))
                (chain-assoc-get 'page:last? props -1)))
    (interpret-markup layout props arg)
    empty-stencil))
 
 #(define (print-page-number layout props arg)
-  (if (eq? (ly:output-def-lookup layout 'printpagenumber) #t)
+  (if (eq? (ly:output-def-lookup layout 'print-page-number) #t)
    (interpret-markup layout props arg)
    empty-stencil))
 
 #(define (print-page-number-check-first layout props arg)
   (if (or (not (= (chain-assoc-get 'page:page-number props -1) 
-                  (ly:output-def-lookup layout 'firstpagenumber)))
-          (eq? (ly:output-def-lookup layout 'printfirstpagenumber) #t))
+                  (ly:output-def-lookup layout 'first-page-number)))
+          (eq? (ly:output-def-lookup layout 'printfirst-page-number) #t))
    (print-page-number layout props arg)
    empty-stencil))
 
index 46302dd835d32f619453f54e9d5dd24d31fc0916..b2f5518f95a43a1e449493870e93476c822b08d1 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.6.0" %hier stond 2.1.36, mocht ik dat wel veranderen?
+\version "2.7.32" %hier stond 2.1.36, mocht ik dat wel veranderen?
 
 %{
 
index 9672572c99e6b4e59a6486225efe5c24bef8fde5..7243731913f31277510410fa57143467596a6077 100644 (file)
 /init-paper {
        gsave
        clippath pathbbox newpath
-       /vsize exch def
-       /hsize exch def pop pop pop
+       /paper-height exch def
+       /paper-width exch def pop pop pop
        % FIXME
        /top-margin 2 def
-       hsize line-width sub 2 div /left-margin exch def
+       paper-width line-width sub 2 div /left-margin exch def
        grestore
 } bind def
 
index 99706967808c3d0de54cd0649c61688df4656534..f35a782ed935b4a3bb167e66154ad85eca25dd08 100644 (file)
@@ -17,7 +17,7 @@ class FatalConversionError:
 conversions = []
 
 error_file = sys.stderr 
-lilypond_version_re_str = '\\\\version *\"([^"]+)\"'
+lilypond_version_re_str = '\\\\version *\"[0-9.]+"'
 lilypond_version_re = re.compile (lilypond_version_re_str)
 
 
@@ -2696,7 +2696,13 @@ def conv (str):
                
        str = re.sub (r'([A-Z][a-z_0-9]+::[a-z_0-9]+)',
                      sub_cxx_id, str)
+       return str
+
+conversions.append (((2, 7, 31), conv,
+                    """Foo_bar::bla_bla -> ly:foo-bar::bla-bla"""))
+
 
+def conv (str):
        identifier_subs = [
                ('inputencoding', 'input-encoding'),
                ('printpagenumber', 'print-page-number'),
@@ -2716,8 +2722,8 @@ def conv (str):
                ('footsep', 'foot-separation'),
                ('rightmargin', 'right-margin'),
                ('leftmargin', 'left-margin'),
-               ('firstpagenumber', 'first-page-number'),
                ('printfirstpagenumber', 'print-first-page-number'),
+               ('firstpagenumber', 'first-page-number'),
                ('hsize', 'paper-width'),
                ('vsize', 'paper-height'),
                ('horizontalshift', 'horizontal-shift'),
@@ -2729,8 +2735,12 @@ def conv (str):
                ('linewidth', 'line-width')
                ]
        
+       for (a,b)  in identifier_subs:
+               ### for C++:
+               ## str = re.sub ('"%s"' % a, '"%s"' b, str)
+               
+               str = re.sub (a, b, str)
        return str
 
-conversions.append (((2, 7, 31), conv,
-                    """Foo_bar::bla_bla -> ly:foo-bar::bla-bla"""))
-
+conversions.append (((2, 7, 32), conv,
+                    """foobar -> foo-bar for \paper, \layout"""))
index 8c678c4087dffc90af3093ac05f6af8ee16d95e4..ce5088eb8f60c928cc0529f8c9c128f495479f32 100644 (file)
@@ -122,7 +122,7 @@ list of @code{BassFigureEvent}s, a context, and the grob to format.")
 
 
      (middleCPosition ,number? "Place of the middle C, measured in half
-staffspaces.  Usually determined by looking at @code{clefPosition} and
+staff-spaces.  Usually determined by looking at @code{clefPosition} and
 @code{clefGlyph}.")
 
      (chordNameFunction ,procedure?
@@ -430,7 +430,7 @@ for repeated bass figures")
 
      (verticalExtent ,number-pair? "Hard coded vertical extent.  The format
 is a pair of dimensions, for example, this sets the sizes of a staff
-to 10 (5+5) staffspaces high.
+to 10 (5+5) staff-spaces high.
 
 @example
 \\set Staff.verticalExtent = #'(-5.0 . 5.0)
index 898e220d6913a7bca16218f670c3d8269d59e570..baa3b70d7a85e75e8fcb4a4a2b0aa889d9d7c92f 100644 (file)
    "An accidental, printed as a suggestion (typically: vertically over a note)"
    '())
 
+
+(ly:add-interface
+ 'bass-figure-interface
+ "A bass figure text"
+ '(implicit))
+
+
 (ly:add-interface
  'dynamic-interface
    "Any kind of loudness sign"
@@ -108,9 +115,9 @@ are interesting enough to maintain a hara-kiri staff."
  '())
 
 (ly:add-interface
- 'bass-figure-interface
- "A bass figure text"
- '(implicit))
+ 'system-start-text-interface
+ "A text at the beginning of a system."
+ '(text long-text collapse-height style))
 
 ;;; todo: this is not typesetting info. Move to interpretation.
 (ly:add-interface
index 1c0396967d3e144dd592ac86bb257674633ad9b6..4233361c26d3179a13c6161f2c8e17db37d87f02 100644 (file)
@@ -64,7 +64,7 @@ Choices include @code{curved} and @code{straight}.")
                             "Spacing is based on the shortest notes in a piece. Normally, pieces are spaced as if notes at least as short as this are present.")
      (baseline-skip ,ly:dimension? "Distance between base lines of
  multiple lines of text.")
-     (beam-thickness ,ly:dimension? "thickness, measured in staffspace.")
+     (beam-thickness ,ly:dimension? "thickness, measured in staff-space.")
      (beam-width ,ly:dimension? "width of the tremolo sign.")
      (beamed-stem-shorten ,list? "How much to shorten beamed stems,
 when their direction is forced. It is a list, since the value is different
@@ -231,7 +231,7 @@ of the @code{spacing-increment}.")
 
      (grow-direction ,ly:dir? "Crescendo or decrescendo?")
      (hair-thickness ,number? "Thickness of the thin line in a bar line.")
-     (height ,ly:dimension? "Height of an object in staffspace.")
+     (height ,ly:dimension? "Height of an object in staff-space.")
      (height-limit ,ly:dimension? "Maximum slur height: the longer the
 slur, the closer it is to this height.")
 
@@ -386,7 +386,7 @@ duration. Typically, the width of a note head. See also
      (springs-and-rods ,boolean? "Dummy variable for triggering spacing routines.")
      (stacking-dir ,ly:dir? "Stack objects in which direction?")
      (staff-space ,ly:dimension? "Amount of space between staff lines,
-expressed in global staffspace.")
+expressed in global staff-space.")
      (staff-position ,number? "Vertical position, measured in half
 staff spaces, counted from the middle line.")
      
@@ -416,9 +416,9 @@ this property.")
 words. The default RIGHT is for roman text. Arabic or hebrew should
 use LEFT.")
      (thick-thickness ,number? "Bar line thickness, measured in
-@code{linethickness}.")
+@code{line-thickness}.")
      (thickness ,number? "Bar line thickness, measured in
-@code{linethickness}.")
+@code{line-thickness}.")
      (thin-kern ,number? "The space after a hair-line in a bar line.")
 
      (threshold ,number-pair? "(@var{min} . @var{max}), where
index 4ba3869e69c13c0161762c99af842c1999cecbc7..df1dd3d9a9703ac1ea50f586f6322f4da01a77de 100644 (file)
@@ -5,8 +5,8 @@
 ;;;; (c) 1998--2006 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
 
-;;;; distances are given in linethickness (thicknesses) and
-;;;; staffspace (distances)
+;;;; distances are given in line-thickness (thicknesses) and
+;;;; staff-space (distances)
 
 ;;;; WARNING: the meta field should be the last one.
 ;;;; WARNING: don't use anonymous functions for initialization.
        ;; Ross. page 151 lists other values, we opt for a leaner look
        ;;
        ;; TODO:
-       ;; kern should scale with linethickness too.
+       ;; kern should scale with line-thickness too.
        (kern . 3.0)
        (thin-kern . 3.0)
        (hair-thickness . 1.9)
 
        ;; Whe have some unreferenced problems here.
        ;;
-       ;; If we shorten beamed stems less than normal stems (1 staffspace),
+       ;; If we shorten beamed stems less than normal stems (1 staff-space),
        ;; or high order less than 8th beams, patterns like
        ;;     c''4 [c''8 c''] c''4 [c''16 c]
        ;; are ugly (different stem lengths).
 
        (stencil . ,ly:lyric-extender::print)
 
-       (thickness . 0.8) ; linethickness
+       (thickness . 0.8) ; line-thickness
        (minimum-length . 1.5)
        (Y-extent . (0 . 0))
        (meta . ((class . Spanner)
        (font-encoding . fetaNumber)
        (Y-offset . ,ly:side-position-interface::y-aligned-side)
        (side-axis . ,Y)
-       (thickness . 1.6)  ;;  linethickness
-       (edge-height . (2.0 . 2.0)) ;; staffspace;
+       (thickness . 1.6)  ;;  line-thickness
+       (edge-height . (2.0 . 2.0)) ;; staff-space;
        (minimum-space . 5)
        (font-size . -4)
        (meta . ((class . Spanner)
index 7eb2dff7cbf514a08a534e1aa59fd187dd4d1462..9f6ff6325983372ea44afd04c9b114b3d74d6074 100644 (file)
@@ -87,7 +87,7 @@ the PDF backend."
                    width (+ (* width slope)  (/ thickness -2))
                    width (+ (* width slope)  (/ thickness 2))
                    0 (/ thickness 2))
-              ,(ly:output-def-lookup layout 'blotdiameter)
+              ,(ly:output-def-lookup layout 'blot-diameter)
               #t)
      (cons 0 width)
      (cons (+ (- half) (car yext))
@@ -319,7 +319,7 @@ gsave /ecrm10 findfont
         (text-dir (chain-assoc-get 'text-direction props RIGHT))
         (word-count (length stencils))
         (word-space (chain-assoc-get 'word-space props))
-        (line-width (chain-assoc-get 'linewidth props))
+        (line-width (chain-assoc-get 'line-width props))
         (fill-space
                (cond
                        ((= word-count 1) 
@@ -452,7 +452,7 @@ determines the space between each markup in @var{args}."
 (define (wordwrap-markups layout props args justify)
   (let*
       ((baseline-skip (chain-assoc-get 'baseline-skip props))
-       (line-width (chain-assoc-get 'linewidth props))
+       (line-width (chain-assoc-get 'line-width props))
        (word-space (chain-assoc-get 'word-space props))
        (text-dir (chain-assoc-get 'text-direction props RIGHT)) 
        (lines (wordwrap-stencils
@@ -466,21 +466,21 @@ determines the space between each markup in @var{args}."
 
 (def-markup-command (justify layout props args) (markup-list?)
   "Like wordwrap, but with lines stretched to justify the margins.
-Use @code{\\override #'(linewidth . X)} to set linewidth, where X
+Use @code{\\override #'(line-width . X)} to set line-width, where X
 is the number of staff spaces."
 
   (wordwrap-markups layout props args #t))
 
 (def-markup-command (wordwrap layout props args) (markup-list?)
-  "Simple wordwrap.  Use @code{\\override #'(linewidth . X)} to set
-linewidth, where X is the number of staff spaces."
+  "Simple wordwrap.  Use @code{\\override #'(line-width . X)} to set
+line-width, where X is the number of staff spaces."
 
   (wordwrap-markups layout props args #f))
 
 (define (wordwrap-string layout props justify arg) 
   (let*
       ((baseline-skip (chain-assoc-get 'baseline-skip props))
-       (line-width (chain-assoc-get 'linewidth props))
+       (line-width (chain-assoc-get 'line-width props))
        (word-space (chain-assoc-get 'word-space props))
        
        (para-strings (regexp-split
index 3e1b7492a4bd4d9aa03ee876d0e06dc288a3201b..7243ccebbcf9c678cd2ff039fbc766e4af9b55ca 100644 (file)
 
 (define (gnome-main book name)
   (let* ((paper (ly:paper-book-paper book))
-        (hsize (ly:output-def-lookup paper 'hsize))
-        (vsize (ly:output-def-lookup paper 'vsize))
-        (page-width (inexact->exact (ceiling (* OUTPUT-SCALE hsize))))
-        (page-height (inexact->exact (ceiling (* OUTPUT-SCALE vsize))))
-        ;;(page-width (inexact->exact (ceiling hsize)))
-        ;;(page-height (inexact->exact (ceiling vsize)))
+        (paper-width (ly:output-def-lookup paper 'paper-width))
+        (paper-height (ly:output-def-lookup paper 'paper-height))
+        (page-width (inexact->exact (ceiling (* OUTPUT-SCALE paper-width))))
+        (page-height (inexact->exact (ceiling (* OUTPUT-SCALE paper-height))))
+        ;;(page-width (inexact->exact (ceiling paper-width)))
+        ;;(page-height (inexact->exact (ceiling paper-height)))
 
         (screen-width (gdk-screen-width))
         (screen-height (gdk-screen-height))
index 36deeee731b62ade0c7fdca4641a0a5d8b1c5c08..1a89ea0e7e8e1ef64bb87e704c4cb5d4c3b8b442 100644 (file)
@@ -63,7 +63,7 @@
           (plain (ps-font-command font))
           (designsize (ly:font-design-size font))
           (magnification (* (ly:font-magnification font)))
-          (ops (ly:output-def-lookup paper 'outputscale))
+          (ops (ly:output-def-lookup paper 'output-scale))
           (scaling (* ops magnification designsize)))
 
       ;; Bluesky pfbs have UPCASE names (sigh.)
    "/lily-output-units "
      (number->string mm-to-bigpoint)
      " def %% millimeter\n"
-   (output-entry "staff-line-thickness" 'linethickness)
-   (output-entry "line-width" 'linewidth)
+   (output-entry "staff-line-thickness" 'line-thickness)
+   (output-entry "line-width" 'line-width)
    (output-entry "paper-size" 'papersizename)
-   (output-entry "staff-height" 'staffheight)  ;junkme.
+   (output-entry "staff-height" 'staff-height) ;junkme.
    "/output-scale "
-     (number->string (ly:output-def-lookup layout 'outputscale))
+     (number->string (ly:output-def-lookup layout 'output-scale))
      " def\n"
-   (output-entry "page-height" 'vsize)
-   (output-entry "page-width" 'hsize)))
+   (output-entry "page-height" 'paper-height)
+   (output-entry "page-width" 'paper-width)))
 
 (define (dump-page outputter page page-number page-count landscape?)
   (ly:outputter-dump-string
        "")
     "%%EndPageSetup\n"
 
-    "gsave 0 vsize translate "
+    "gsave 0 paper-height translate "
     "set-ps-scale-to-lily-scale "
     "\n"))
   (ly:outputter-dump-stencil outputter page)
         (page-stencils (map page-stencil (ly:paper-book-pages book)))
         
         (landscape? (eq? (ly:output-def-lookup paper 'landscape) #t))
-        (page-number (1- (ly:output-def-lookup paper 'firstpagenumber)))
+        (page-number (1- (ly:output-def-lookup paper 'first-page-number)))
         (page-count (length page-stencils))
         (port (ly:outputter-port outputter)))
 
 
 (define-public (dump-stencil-as-EPS paper dump-me filename load-fonts?)
   (define (mm-to-bp-box mmbox)
-    (let* ((scale (ly:output-def-lookup paper 'outputscale))
+    (let* ((scale (ly:output-def-lookup paper 'output-scale))
           (box (map
                 (lambda (x)
                   (inexact->exact
 (define-public (output-preview-framework basename book scopes fields)
   (let* ((paper (ly:paper-book-paper book))
         (systems (ly:paper-book-systems book))
-        (scale (ly:output-def-lookup paper 'outputscale))
+        (scale (ly:output-def-lookup paper 'output-scale))
         (to-dump-systems '()))
 
     ;; skip booktitles.
 
       (let* ((paper (ly:paper-book-paper book))
             (systems (ly:paper-book-systems book))
-            (scale (ly:output-def-lookup paper 'outputscale))
+            (scale (ly:output-def-lookup paper 'output-scale))
             (titles (take-while paper-system-title? systems))
             (non-title (find (lambda (x)
                                (not (paper-system-title? x))) systems))
index 0eca19e39a43f515da262bdfbb19c3809e300f26..2e40558e64d448045218286f58cfcd77ca1d092b 100644 (file)
                                              (ly:output-backend)))
         (dump (lambda (str) (display str (ly:outputter-port outputter))))
         (paper (ly:paper-book-paper book))
-        (unit-length (ly:output-def-lookup paper 'outputscale))
+        (unit-length (ly:output-def-lookup paper 'output-scale))
         (output-scale (* lily-unit->mm-factor
                          unit-length))
         (page-stencils (map page-stencil (ly:paper-book-pages book)))
         (landscape? (eq? (ly:output-def-lookup paper 'landscape) #t))
-        (page-number (1- (ly:output-def-lookup paper 'firstpagenumber)))
+        (page-number (1- (ly:output-def-lookup paper 'first-page-number)))
         (page-count (length page-stencils))
-        (hsize (ly:output-def-lookup paper 'hsize))
-        (vsize (ly:output-def-lookup paper 'vsize))
-        (page-width (inexact->exact (ceiling (* output-scale hsize))))
-        (page-height (inexact->exact (ceiling (* output-scale vsize))))
+        (paper-width (ly:output-def-lookup paper 'paper-width))
+        (paper-height (ly:output-def-lookup paper 'paper-height))
+        (page-width (inexact->exact (ceiling (* output-scale paper-width))))
+        (page-height (inexact->exact (ceiling (* output-scale paper-height))))
         (page-set? (or (> page-count 1) landscape?)))
 
     (ly:outputter-output-scheme outputter
index 59ed71e53ebc9bcec9775282305024e91ed9c904..27e7d66013134fa980efb4f80626bce38069b938 100644 (file)
@@ -91,7 +91,7 @@
                        (inexact->exact
                         (round (* 1000
                                   (ly:font-magnification font)
-                                  (ly:paper-outputscale paper)))))))
+                                  (ly:paper-output-scale paper)))))))
             sub-fonts)))))
 
 (define (simple-font-load-command paper font)
     (inexact->exact
      (round (* 1000
               (ly:font-magnification font)
-              (ly:paper-outputscale paper))))))
+              (ly:paper-output-scale paper))))))
 
 (define (font-load-command paper font)
   (if (pair? (ly:font-sub-fonts font))
   (string-append
    ;; UGH. FIXME.
    "\\def\\lilypondpaperunit{mm}%\n"
-   (tex-number-def "lilypondpaper" 'outputscale
+   (tex-number-def "lilypondpaper" 'output-scale
                   (number->string (exact->inexact
-                                   (ly:paper-outputscale paper))))
+                                   (ly:paper-output-scale paper))))
    (tex-string-def "lilypondpaper" 'papersize
                   (eval 'papersizename (ly:output-def-scope paper)))
    ;; paper/layout?
-   (tex-string-def "lilypondpaper" 'inputencoding
-                  (eval 'inputencoding (ly:output-def-scope paper)))
+   (tex-string-def "lilypondpaper" 'input-encoding
+                  (eval 'input-encoding (ly:output-def-scope paper)))
 
    (apply string-append
          (map (lambda (x) (font-load-command paper x))
                     "{" (sanitize-tex-string str) "}%\n")))
 
 (define (header paper page-count classic?)
-  (let ((scale (ly:output-def-lookup paper 'outputscale))
+  (let ((scale (ly:output-def-lookup paper 'output-scale))
        (texpaper (string-append
                   (ly:output-def-lookup paper 'papersizename)
                   "paper"))
         "")
 
      (tex-string-def
-      "lilypondpaper" 'linewidth
-      (ly:number->string (* scale (ly:output-def-lookup paper 'linewidth))))
+      "lilypondpaper" 'line-width
+      (ly:number->string (* scale (ly:output-def-lookup paper 'line-width))))
      "\\def\\lilyponddocumentclassoptions{"
      (sanitize-tex-string texpaper)
      (if landscape? ",landscape" "")
index a52d0be47a5b95117d8d77e449c6e09e8f6ab7a0..d7431d61704901f163e5f75555b0f825fce0b133 100644 (file)
@@ -347,7 +347,7 @@ indications per string.
          (default-dot-position (if (eq? finger-code 'in-dot) (- 0.95 default-dot-radius) 0.6))  ; move up to make room for bigger if labeled
          (dot-radius (chain-assoc-get 'dot-radius props default-dot-radius))  ; needed for both draw-dots and draw-barre
          (dot-position (chain-assoc-get 'dot-position props default-dot-position)) ; needed for both draw-dots and draw-barre
-         (th (* (ly:output-def-lookup layout 'linethickness)
+         (th (* (ly:output-def-lookup layout 'line-thickness)
                 (chain-assoc-get 'thickness props 0.5))) ; needed for both draw-frets and draw-strings
                 
          (alignment (chain-assoc-get 'align-dir props -0.4)) ; needed only here
index a5a81ed75f1b90d07161d0df468d1b0bece628b8..d946890049fbb6653e4088f4dd7cdb736391a884 100644 (file)
@@ -13,7 +13,7 @@
 "
   (let* ((thick (ly:grob-property beam 'thickness))
         (layout (ly:grob-layout beam))
-        (lthick (ly:output-def-lookup layout 'linethickness))
+        (lthick (ly:output-def-lookup layout 'line-thickness))
         (staff-thick lthick) ; fixme.
         (quant->coord (lambda (p q)
                         (if (= 2 (abs q))
index 7137f47de69e33487a543ee16380ad3e543398c8..8970bc1e3b092b894eb56d9fbca9bfd64330b653 100644 (file)
 ;;
 ;; - density scoring
 ;; - separate function for word-wrap style breaking?
-;; - raggedbottom? raggedlastbottom?
+;; - ragged-bottom? ragged-last-bottom?
 
 (define-public (optimal-page-breaks lines paper-book)
   "Return pages as a list starting with 1st page. Each page is a 'page Prob."
@@ -171,7 +171,7 @@ is what have collected so far, and has ascending page numbers."
           (prev-penalty (if (null? best-paths)
                             0.0
                             (page-penalty (car best-paths))))
-        (inter-system-space (ly:output-def-lookup paper 'betweensystemspace))
+        (inter-system-space (ly:output-def-lookup paper 'between-system-space))
         (relative-force (/ force inter-system-space))
         (abs-relative-force (abs relative-force)))
 
@@ -183,10 +183,10 @@ is what have collected so far, and has ascending page numbers."
 
   (define (space-systems page-height lines ragged?)
     (let* ((global-inter-system-space
-           (ly:output-def-lookup paper 'betweensystemspace))
+           (ly:output-def-lookup paper 'between-system-space))
           (top-space
-           (ly:output-def-lookup paper 'pagetopspace))
-          (global-fixed-dist (ly:output-def-lookup paper 'betweensystempadding))
+           (ly:output-def-lookup paper 'page-top-space))
+          (global-fixed-dist (ly:output-def-lookup paper 'between-system-padding))
           
           (system-vector (list->vector
                           (append lines
@@ -254,11 +254,11 @@ is what have collected so far, and has ascending page numbers."
                     (ideal (+
                             (cond
                              ((and title2? title1?)
-                              (ly:output-def-lookup paper 'betweentitlespace))
+                              (ly:output-def-lookup paper 'between-title-space))
                              (title1?
-                              (ly:output-def-lookup paper 'aftertitlespace))
+                              (ly:output-def-lookup paper 'after-title-space))
                              (title2?
-                              (ly:output-def-lookup paper 'beforetitlespace))
+                              (ly:output-def-lookup paper 'before-title-space))
                              (else between-space))
                             fixed))
                     (hooke (/ 1 (- ideal fixed))))
@@ -283,7 +283,7 @@ is what have collected so far, and has ascending page numbers."
           (rods (map calc-rod (iota (1- system-count))))
 
           ;; we don't set ragged based on amount space left.
-          ;; raggedbottomlast = ##T is much more predictable
+          ;; ragged-bottomlast = ##T is much more predictable
           (result (ly:solve-spring-rod-problem
                    springs rods space
                    ragged?))
@@ -320,7 +320,7 @@ corresponding to DONE-LINES.
 CURRENT-BEST is the best result sofar, or #f."
 
     (let* ((this-page-num (if (null? best-paths)
-                              (ly:output-def-lookup paper 'firstpagenumber)
+                              (ly:output-def-lookup paper 'first-page-number)
                               (1+ (page-page-number (car best-paths)))))
 
           (this-page (make-page
@@ -329,8 +329,8 @@ CURRENT-BEST is the best result sofar, or #f."
                       'is-last last?
                       'page-number this-page-num))
 
-          (ragged-all? (eq? #t (ly:output-def-lookup paper 'raggedbottom)))
-          (ragged-last? (eq? #t (ly:output-def-lookup paper 'raggedlastbottom)))
+          (ragged-all? (eq? #t (ly:output-def-lookup paper 'ragged-bottom)))
+          (ragged-last? (eq? #t (ly:output-def-lookup paper 'ragged-last-bottom)))
           (ragged? (or ragged-all?
                        (and ragged-last?
                             last?)))
index e9e57d27503148e9efe991d4f63446571520779c..0e41c169449efaeff3981c10c7482a162a3b16b7 100644 (file)
@@ -215,11 +215,11 @@ grestore\n"
    (ly:number->string y)
    s))
 
-(define (polygon points blotdiameter filled?)
+(define (polygon points blot-diameter filled?)
   (string-append
    (ly:numbers->string points) " "
    (ly:number->string (/ (length points) 2)) " "
-   (ly:number->string blotdiameter)
+   (ly:number->string blot-diameter)
    (if filled? " true " " false ")
    " draw_polygon"))
 
index 5c2e0f74f4a502f821023544521121768eb1d153..9068f5b9373df6a743c9aa37b707a91223d8c098 100644 (file)
 (define (number->dim x)
   (string-append
    ;;ugh ly:* in backend needs compatibility func for standalone output
-   (ly:number->string x) " \\outputscale "))
+   (ly:number->string x) " \\output-scale "))
 
 (define (placebox x y s) 
   (string-append
 (define (resetcolor)
   (string-append "\\color[rgb]{0,0,0}\n"))
 
-(define (polygon points blotdiameter fill)
-  (embedded-ps (list 'polygon `(quote ,points) blotdiameter fill)))
+(define (polygon points blot-diameter fill)
+  (embedded-ps (list 'polygon `(quote ,points) blot-diameter fill)))
 
 (define (draw-line thick fx fy tx ty)
   (embedded-ps (list 'draw-line thick fx fy tx ty)))
index 2420857f8292afd6f01f079f08e35b94330dd94f..9d299e8ca7b83add964ec36a6198a9a0801f1f84 100644 (file)
@@ -86,9 +86,9 @@
 
 (define (annotate-page layout stencil)
   (let*
-      ((topmargin (ly:output-def-lookup layout 'topmargin))
-       (vsize (ly:output-def-lookup layout 'vsize))
-       (bottommargin (ly:output-def-lookup layout 'bottommargin))
+      ((top-margin (ly:output-def-lookup layout 'top-margin))
+       (paper-height (ly:output-def-lookup layout 'paper-height))
+       (bottom-margin (ly:output-def-lookup layout 'bottom-margin))
        (add-stencil (lambda (y)
                      (set! stencil
                            (ly:stencil-add stencil y))
 
     (add-stencil
      (ly:stencil-translate-axis 
-      (annotate-y-interval layout "vsize"
-                          (cons (- vsize) 0)
+      (annotate-y-interval layout "paper-height"
+                          (cons (- paper-height) 0)
                           #t)
       1 X))
     
 
     (add-stencil
      (ly:stencil-translate-axis 
-      (annotate-y-interval layout "topmargin"
-                          (cons (- topmargin) 0)
+      (annotate-y-interval layout "top-margin"
+                          (cons (- top-margin) 0)
                           #t)
       2 X))
     
     (add-stencil
      (ly:stencil-translate-axis 
-      (annotate-y-interval layout "bottommargin"
-                          (cons (- vsize) (- bottommargin vsize))
+      (annotate-y-interval layout "bottom-margin"
+                          (cons (- paper-height) (- bottom-margin paper-height))
                           #t)
       2 X))
     
                                           (cons (min 0 (* dir sep))
                                                 (max 0 (* dir sep)))
                                           #t)
-                     (/ (ly:output-def-lookup layout 'linewidth) 2)
+                     (/ (ly:output-def-lookup layout 'line-width) 2)
                      X)
                     (if (= dir UP)
                         (ly:stencil-translate-axis
                          (annotate-y-interval layout
-                                             "pagetopspace"
+                                             "page-top-space"
                                              (cons
                                               (- (min 0 (* dir sep))
-                                                 (ly:output-def-lookup layout 'pagetopspace))
+                                                 (ly:output-def-lookup layout 'page-top-space))
                                               (min 0 (* dir sep)))
                                              #t)
                          (+ 7 (interval-center (ly:stencil-extent head-stencil X))) X)
                    'make-header
                    'make-footer)
                (if (= dir UP)
-                   'headsep
-                   'footsep)
+                   'heap-separation
+                   'foot-separation)
                dir last?)))
 
 (define (page-header page)
 (define (layout->page-init layout)
   "Alist of settings for page layout"
   (let*
-      ((vsize (ly:output-def-lookup layout 'vsize))
-       (hsize (ly:output-def-lookup layout 'hsize))
+      ((paper-height (ly:output-def-lookup layout 'paper-height))
+       (paper-width (ly:output-def-lookup layout 'paper-width))
 
-       (lmargin (ly:output-def-lookup layout 'leftmargin))
-       (leftmargin (if lmargin
+       (lmargin (ly:output-def-lookup layout 'left-margin))
+       (left-margin (if lmargin
                       lmargin
-                      (/ (- hsize
-                            (ly:output-def-lookup layout 'linewidth)) 2)))
-       
-       (bottom-edge (- vsize
-                      (ly:output-def-lookup layout 'bottommargin)))
-       (top-margin (ly:output-def-lookup layout 'topmargin))
+                      (/ (- paper-width
+                            (ly:output-def-lookup layout 'line-width)) 2)))
+       (bottom-edge (- paper-height
+                      (ly:output-def-lookup layout 'bottom-margin)) )
+       (top-margin (ly:output-def-lookup layout 'top-margin))
        )
     
-    `((vsize . ,vsize)
-      (hsize . ,hsize)
-      (left-margin . ,leftmargin)
+    `((paper-height . ,paper-height)
+      (paper-width . ,paper-width)
+      (left-margin . ,left-margin)
       (top-margin . ,top-margin)
       (bottom-edge . ,bottom-edge)
       )))
@@ -258,10 +257,10 @@ create offsets.
        (lines (page-lines page))
        (number (page-page-number page))
 
-       ;; TODO: naming vsize/hsize not analogous to TeX.
+       ;; TODO: naming paper-height/paper-width not analogous to TeX.
 
        
-       (system-xoffset (ly:output-def-lookup layout 'horizontalshift 0.0))
+       (system-xoffset (ly:output-def-lookup layout 'horizontal-shift 0.0))
        (system-separator-markup (ly:output-def-lookup layout 'systemSeparatorMarkup))
        (system-separator-stencil (if (markup? system-separator-markup)
                                     (interpret-markup layout
@@ -275,7 +274,7 @@ create offsets.
 
        (page-stencil (ly:make-stencil
                      '()
-                     (cons (prop 'left-margin) (prop 'hsize))
+                     (cons (prop 'left-margin) (prop 'paper-width))
                      (cons (- (prop 'top-margin)) 0)))
 
        (last-system #f)
@@ -383,9 +382,9 @@ create offsets.
        (scopes (ly:paper-book-scopes p-book))
        (number (page-page-number page))
        (last? (page-property page 'is-last))
-       (h (- (ly:output-def-lookup layout 'vsize)
-              (ly:output-def-lookup layout 'topmargin)
-              (ly:output-def-lookup layout 'bottommargin)))
+       (h (- (ly:output-def-lookup layout 'paper-height)
+              (ly:output-def-lookup layout 'top-margin)
+              (ly:output-def-lookup layout 'bottom-margin)))
        
        (head (page-property page 'head-stencil))
        (foot (page-property page 'foot-stencil))
index e72795516e490ba827f1d59dc84aa934ac7b7c1c..eec080e253d8b4521aa63be7d69f59ecd6e6e1aa 100644 (file)
        (bbox-extent (paper-system-extent system Y))
        (refp-extent (ly:prob-property system 'refpoint-Y-extent))
        (next-space (ly:prob-property system 'next-space
-                                            (ly:output-def-lookup layout 'betweensystemspace)
+                                            (ly:output-def-lookup layout 'between-system-space)
                                             ))
        (next-padding (ly:prob-property system 'next-padding
-                                              (ly:output-def-lookup layout 'betweensystempadding)
+                                              (ly:output-def-lookup layout 'between-system-padding)
                                               ))
                     
        )
index 18285a2e649b77367adf219744b80b37c5c549f5..19e92824cb5014eb8c56dff0e4c8e1b07e3a982b 100644 (file)
@@ -6,12 +6,12 @@
 
 (define-public (set-paper-dimension-variables mod)
   (module-define! mod 'dimension-variables
-                 '(pt mm cm in staffheight staff-space
-                      pagetopspace
-                      betweensystemspace betweensystempadding
-                      linewidth indent hsize vsize horizontalshift
-                      staffspace linethickness ledgerlinethickness
-                      blotdiameter leftmargin rightmargin)))
+                 '(pt mm cm in staff-height staff-space
+                      page-top-space
+                      between-system-space between-system-padding
+                      line-width indent paper-width paper-height horizontal-shift
+                      staff-space line-thickness ledgerline-thickness
+                      blot-diameter left-margin right-margin)))
 
 (define-public (layout-set-staff-size sz)
   "Function to be called inside a \\layout{} block to set the staff size."
 
     (module-define! m 'text-font-size (* 12 (/ sz (* 20 pt))))
     
-    (module-define! m 'outputscale ss)
+    (module-define! m 'output-scale ss)
     (module-define! m 'fonts
                    (if tex-backend?
                        (make-cmr-tree (/  sz (* 20 pt)))
                        (make-century-schoolbook-tree
                         (/ sz (* 20 pt)))))
-    (module-define! m 'staffheight sz)
+    (module-define! m 'staff-height sz)
+    (module-define! m 'staff-space ss)
     (module-define! m 'staff-space ss)
-    (module-define! m 'staffspace ss)
 
     ;; !! synchronize with feta-params.mf
-    (module-define! m 'linethickness lt)
-    (module-define! m 'ledgerlinethickness (+ (* 0.5 pt) (/ ss 10)))
-    (module-define! m 'blotdiameter (* 0.4 pt))
+    (module-define! m 'line-thickness lt)
+    (module-define! m 'ledgerline-thickness (+ (* 0.5 pt) (/ ss 10)))
+    (module-define! m 'blot-diameter (* 0.4 pt))
     ))
 
 (define-safe-public (set-global-staff-size sz)
@@ -88,9 +88,9 @@
 (define (set-paper-dimensions m w h)
   "M is a module (i.e. layout->scope_ )"
   (let* ((mm (eval 'mm m)))
-    (module-define! m 'hsize w)
-    (module-define! m 'vsize h)
-    (module-define! m 'linewidth (- w (* 20 mm)))
+    (module-define! m 'paper-width w)
+    (module-define! m 'paper-height h)
+    (module-define! m 'line-width (- w (* 20 mm)))
     (module-define! m 'indent (/ w 14))
 
     ;; page layout - what to do with (printer specific!) margin settings?
             (module-define! scope v
                             (/ val scale))
 
-            ;; spurious warnings, eg. for hsize, vsize
+            ;; spurious warnings, eg. for paper-width, paper-height
             ;; (ly:warning (_ "not a number, ~S = ~S " v  val))
             )))
      
index fa020782585abecce0bea34f40c12a2523372c19..f6ac5f0b124ecc84f08a0023a9da150116f70cbd 100644 (file)
@@ -6,8 +6,8 @@
 ;;;;          Han-Wen Nienhuys <hanwen@cs.uu.nl>
 
 (define-public (layout-extract-page-properties layout)
-  (list (append `((linewidth . ,(ly:paper-get-number
-                                layout 'linewidth)))
+  (list (append `((line-width . ,(ly:paper-get-number
+                                layout 'line-width)))
                (ly:output-def-lookup layout 'text-font-defaults))))
 
 ;;;;;;;;;;;;;;;;;;
index 9c22d98fa880c7635698dbdd5123f58c392a18fe..63814ac985e363b9deb3ce0e263b890391990e38 100644 (file)
@@ -168,7 +168,6 @@ def do_one_file (infile_name):
        (last, result) = do_conversion (infile.read (), from_version, to_version)
        infile.close ()
 
-
        if last:
                newversion = r'\version "%s"' % tup_to_str (last)
                if lilypond_version_re.search (result):