]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/lily.scm (define-scheme-options): add paper-size option.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 10 Oct 2005 10:40:59 +0000 (10:40 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 10 Oct 2005 10:40:59 +0000 (10:40 +0000)
* ly/declarations-init.ly (laissezVibrer): get paper size from
-dpaper-size

* scm/translation-functions.scm: use \fontsize for changing the
fontsize.

* scm/define-grobs.scm (all-grob-descriptions): set
between-length-limit to 1.0

* lily/tie-helper.cc: add between_length_limit_ detail property.

ChangeLog
Documentation/topdocs/NEWS.tely
lily/include/tie.hh
lily/tie-helper.cc
lily/tie.cc
ly/declarations-init.ly
ly/paper-defaults.ly
scm/define-grobs.scm
scm/lily.scm
scm/translation-functions.scm

index ec83f6b953730236e62d503fe7593e3b4c0a5f1e..bddcc87f9ef9ed38b6ed22379ae7ea6baf58c9f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2005-10-10  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/lily.scm (define-scheme-options): add paper-size option.
+
+       * ly/declarations-init.ly (laissezVibrer): get paper size from
+       -dpaper-size
+
+       * scm/translation-functions.scm: use \fontsize for changing the
+       fontsize.
+
+       * scm/define-grobs.scm (all-grob-descriptions): set
+       between-length-limit to 1.0
+
+       * lily/tie-helper.cc: add between_length_limit_ detail property.
+
+       * mf/feta-bolletjes.mf: typos.
+
        * lily/note-head.cc (internal_print): don't shadow idx
        parameter. This fixes wrong attachment for do shape heads.
 
index 7a3492b5833377f5ed1fc5776de3fbe4c452c2ee..ab905d0179784d736cc01c39560a35bea493c1e7 100644 (file)
@@ -45,6 +45,10 @@ This document is also available in @uref{NEWS.pdf,PDF}.
 
 
 @itemize @bullet
+@item
+The default paper size may now be set from the command line using
+@code{-dpaper-size}.
+
 @item
 Beamlets may stick out of the side of beams.
 
index 80501acf30502737c6d5a114634ea628139603d3..6ea8f653b20231c12aeb0f42b4855af7d0143151 100644 (file)
@@ -25,6 +25,7 @@ struct Tie_details
   Real ratio_;
   Real staff_space_;
   Real x_gap_;
+  Real between_length_limit_;
   
   Tie_details ();
   void init (Grob *);
@@ -76,7 +77,8 @@ public:
                      Grob *const &s2);
 
   static Interval get_default_attachments (Spanner *me, Grob *common, Real gap,
-                                          int *staff_position, bool *in_between);
+                                          int *staff_position, bool *in_between,
+                                          Tie_details const &);
   
 };
 
index eba02de16cec4a0104706d9cc6f92eb173c77934..58dbac8ac256819799d8421352454cd20f04c058 100644 (file)
@@ -85,19 +85,25 @@ Tie_configuration::height (Tie_details const &details) const
 }
 
 
+
 void
 Tie_details::init (Grob *me)
 {
   staff_space_ = Staff_symbol_referencer::staff_space (me);
   SCM details = me->get_property ("details");
-  SCM limit
-    = scm_assq (ly_symbol2scm ("height-limit"), details);
-  height_limit_ = robust_scm2double (scm_cdr (limit), 0.75) * staff_space_;
-  ratio_ = robust_scm2double (scm_cdr (scm_assq (ly_symbol2scm ("ratio"), details)),
-                             .333);
 
-  x_gap_ = robust_scm2double (me->get_property ("x-gap"), 0.2);
 
+  height_limit_ = robust_scm2double (ly_assoc_get (ly_symbol2scm ("height-limit"), details, SCM_EOL),
+                                    0.75) * staff_space_;
+  
+  ratio_ = robust_scm2double (ly_assoc_get (ly_symbol2scm ("ratio"), details, SCM_EOL),
+                             .333);
+  
+  x_gap_ = robust_scm2double (me->get_property ("x-gap"), 0.2);
+  between_length_limit_
+    = robust_scm2double (ly_assoc_get (ly_symbol2scm ("between-length-limit"), details, SCM_EOL),
+                        1.0); 
+  
 }
 
 Tie_details::Tie_details ()
index ee2af5fb0b2e7816f8b92c05503ec901e300ff8a..78501ef7f755df03ee8191d71676b3ccc3b249e4 100644 (file)
@@ -111,7 +111,8 @@ Tie::set_direction (Grob *me)
 Interval
 Tie::get_default_attachments (Spanner *me, Grob *common, Real gap,
                              int *staff_position,
-                             bool *in_between
+                             bool *in_between,
+                             Tie_details const &details
                              )
 {
   Real staff_space = Staff_symbol_referencer::staff_space (me);
@@ -128,7 +129,7 @@ Tie::get_default_attachments (Spanner *me, Grob *common, Real gap,
     }
   while (flip (&d) != LEFT);
 
-  if (attachments.length () < 0.6 * staff_space)
+  if (attachments.length () < details.between_length_limit_ * staff_space)
     {
       /*
        Let short ties start over note heads, instead of between.
@@ -206,7 +207,6 @@ Tie::get_configuration (Grob *me_grob, Grob *common,
     conf->dir_ = get_grob_direction (me);
   if (!conf->dir_)
     conf->dir_ = get_default_dir (me);
-    
 
   Real staff_space = details.staff_space_;
   bool in_between = true;
@@ -216,8 +216,8 @@ Tie::get_configuration (Grob *me_grob, Grob *common,
     {
       if (!skylines)
        conf->attachment_x_ = get_default_attachments (me, common, gap,
-                                              &conf->position_,
-                                              &in_between);
+                                                      &conf->position_,
+                                                      &in_between, details);
       else
        {
          Real y = staff_space * 0.5 * conf->position_;
@@ -326,7 +326,8 @@ Tie::get_configuration (Grob *me_grob, Grob *common,
   if (conf->position_ == conf->head_position_
       && in_space
       && Staff_symbol_referencer::staff_radius (me) > abs (conf->position_) / 2
-      && dy > 0.3 * staff_space)
+      && dy > 0.3 * staff_space
+      )
     {
       conf->position_ += 2 * conf->dir_; 
     }
@@ -500,7 +501,9 @@ Tie::print (SCM smob)
 ADD_INTERFACE (Tie,
               "tie-interface",
               
-              "A tie connecting two noteheads.\n",
+              "A tie connecting two noteheads. \n\n"
+              ,
+              
 
               /* properties */
               "control-points "
index 60e8fbabe0cf6109d36fa7ea4d3d5fcffe833f9c..a8580c98a4b48cd701acc735156a0427c2a78a89 100644 (file)
@@ -85,8 +85,7 @@ laissezVibrer = #(make-music 'LaissezVibrerEvent)
     
 }
 
-
-#(set-default-paper-size "a4")
+#(set-default-paper-size (ly:get-option 'paper-size))
 
 
 partCombineListener = \layout {
index 11ded37f58368c326e988b53659ef4b14a934b50..adc879efca66ab0ab558bd6ce3b01a2637fd1d5a 100644 (file)
     %%
     raggedlastbottom= ##t
 
-    %% ugh.  Should use /etc/papersize and set explicitly for
-    %% documentation.
-    papersizename = "a4"
-
     #(define font-defaults
       '((font-encoding . fetaMusic)))
 
index 40ab72ddfa4a7b4991acb7177f9ba249588c444d..96de6cb51297e1bb53b4ecb3973f0d8eb61275bb 100644 (file)
     (NewBassFigure
      . (
        (print-function . ,Text_interface::print)
-       (font-size . -2)
        (meta . ((class . Item)
                 (interfaces . (text-interface
                                rhythmic-grob-interface
                                font-interface))))))
 
     (Tie
-     . (
-       (print-function . ,Tie::print)
-       (details . ((ratio . 0.333) (height-limit . 1.0)))
+     . ((print-function . ,Tie::print)
+       (details . ((ratio . 0.333)
+                   (height-limit . 1.0)
+                   (between-length-limit . 1.0)))
        (thickness . 1.0)
        (meta . ((class . Spanner)
-                (interfaces . (tie-interface))))))
+                (interfaces . (tie-interface))))
+       ))
 
     (TieColumn
      . (
index 593daa2cac0b3198ea4bdfdce0ef4471ae1cf07b..cf1e1082cf20a1a058c44088f13a99e992f22d02 100644 (file)
@@ -11,6 +11,7 @@
              (ly:add-option (car x) (cadr x) (caddr x)))
          
            '((point-and-click #t "use point & click")
+             (paper-size "a4" "the default paper size")
              (midi-debug #f "generate human readable MIDI")
              (internal-type-checking #f "check every property assignment for types")
              (parse-protect #t    "continue when finding errors in inline
index 5c8fe4bf0b6ad4950618b241de3c150a67d9e49e..aa536c2e5c0d7830568a3b422fc2c8e8cb02fe0a 100644 (file)
@@ -99,7 +99,7 @@
                      #:pad-x 0.2 alt-markup
                      )))
 
-    (if (markup?  fig-markup)
-       fig-markup
+    (if (markup? fig-markup)
+       (markup #:fontsize -2 fig-markup)
        empty-markup)))