]> git.donarmstrong.com Git - lilypond.git/commitdiff
(from_list): read
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 25 Nov 2005 15:32:45 +0000 (15:32 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 25 Nov 2005 15:32:45 +0000 (15:32 +0000)
bracket type from hierarchy.

ChangeLog
Documentation/index.html.in
lily/nested-system-start-delimiter-engraver.cc
lily/rest.cc
lily/self-aligment-interface.cc
scm/define-grob-properties.scm
scm/define-grobs.scm
stepmake/bin/add-html-footer.py

index 195722883620a2de3ce7e472f4b855532f820f6f..1fbc93882966f1ae7ad681acb2f6203666c5fd2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,25 @@
+2005-11-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/nested-system-start-delimiter-engraver.cc (from_list): read
+       bracket type from hierarchy.
+
+2005-11-24  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/rest.cc (y_offset_callback): read staff-position.
+
+       * scm/define-grob-properties.scm (all-user-grob-properties): don't
+       mark after-line-breaking-callback as internal.
+
+       * lily/self-aligment-interface.cc: remove self-[XY]-offset.
+
 2005-11-25  Werner Lemberg  <wl@gnu.org>
 
        * mf/feta-banier.mf ("d3"): Make `flare' equal to `staff_space'.
 
 2005-11-23  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * stepmake/bin/add-html-footer.py (do_file): add google
+
        * lily/staff-symbol-engraver.cc (process_music): bugfix: stop
        staff if first_start_ is true.
 
index 79da4490689f9dafb16ef3d93f0c373fba941c79..c53ec96ab33cc01c6470e77414f1b8591c26edfb 100644 (file)
@@ -19,8 +19,9 @@
       td.left-column { padding-right: 1em; }
       td.right-column { padding-left: 1em; }
       hr { border:0; height:1; color: #000000; background-color: #000000; }
-    </style>
+    </style> 
   </head>
+  
   <body>
         
        <div class="navigation">
index 32ae994077cbfddb67397929f83207add9ee73d1..4bed89dacde46502b75eb37c6c9c961429410b15 100644 (file)
@@ -26,23 +26,26 @@ public:
   virtual void add_support (Grob *) { }
   virtual void set_bound (Direction, Grob *){}
   virtual void set_nesting_support (Grob*) {}
-  virtual void create_grobs (Engraver*, SCM, SCM){}
+  virtual void create_grobs (Engraver*, SCM{}
 };
 
 struct Bracket_nesting_group : public Bracket_nesting_node
 {
   Spanner *delimiter_;
   Link_array<Bracket_nesting_node> children_;
+  SCM symbol_;
+
   void from_list (SCM ); 
   virtual void add_support (Grob *grob);
   virtual bool add_staff (Grob *grob);
   virtual void set_nesting_support (Grob*);
   virtual void set_bound (Direction, Grob *grob);
-  virtual void create_grobs (Engraver*, SCM, SCM);
+  virtual void create_grobs (Engraver*, SCM);
   ~Bracket_nesting_group ();
+  Bracket_nesting_group ();
 };
 
+
 struct Bracket_nesting_staff : public Bracket_nesting_node
 {
   Grob *staff_;
@@ -51,6 +54,13 @@ struct Bracket_nesting_staff : public Bracket_nesting_node
   virtual bool add_staff (Grob *);
 };
 
+
+Bracket_nesting_group::Bracket_nesting_group ()
+{
+  symbol_ = SCM_EOL;
+  delimiter_ = 0;
+}
+
 bool
 Bracket_nesting_staff::add_staff (Grob *g)
 {
@@ -63,16 +73,15 @@ Bracket_nesting_staff::add_staff (Grob *g)
 }
 
 void
-Bracket_nesting_group::create_grobs (Engraver *engraver, SCM types, SCM default_type)
+Bracket_nesting_group::create_grobs (Engraver *engraver, SCM default_type)
 {
-  SCM type = (scm_is_pair (types) ? scm_car (types) : default_type);
+  SCM type = scm_is_symbol (symbol_) ? symbol_ : default_type;
   delimiter_ = make_spanner_from_properties (engraver, type,
                                             SCM_EOL, ly_symbol2string (type).to_str0 ());
 
   for (int i = 0 ; i < children_.size (); i++)
     {
-      children_[i]->create_grobs (engraver, (scm_is_pair (types) ? scm_cdr (types) : SCM_EOL),
-                                 default_type);
+      children_[i]->create_grobs (engraver, default_type);
     }
 }
 
@@ -131,6 +140,9 @@ Bracket_nesting_group::from_list (SCM x)
        {
          children_.push (new Bracket_nesting_staff (0));
        }
+
+      if (scm_is_symbol (entry))
+       symbol_ = entry;
     }
 }
 
@@ -184,10 +196,9 @@ Nested_system_start_delimiter_engraver::process_music ()
       nesting_ = new Bracket_nesting_group ();
       SCM hierarchy = get_property ("systemStartDelimiterHierarchy");
       SCM delimiter_name = get_property ("systemStartDelimiter");
-      SCM delimiter_types = get_property ("systemStartDelimiters");
+
       nesting_->from_list (hierarchy);
-      nesting_->create_grobs (this, delimiter_types,
-                             delimiter_name);
+      nesting_->create_grobs (this, delimiter_name);
       nesting_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
     }
 }
@@ -232,5 +243,5 @@ ADD_TRANSLATOR (Nested_system_start_delimiter_engraver,
                /* doc */ "Creates a system start delimiter (ie. SystemStart@{Bar, Brace, Bracket@} spanner",
                /* create */ "SystemStartSquare SystemStartBrace SystemStartBracket SystemStartBar",
                /* accept */ "",
-               /* read */ "systemStartDelimiterHierarchy",
+               /* read */ "systemStartDelimiter systemStartDelimiterHierarchy currentCommandColumn",
                /* write */ "");
index e2ed124394e5a04a9d4eb01b8290480c0a5c6d68..2d4f5717dddfdd8ca1564c1fe368e728005717f4 100644 (file)
@@ -26,7 +26,8 @@ Rest::y_offset_callback (SCM smob)
   int line_count = Staff_symbol_referencer::line_count (me);
   Real ss = Staff_symbol_referencer::staff_space (me);
 
-  Real amount = 0.0;
+  Real amount = robust_scm2double (me->get_property ("staff-position"), 0)
+    * 0.5 * ss;
   if (line_count % 2)
     {
       if (duration_log == 0 && line_count > 1)
index 3eb8d23a69ffe0ca2fe2ea93a512ca678e816e3d..0ba251a6f3eec10b9c0839a78a77a56c03053691 100644 (file)
@@ -147,7 +147,5 @@ ADD_INTERFACE (Self_alignment_interface, "self-alignment-interface",
 
               /* porperties */
               "self-alignment-X "
-              "self-X-offset "
-              "self-Y-offset "
               "self-alignment-Y ");
 
index 40fb0399e24f122449cb6da48e15e022b11858cf..65ac907ae273e1041a78c935af0ace4352ab456d 100644 (file)
@@ -25,9 +25,8 @@
      (X-offset ,number? "The horizontal amount that this object is moved relative to its X-parent")
      (Y-offset ,number? "The vertical amount that this object is moved
 relative to its X-parent")
-     (self-X-offset ,number? "")
-     (self-Y-offset ,number? "")
      (accidentals ,list? "List of alteration numbers")
+     (after-line-breaking ,boolean? "Dummy property, used to trigger callback for after-line-breaking")
      (alteration-alist ,list? "List of @code{(@var{pitch}
 . @var{accidental})} pairs for key signature.")
      (add-stem-support ,boolean? "If set, the Stem object is included in this script's support") 
@@ -474,7 +473,6 @@ sizes (like the dynamic @b{p} and @b{f}) on their baselines.")
      (axis-group-parent-Y ,ly:grob? "Containing Y axis group")
      (accidental-grobs ,list? "Alist with (NOTENAME . GROBLIST) entries")
      (adjacent-hairpins ,ly:grob-array? "List of directly neighboring hairpins")
-     (after-line-breaking ,boolean? "Dummy property, used to trigger callback for after-line-breaking")
      (all-elements ,ly:grob-array? "list of all grobs in this line. Its
 function is to protect objects from being garbage collected.")
      (arpeggio ,ly:grob? "pointer to arpeggio object.")
index 9f690dd38eae381a8f0ecdfd09d220f064d6e21e..8c5617e661697e04201618c045929722432adb35 100644 (file)
                 (interfaces . (percent-repeat-interface))))))
     (Rest
      . (
-
        (stencil . ,Rest::print)
        (X-extent . ,Rest::width)
        (Y-extent . ,Rest::height)
index d16ddcebbe42a5115eccc240ca38eb988eab86bb..314499433b90ce90af536b8c8a255d9654604b75 100644 (file)
@@ -242,8 +242,7 @@ def do_file (f):
                # don't cause ///////index.html entries in log files.
                #       index = "./index.html"
                #       top = "./"
-
-
+                       
        versiontup = string.split(package_version, '.')
        branch_str = 'stable-branch'
        if string.atoi ( versiontup[1]) %  2: