]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/dynamic-engraver.cc (acknowledge_grob): attach hairpin
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 22 Sep 2004 22:04:20 +0000 (22:04 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 22 Sep 2004 22:04:20 +0000 (22:04 +0000)
start to note-column.

* lily/hairpin.cc (print): check text-interface, to attach to
dynamic texts.

* lily/include/text-item.hh (class Text_interface): rename
Text_item -> Text_interface

* lily/piano-pedal-bracket.cc (print): robustify.

23 files changed:
lily/balloon.cc
lily/beam.cc
lily/dynamic-engraver.cc
lily/dynamic-text-spanner.cc
lily/hairpin.cc
lily/hyphen-engraver.cc
lily/include/text-item.hh
lily/mark-engraver.cc
lily/ottava-bracket.cc
lily/paper-column.cc
lily/parser.yy
lily/part-combine-engraver.cc
lily/slur.cc
lily/text-item.cc
lily/text-spanner.cc
lily/time-signature.cc
lily/tuplet-bracket.cc
lily/volta-bracket.cc
scm/define-grobs.scm
scm/define-markup-commands.scm
scm/new-markup.scm
scm/safe-lily.scm
scripts/convert-ly.py

index bda3fa20cbd9f8d55372a1062d31f0935176ce58..272be12b7fa861eb263a0fe57e91a39f375339a9 100644 (file)
@@ -60,7 +60,7 @@ Balloon_interface::print (SCM smob)
   SCM chain = Font_interface::text_font_alist_chain (me);
   chain = scm_cons (me->get_property ("balloon-text-props"), chain);
 
-  SCM text = Text_item::interpret_markup (me->get_paper ()->self_scm (),
+  SCM text = Text_interface::interpret_markup (me->get_paper ()->self_scm (),
                                          chain, bt);
 
   Stencil *text_stil = unsmob_stencil (text);
index 949d3ae65bb753482d5fb2f540fcd4e623fee708..3fa06ebc764b1809a3d586899533416af32c212a 100644 (file)
@@ -522,7 +522,7 @@ Beam::print (SCM grob)
 
       Direction stem_dir = stems.size() ? to_dir (stems[0]->get_property ("direction")) : UP;
     
-      Stencil tm = *unsmob_stencil (Text_item::interpret_markup
+      Stencil tm = *unsmob_stencil (Text_interface::interpret_markup
         (me->get_paper ()->self_scm (), properties, quant_score));
       the_beam.add_at_edge (Y_AXIS, stem_dir, tm, 1.0, 0);
     }
index 71dfcce857cadd90f9e1be69bd26eb58b92d7110..18997be2a5d5a7d0ca444595044b5ad81a8b2737 100644 (file)
@@ -136,7 +136,6 @@ Dynamic_engraver::process_music ()
     Note: line-spanner must always have at least same duration
     as (de)crecsendo, b.o. line-breaking.
   */
-
   
 
   /*
@@ -267,13 +266,13 @@ Dynamic_engraver::process_music ()
                }
            }
 
-         cresc_->set_bound (LEFT, script_
-                            ? script_
-                            : unsmob_grob (get_property ("currentMusicalColumn")));
-
+         if (script_)
+           {
+             cresc_->set_bound (LEFT, script_);
+             add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
+           }
+         
          Axis_group_interface::add_element (line_spanner_, cresc_);
-
-         add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
        }
     }
 }
@@ -284,12 +283,17 @@ Dynamic_engraver::stop_translation_timestep ()
   typeset_all ();
   if (!current_cresc_ev_)
     {
-      
       finished_line_spanner_ = line_spanner_;
       line_spanner_ = 0;
       typeset_all ();
     }
 
+  if (cresc_ && !cresc_->get_bound (LEFT))
+    {
+      cresc_->set_bound (LEFT, unsmob_grob (get_property ("currentMusicalColumn")));
+      add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
+    }
+  
   script_ev_ = 0;
   accepted_spanreqs_drul_[START] = 0;
   accepted_spanreqs_drul_[STOP] = 0;
@@ -396,6 +400,15 @@ Dynamic_engraver::acknowledge_grob (Grob_info info)
          if (ly_c_pair_p (head))
            script_->set_parent (unsmob_grob (ly_car (head)),  X_AXIS);
        }
+
+
+
+      if (cresc_ && !cresc_->get_bound (LEFT))
+       {
+         cresc_->set_bound (LEFT, info.grob_);
+         add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
+       }
+        
     }
   else if (Script_interface::has_interface (info.grob_) && script_)
     {
index 19963fe4587e215359ddabce3e85b921a68614c7..3e78516c15cfcc8d6666b3fe60a69e0bbc6e3104 100644 (file)
@@ -110,8 +110,8 @@ Dynamic_text_spanner::print (SCM smob)
          
          SCM text = index_get_cell (edge_text, d);
 
-         if (Text_item::markup_p (text)) 
-           edge[d] = *unsmob_stencil (Text_item::interpret_markup (paper->self_scm (), properties, text));
+         if (Text_interface::markup_p (text)) 
+           edge[d] = *unsmob_stencil (Text_interface::interpret_markup (paper->self_scm (), properties, text));
          
          if (!edge[d].is_empty ())
            edge[d].align_to (Y_AXIS, CENTER);
index 828bb6ec52b11694f23826e98391146d40bc2138..83505966da405a8165fec0792e4d7f0bf36ad38b 100644 (file)
@@ -17,6 +17,7 @@
 #include "warn.hh"
 #include "paper-column.hh"
 #include "lookup.hh"
+#include "text-item.hh"
 
 MAKE_SCHEME_CALLBACK (Hairpin, print, 1);
 
@@ -61,16 +62,22 @@ Hairpin::print (SCM smob)
        }
       else
        {
-         if (dynamic_cast<Paper_column*> (b))
+         if (Text_interface::has_interface (b))
+           {
+             Interval e = b->extent (common, X_AXIS);
+             if (!e.is_empty ())
+               x_points[d] = e[-d] - d*padding;
+           }
+         else
            {
              bool neighbor_found = false;
              for (SCM  adj = me->get_property ("adjacent-hairpins");
                   ly_c_pair_p (adj); adj = ly_cdr (adj))
                {
                  /*
-                  FIXME: this will fuck up in case of polyphonic
-                  notes in other voices. Need to look at note-columns
-                  in the current staff/voice.
+                   FIXME: this will fuck up in case of polyphonic
+                   notes in other voices. Need to look at note-columns
+                   in the current staff/voice.
                  */
                  
                  Spanner *pin = unsmob_spanner (ly_car (adj));
@@ -89,12 +96,7 @@ Hairpin::print (SCM smob)
              x_points[d] =
                neighbor_found ? e.center() - d * padding / 3 : e[d];
            }
-         else
-           {
-             Interval e = b->extent (common, X_AXIS);
-             if (!e.is_empty ())
-               x_points[d] = e[-d] - d*padding;
-           }
+         
        }
     }
   while (flip (&d) != LEFT);
index 727a657606f43a50ff33bb3cf879af420f69835c..94f2ae76cff2121fbb1440d0eb7947f543d958fb 100644 (file)
@@ -45,7 +45,7 @@ void
 Hyphen_engraver::acknowledge_grob (Grob_info i)
 {
   Item * item =  dynamic_cast<Item*> (i.grob_);
-  // -> text_item
+  // -> Text_item
   if (item && item->internal_has_interface (ly_symbol2scm ("lyric-syllable-interface")))
     {
       if (hyphen_)
index 3ae5cda3fb7b0fa84e4d4ac44e83a0d16052fb1c..6f5425de47923b646bfd5420bf8027c158d34494 100644 (file)
@@ -15,7 +15,7 @@
 #include "lily-guile.hh"
 #include "stencil.hh"
 
-class Text_item
+class Text_interface
 {
 public:
   DECLARE_SCHEME_CALLBACK (print, (SCM));
@@ -23,11 +23,6 @@ public:
   DECLARE_SCHEME_CALLBACK (interpret_string, (SCM, SCM, SCM, SCM));
   static bool has_interface (Grob*);
   static bool markup_p (SCM) ;
-
 };
 
-
-  
-
-
 #endif /* TEXT_ITEM */
index b43212a08dd9a62f85b41c400cd3dd91c18ab45a..bd79403806bad1a882f15b3f5294ff074d869146 100644 (file)
@@ -110,7 +110,7 @@ Mark_engraver::process_music ()
       
       SCM m = mark_ev_->get_property ("label");
       SCM proc = get_property ("markFormatter");
-      if (!Text_item::markup_p (m) &&
+      if (!Text_interface::markup_p (m) &&
          ly_c_procedure_p (proc))
        {
          if (!scm_is_number (m)) 
@@ -131,7 +131,7 @@ Mark_engraver::process_music ()
            warning ("rehearsalMark does not have integer value.");
        }
 
-      if (Text_item::markup_p (m))
+      if (Text_interface::markup_p (m))
        text_->set_property ("text", m);
       else
        warning ("Mark label should be markup object.");
index 01b452d933d57604710ee89ff76d596602bf1390..3c9c34f487041a2a1eeb5fc378aa7f093ecaa5ea 100644 (file)
@@ -72,8 +72,8 @@ Ottava_bracket::print (SCM smob)
   SCM properties = Font_interface::text_font_alist_chain (me);
   SCM markup = me->get_property ("text");
   Stencil text;
-  if (Text_item::markup_p (markup)) 
-    text = *unsmob_stencil (Text_item::interpret_markup (paper->self_scm (), properties, markup));
+  if (Text_interface::markup_p (markup)) 
+    text = *unsmob_stencil (Text_interface::interpret_markup (paper->self_scm (), properties, markup));
 
 
   Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
index 9eb5f1c3dd120e541b42a9e1787af2243a54c915..22bc32a774a3029dedd5ca3d6be49523c72ebc2f 100644 (file)
@@ -117,7 +117,7 @@ Paper_column::print (SCM p)
   String r = to_string (Paper_column::get_rank (me));
   SCM properties = Font_interface::text_font_alist_chain (me);
 
-  SCM scm_mol = Text_item::interpret_markup (me->get_paper ()->self_scm (),
+  SCM scm_mol = Text_interface::interpret_markup (me->get_paper ()->self_scm (),
                                             properties,
                                             scm_makfrom0str (r.to_str0 ()));
   Stencil t = *unsmob_stencil (scm_mol);
index 4cdfa95838dc57b4c5b0d49a461674bb9ddf418d..0ab0b2f65c9110c3edae8e40158875e8062dd2f8 100644 (file)
@@ -2563,7 +2563,7 @@ Lily_lexer::try_special_identifiers (SCM *destination, SCM sid)
 
                *destination = p->self_scm ();
                return OUTPUT_DEF_IDENTIFIER;
-       } else if (Text_item::markup_p (sid)) {
+       } else if (Text_interface::markup_p (sid)) {
                *destination = sid;
                return MARKUP_IDENTIFIER;
        }
index 122f4cd9740642444b42214c19a32c62367c4682..f0a340c363f3d70c7a72edfbcc0115cecad832fd 100644 (file)
@@ -59,7 +59,7 @@ Part_combine_engraver::process_music ()
       else if (what == ly_symbol2scm ("unisono"))
        text = get_property ("aDueText");
 
-      if (Text_item::markup_p (text))
+      if (Text_interface::markup_p (text))
        {
          text_ =  make_item ("CombineTextScript", event_->self_scm () );
          text_->set_property ("text", text);
index 83c181efe2992c7eee82d5a2c05ddc0bbd189cd1..7be89976d8fe6db83b554eecc554255992f5ece5 100644 (file)
@@ -87,7 +87,7 @@ Slur::print (SCM smob)
       String str;
       SCM properties = Font_interface::text_font_alist_chain (me);
 
-      Stencil tm = *unsmob_stencil (Text_item::interpret_markup
+      Stencil tm = *unsmob_stencil (Text_interface::interpret_markup
                                    (me->get_paper ()->self_scm (), properties,
                                     quant_score));
       a.add_at_edge (Y_AXIS, get_grob_direction (me), tm, 1.0, 0);
index b3c14fd3e41c31b399ce1e263f271101a794d358..4f565f53f908e93713a748173839666a3059c7ad 100644 (file)
@@ -1,5 +1,5 @@
 /*   
-  text-item.cc -- implement Text_item
+  text-item.cc -- implement Text_interface
 
   source file of the GNU LilyPond music typesetter
   
@@ -18,9 +18,9 @@
 #include "modified-font-metric.hh"
 #include "ly-module.hh"
 
-MAKE_SCHEME_CALLBACK (Text_item, interpret_string, 4)
+MAKE_SCHEME_CALLBACK (Text_interface, interpret_string, 4)
 SCM
-Text_item::interpret_string (SCM paper_smob,
+Text_interface::interpret_string (SCM paper_smob,
                             SCM props, SCM input_encoding, SCM markup)
 {
   Output_def *paper = unsmob_output_def (paper_smob);
@@ -65,9 +65,9 @@ Text_item::interpret_string (SCM paper_smob,
 }
 
 
-MAKE_SCHEME_CALLBACK (Text_item, interpret_markup, 3)
+MAKE_SCHEME_CALLBACK (Text_interface, interpret_markup, 3)
 SCM
-Text_item::interpret_markup (SCM paper_smob, SCM props, SCM markup)
+Text_interface::interpret_markup (SCM paper_smob, SCM props, SCM markup)
 {
   if (scm_is_string (markup))
     return interpret_string (paper_smob, props, SCM_EOL, markup);
@@ -83,9 +83,9 @@ Text_item::interpret_markup (SCM paper_smob, SCM props, SCM markup)
   return SCM_EOL;
 }
 
-MAKE_SCHEME_CALLBACK (Text_item,print,1);
+MAKE_SCHEME_CALLBACK (Text_interface,print,1);
 SCM
-Text_item::print (SCM grob)
+Text_interface::print (SCM grob)
 {
   Grob *me = unsmob_grob (grob);
   
@@ -96,7 +96,7 @@ Text_item::print (SCM grob)
 
 /* Ugh. Duplicated from Scheme.  */
 bool
-Text_item::markup_p (SCM x)
+Text_interface::markup_p (SCM x)
 {
   return (scm_is_string (x)
          || (ly_c_pair_p (x)
@@ -105,7 +105,7 @@ Text_item::markup_p (SCM x)
                                      ly_symbol2scm ("markup-signature"))));
 }
 
-ADD_INTERFACE (Text_item,"text-interface",
+ADD_INTERFACE (Text_interface,"text-interface",
               "A scheme markup text, see @usermanref{Text-markup}.",
               "text baseline-skip word-space");
 
index 5e43a0880b92ed85a7b3a679f7961bfd28df8a85..930fe499e0bc31073222c3c1248d10c15e35158d 100644 (file)
@@ -93,8 +93,8 @@ Text_spanner::print (SCM smob)
          
          SCM text = index_get_cell (edge_text, d);
 
-         if (Text_item::markup_p (text)) 
-           edge[d] = *unsmob_stencil (Text_item::interpret_markup (paper->self_scm (), properties, text));
+         if (Text_interface::markup_p (text)) 
+           edge[d] = *unsmob_stencil (Text_interface::interpret_markup (paper->self_scm (), properties, text));
          
          if (!edge[d].is_empty ())
            edge[d].align_to (Y_AXIS, CENTER);
index ea1993a15560fb38dd2b8ae0f3d2b1bebef65f6e..66a57b54a830ff776c4b2808957169219f7d2935 100644 (file)
@@ -101,9 +101,9 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den)
                                         ly_symbol2scm ("fetaNumber"))),
                    chain);
                                
-  SCM sn = Text_item::interpret_markup (me->get_paper ()->self_scm (), chain,
+  SCM sn = Text_interface::interpret_markup (me->get_paper ()->self_scm (), chain,
                                        scm_makfrom0str (to_string (num).to_str0 ()));
-  SCM sd = Text_item::interpret_markup (me->get_paper ()->self_scm (), chain,
+  SCM sd = Text_interface::interpret_markup (me->get_paper ()->self_scm (), chain,
                                        scm_makfrom0str (to_string (den).to_str0 ()));
 
   Stencil n = *unsmob_stencil (sn);
index 0260b2a1cecd639eeb831921cfbedcdddde4da5b..46bf85d6b644198ae637db7213cebabde952f92d 100644 (file)
@@ -173,7 +173,7 @@ Tuplet_bracket::print (SCM smob)
  if (scm_is_string (number) && number_visibility)
     {
       SCM properties = Font_interface::text_font_alist_chain (me);
-      SCM snum = Text_item::interpret_markup (pap->self_scm (), properties, number);
+      SCM snum = Text_interface::interpret_markup (pap->self_scm (), properties, number);
       num = *unsmob_stencil (snum);
       num.align_to (X_AXIS, CENTER);
       num.translate_axis (w/2, X_AXIS);
index 22abe4babc5c254d2ff8331234a2cd988f8d28e7..94b331bc1b50cfd3bff09c37ea071f72f493f6bd 100644 (file)
@@ -100,7 +100,7 @@ Volta_bracket_interface::print (SCM smob)
     {
       SCM text = me->get_property ("text");
       SCM properties = me->get_property_alist_chain (SCM_EOL);
-      SCM snum  = Text_item::interpret_markup (paper->self_scm (), properties, text);
+      SCM snum  = Text_interface::interpret_markup (paper->self_scm (), properties, text);
       Stencil num = *unsmob_stencil (snum);
 
       mol.add_at_edge (X_AXIS, LEFT, num, - num.extent (X_AXIS).length ()
index 74a018010b3e991d7e985fed142f06da608f5297..454d05181673523aa31c5e685d1e4aad35f15af5 100644 (file)
     
     (BarNumber
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (breakable . #t)
        (break-visibility . ,begin-of-line-visible)
        (padding . 1.0)
 
     (BassFigure
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (direction . 1)
        (font-family . number)
                        (first-note . (fixed-space . 1.0)) ;huh? 
                        (right-edge . (extra-space . 0.1))
                        ))
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (text . ,(make-musicglyph-markup "scripts-rcomma"))
        (Y-offset-callbacks . (,Breathing_sign::offset_callback))
        (break-visibility . ,begin-of-line-invisible)
 
     (ChordName
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (after-line-breaking-callback . ,Chord_name::after_line_breaking)
        (word-space . 0.0)
        (font-family . sans)
     (DynamicText
      . (
        (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
                               ,Self_alignment_interface::centered_on_parent))
        (self-alignment-X . 0)
 
     (Fingering
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
 
        ; sync with TextScript (?)
        (padding . 0.5)
                        ))
 
        (self-alignment-Y . 0)
-       (print-function . ,Text_item::print)            
+       (print-function . ,Text_interface::print)               
        (break-align-symbol . instrument-name)
        (break-visibility . ,begin-of-line-visible)
        (baseline-skip . 2)
        (space-alist . ((left-edge . (extra-space . 1.0))
                        ))
        (break-align-symbol . instrument-name)
-       (print-function . ,Text_item::print)            
+       (print-function . ,Text_interface::print)               
        (break-align-symbol . clef)
        (break-visibility . ,begin-of-line-visible)
        (baseline-skip . 2)
        ))
 
     (LyricText
-     . ((print-function . ,Text_item::print)
+     . ((print-function . ,Text_interface::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
        (self-alignment-X . 0)
        (word-space . 0.6)
 
     (RehearsalMark
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (after-line-breaking-callback . ,shift-right-at-line-begin)
        ))
      (MetronomeMark
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
        (direction . 1)
        (padding . 0.8)
     
     (MultiMeasureRestNumber
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
                               ,Self_alignment_interface::centered_on_other_axis_parent))
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        ))
     (MultiMeasureRestText
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
                               ,Self_alignment_interface::centered_on_other_axis_parent))
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
 
     (NoteName
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (meta . ((interfaces . (note-name-interface
                                text-interface font-interface item-interface ))))
        ))
        (break-visibility . ,begin-of-line-visible)
        (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
 
        ;; no Y dimensions, because of lyrics under tenor clef.
        (Y-extent . (0 . 0))
        ))
 
     (StanzaNumber
-     . ((print-function . ,Text_item::print)           
+     . ((print-function . ,Text_interface::print)              
        (font-series . bold)
        (padding . 1.0)
        (X-offset-callbacks . (,Side_position_interface::aligned_side))
 
     (SostenutoPedal
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (direction . 1)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (no-spacing-rods . #t)
 
     (TextScript
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (no-spacing-rods . #t)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (direction . -1)
        ))
     (CombineTextScript
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (no-spacing-rods . #t)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
     (TabNoteHead
      . (
        (style . default)
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
        (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
        (stem-attachment-function . ,tablature-stem-attachment-function)
     (TimeSignature
      . (
        (print-function . ,Time_signature::print)
-;      (print-function . ,Text_item::print)    
+;      (print-function . ,Text_interface::print)       
        (break-align-symbol . time-signature)
        (break-visibility . ,all-visible)
        (space-alist . (
 
     (UnaCordaPedal
      . (
-       (print-function . ,Text_item::print)
+       (print-function . ,Text_interface::print)
        (font-shape . italic)
        (no-spacing-rods . #t)
        (self-alignment-X . 0)
index efae9192a8a83d2093abe01ccd0df5674a10fec5..cf55fb61abffef788b19dd1aa4786b29c34f4936 100644 (file)
@@ -39,7 +39,7 @@
 (def-markup-command (encoded-simple paper props sym str) (symbol? string?)
   "A text string, encoded with encoding @var{sym}. See
 @usermanref{Text encoding} for more information."
-  (Text_item::interpret_string paper
+  (Text_interface::interpret_string paper
                               props sym str))
 
 
@@ -622,7 +622,7 @@ around the markup."
   
   "Create a box of the same height as the space in the current font."
   
-  (let ((m (Text_item::interpret_markup paper props " ")))
+  (let ((m (Text_interface::interpret_markup paper props " ")))
     (ly:stencil-set-extent! m X '(1000 . -1000))
     m))
 
@@ -651,7 +651,7 @@ around the markup."
    "Make a markup letter for @var{num}.  The letters start with A to Z
  (skipping I), and continues with double letters."
  
-   (Text_item::interpret_markup paper props (number->markletter-string num)))
+   (Text_interface::interpret_markup paper props (number->markletter-string num)))
 
 
 
index 44067bae691b54d631a47d045312bbcbe6fed507..6eb87cf7ae19a30f17de0cb66cca89bb7e853100 100644 (file)
@@ -406,8 +406,8 @@ Also set markup-signature and markup-keyword object properties."
       (make-line-markup (list-insert-separator markups sep))
       empty-markup))
 
-(define-public brew-new-markup-stencil Text_item::print)
-(define-public interpret-markup Text_item::interpret_markup)
+(define-public brew-new-markup-stencil Text_interface::print)
+(define-public interpret-markup Text_interface::interpret_markup)
 (define-public (prepend-alist-chain key val chain)
   (cons (acons key val (car chain)) (cdr chain)))
 
index 1c33c06ba37e1431cffc71f9870d2c57a96dbb04..974cf6fc9e68ed0574c2b0d1bc368efbcf2d3965 100644 (file)
      Sustain_pedal::print
      System_start_delimiter::after_line_breaking
      System_start_delimiter::print
-     Text_item::print
+     Text_interface::print
      Text_spanner::print
      Tie::print
      Tie_column::after_line_breaking
index f24a79bd7d9c0aa247067d44accc75da8eebb234..8260618457226e010e5443bbfb92be8f3358e36d 100644 (file)
@@ -2212,7 +2212,8 @@ def conv (str):
        str = re.sub (r'Text_item', 'Text_interface', str)
        return str
 
-conversions.append (((2, 3, 18), conv,
+conversions.append (((2, 3, 18),
+                    conv,
                     '''Text_item -> Text_interface''' )
 
 ################################