]> git.donarmstrong.com Git - lilypond.git/commitdiff
cleanup. Separate into internal
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 11 Feb 2004 01:22:21 +0000 (01:22 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 11 Feb 2004 01:22:21 +0000 (01:22 +0000)
and user properties.

102 files changed:
ChangeLog
input/ascii-art/as-email.ly
input/mutopia/J.S.Bach/baerenreiter-sarabande.ly
input/mutopia/R.Schumann/romanze-op28-2.ly
input/regression/apply-output.ly
input/regression/arpeggio-bracket.ly
input/regression/balloon.ly
input/regression/molecule-hacking.ly
input/regression/spacing-folded-clef2.ly
input/regression/system-extents.ly
input/test/bar-number-regular-interval.ly
input/test/boxed-molecule.ly
input/test/embedded-postscript.ly
input/test/time-signature-double.ly
lily/accidental.cc
lily/ambitus.cc
lily/arpeggio.cc
lily/balloon.cc
lily/bar-line.cc
lily/beam.cc
lily/clef.cc
lily/cluster.cc
lily/coherent-ligature-engraver.cc
lily/custos.cc
lily/dots.cc
lily/grob.cc
lily/hairpin.cc
lily/horizontal-bracket.cc
lily/include/accidental-interface.hh
lily/include/ambitus.hh
lily/include/arpeggio.hh
lily/include/bar-line.hh
lily/include/bar.hh
lily/include/beam.hh
lily/include/breathing-sign.hh
lily/include/clef.hh
lily/include/cluster.hh
lily/include/custos.hh
lily/include/dots.hh
lily/include/hairpin.hh
lily/include/line-spanner.hh
lily/include/lyric-extender.hh
lily/include/lyric-hyphen.hh
lily/include/measure-grouping-spanner.hh
lily/include/mensural-ligature.hh
lily/include/molecule.hh
lily/include/multi-measure-rest.hh
lily/include/note-head.hh
lily/include/paper-column.hh
lily/include/rest.hh
lily/include/script.hh
lily/include/slur.hh
lily/include/span-bar.hh
lily/include/staff-symbol.hh
lily/include/stem-tremolo.hh
lily/include/stem.hh
lily/include/system-start-delimiter.hh
lily/include/text-item.hh
lily/include/text-spanner.hh
lily/include/tie.hh
lily/include/time-signature.hh
lily/include/tuplet-bracket.hh
lily/include/vaticana-ligature.hh
lily/include/volta-bracket.hh
lily/item.cc
lily/key-signature-interface.cc
lily/ligature-engraver.cc
lily/line-spanner.cc
lily/lyric-extender.cc
lily/lyric-hyphen.cc
lily/measure-grouping-spanner.cc
lily/mensural-ligature.cc
lily/multi-measure-rest.cc
lily/note-head.cc
lily/ottava-bracket.cc
lily/paper-column.cc
lily/piano-pedal-bracket.cc
lily/rest.cc
lily/script.cc
lily/slur.cc
lily/span-arpeggio-engraver.cc
lily/span-bar.cc
lily/staff-symbol.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/sustain-pedal.cc
lily/system-start-delimiter.cc
lily/text-item.cc
lily/text-spanner.cc
lily/tie.cc
lily/time-signature.cc
lily/tuplet-bracket.cc
lily/vaticana-ligature.cc
lily/volta-bracket.cc
ly/engraver-init.ly
ly/gregorian-init.ly
ly/property-init.ly
scm/define-grob-properties.scm
scm/define-grobs.scm
scm/music-functions.scm
scm/output-lib.scm
scripts/convert-ly.py

index 3b951a4dcca91d9b8a6506cbc89871d3cef0d39b..104a33af2c51d117c7073c325e9d8d84e495be98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-02-11  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/*: rename brew_molecule -> print , molecule-callback -> print-function
+
        * scm/define-grob-properties.scm: cleanup. Separate into internal
        and user properties.
 
index cc6cb7d45116c4834bd24001478dc366987c0989..89968979625373a3fbcf4e1e9f5e598ccfa95148 100644 (file)
@@ -1,5 +1,5 @@
 #(ly:set-option 'old-relative)
-\version "2.1.11"
+\version "2.1.21"
 % ASCII Art output
 %
 % Process as:
@@ -21,7 +21,7 @@
     raggedright = ##t
     \translator {
       \StaffContext
-      StaffSymbol \override #'molecule-callback = #(lambda (x) '())
+      StaffSymbol \override #'print-function = #(lambda (x) '())
     }
   }
 }
index 658588d7ea3cb2411dec3af8dc4b8303dc03484c..a32f548f744a9ef37234b1bcfddb7b996c326f67 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.19"
+\version "2.1.21"
 
 % #(ly:set-point-and-click 'line-column)
 
@@ -168,7 +168,7 @@ baerPaper = \paper {
     interscoreline=4.0\mm
     \translator {
             \ScoreContext
-%           System \override #'molecule-callback = #box-grob-molecule
+%           System \override #'print-function = #box-grob-molecule
     }
 }
 
index 41f1651b75b9e7a57905cadc54de89fa21b13a53..2d32473ee1cd217757c266c8235bc29ed2ed6fee 100644 (file)
@@ -4,7 +4,7 @@
 \include "deutsch.ly"
 
 #(set-global-staff-size 16)
-\version "2.1.13"
+\version "2.1.21"
 
 \header {
   title = "Romanzen"
@@ -241,7 +241,7 @@ leftb = \notes \transpose c cis {
     \pianoCautionaries
     \property PianoStaff.NoteCollision \override #'merge-differently-dotted = ##t
     \property PianoStaff.connectArpeggios = ##t
-    \property PianoStaff.Arpeggio \override #'molecule-callback = \arpeggioBracket
+    \property PianoStaff.Arpeggio \override #'print-function = \arpeggioBracket
 
     \property PianoStaff.InstrumentName \set #'font-size = #6
     \property PianoStaff.InstrumentName \set #'font-shape   = #'italic
index f2dd8f2627101913e0182b2e7f1c5152a20f431d..f2458f2c13bd3c20cf3a7004e011f0bad1199684 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.7
+\version "2.1.21
 \header {
 
 texidoc = "The @code{\applyoutput} expression is the most flexible way to
@@ -20,7 +20,7 @@ position.
   (if (and (memq 'note-head-interface ifs)
           (memq sp '(-2 -3 -5)))
       (begin
-       (ly:set-grob-property! gr 'molecule-callback brew-new-markup-molecule)
+       (ly:set-grob-property! gr 'print-function brew-new-markup-molecule)
        (ly:set-grob-property! gr 'font-family 'roman)
        (ly:set-grob-property!
         gr 'text
index b13faa8d3f2cd169ab441b5093b9805ca384c008..d5fcc2624f75f992e10a80988819bc623bb7184f 100644 (file)
@@ -1,6 +1,6 @@
 
 
-\version "2.1.7"
+\version "2.1.21"
 \header{
 texidoc="
 A square bracket on the left indicates that the player should not
@@ -10,7 +10,7 @@ arpeggiate the chord.
 
 \score{
      \notes\relative c''{
-        \property Staff.Arpeggio \override #'molecule-callback = \arpeggioBracket
+        \property Staff.Arpeggio \override #'print-function = \arpeggioBracket
         
         <fis,  d a >\arpeggio
         }
index a3222a92b504aa9537fc9d25526f9f3c134ae044..6cf4acc561e767e4f4bde2a7121dec24bbf4b3f8 100644 (file)
@@ -3,7 +3,7 @@
     texidoc = "With balloon texts, objects in the output can be marked,
 with lines and explanatory text added."
     }
-\version "2.1.11"
+\version "2.1.21"
 
 \score  {
  \notes {
@@ -11,7 +11,7 @@ with lines and explanatory text added."
    \relative c'  {
 
        %% by hand:
-       \once\property Voice.Stem \set #'molecule-callback = #Balloon_interface::brew_molecule
+       \once\property Voice.Stem \set #'print-function = #Balloon_interface::brew_molecule
        \once\property Voice.Stem \set #'balloon-original-callback = #Stem::brew_molecule
        \once\property Voice.Stem \set #'balloon-text = #"I'm a stem"
        \once\property Voice.Stem \set #'balloon-text-offset = #'(3 . 4)
index 21d3077b5df4ee2d3157ef878b43e1e38231a69c..6b865e24ca226b9bb822ea3aeb0f5d4668a0f472 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.7"
+\version "2.1.21"
 
 \header { texidoc=" You can write molecule callbacks in Scheme, thus
 providing custom glyphs for notation elements.  A simple example is
@@ -16,7 +16,7 @@ parens are also not seen by accidentals.
    "Construct a function that will do CALLBACK and add parentheses.
 Example usage:
 
-  \\property Voice.NoteHead \\override #'molecule-callback
+  \\property Voice.NoteHead \\override #'print-function
                      =
                      #(parenthesize-callback Note_head::brew_molecule)
                    
@@ -59,12 +59,12 @@ GROB.  The dimensions of the molecule is not affected.
 \score {
        \notes \relative c' { c4 e
 
-                   \property Voice.NoteHead \override #'molecule-callback
+                   \property Voice.NoteHead \override #'print-function
                      =
                      #(parenthesize-callback Note_head::brew_molecule)
                    g bes
-                   \property Voice.NoteHead \revert #'molecule-callback
-                   \property Voice.Beam \override #'molecule-callback
+                   \property Voice.NoteHead \revert #'print-function
+                   \property Voice.Beam \override #'print-function
                      =
                      #(parenthesize-callback Beam::brew_molecule)
 
index 83695aed4d3cc66507355a34307f8207a5a82cfa..2c7c1a5e602f5fd5fb4a4367cfe1b7e724c84862 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.21"
 \header {
 
 texidoc = "A clef can be folded below notes in a different staff, if
@@ -14,8 +14,8 @@ show where columns are in the score."
        \paper { raggedright = ##t
 
        \translator { \ScoreContext
-         NonMusicalPaperColumn \override #'molecule-callback = #Paper_column::brew_molecule
-         PaperColumn \override #'molecule-callback = #Paper_column::brew_molecule        
+         NonMusicalPaperColumn \override #'print-function = #Paper_column::brew_molecule
+         PaperColumn \override #'print-function = #Paper_column::brew_molecule   
          NonMusicalPaperColumn \override #'font-family = #'roman
          PaperColumn \override #'font-family = #'roman   
 
index 86ef3e34c52a1139383a07277a8aad27088186cb..dc72137612e3713802ae4aca92ac0afae90a7303 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.21"
 \header {
 
     texidoc = "LilyPond correctly determines the size of every
@@ -16,7 +16,7 @@
     \paper { 
         \translator {
             \ScoreContext
-            System \override #'molecule-callback = #box-grob-molecule
+            System \override #'print-function = #box-grob-molecule
             }
     }
 }
index 17fd7ef0ce212cc26625e6f2b8405829c6050cfc..61b7da3e7b03149692928215aa64b7969e3566f9 100644 (file)
@@ -5,13 +5,13 @@ Bar numbers can also be printed at regular intervals.
 
 " }
 
-\version "2.1.7"
+\version "2.1.21"
 
 \score {
     \context Staff \notes \transpose  c c' {
        \property Score.BarNumber \override #'break-visibility = #end-of-line-invisible
        \property Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
-       \property Score.BarNumber \override #'molecule-callback =
+       \property Score.BarNumber \override #'print-function =
        #(make-molecule-boxer 0.1 0.25 0.25 Text_item::brew_molecule)
        \property Score.BarNumber \override #'font-size = #2
        
index 9f63ab607d8fdef8a458f766fdfe67d7aed58f76..bfafd7746a17a2c5efbc2ef810e75e47a9e9575c 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.7"
+\version "2.1.21"
 \header {
 texidoc = "@cindex Boxed Molecule
 You can override the molecule callback to draw a box around
@@ -8,18 +8,18 @@ arbitrary grobs. " }
 
  \score { \notes \relative c''  {
 
- \property Voice.TextScript \override #'molecule-callback =
+ \property Voice.TextScript \override #'print-function =
    #(make-molecule-boxer 0.1 0.3 0.2 brew-new-markup-molecule)
 
    c'4^"foo"
 
-\property Voice.Stem \override #'molecule-callback =
+\property Voice.Stem \override #'print-function =
    #(make-molecule-boxer 0.05 0.25 0.25 Stem::brew_molecule)
 
-\property Score.RehearsalMark \override #'molecule-callback =
+\property Score.RehearsalMark \override #'print-function =
    #(make-molecule-boxer 0.15 0.3 0.3 brew-new-markup-molecule)
       c8
-\property Voice.Stem \revert #'molecule-callback
+\property Voice.Stem \revert #'print-function
 
       c4. c4 \mark "F" c1 
    }
index b64c887993bcfb3a22b76b6bd1fc9a9a891c79e6..87391095313c194e1f874fd8ebf6c3a7384a2060 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.7"
+\version "2.1.21"
 \header {
   texidoc = "@cindex Embedded Postscript
 By inserting the @TeX{} command \embeddedps, you can
@@ -10,7 +10,7 @@ insert postscript directly into the output.
 
 
 %
-%TODO: make molecule-callback to do this. 
+%TODO: make print-function to do this. 
 % 
 
 \score {
index 715669be18a1b9f2cee66290760a9219e881d01b..65beee7e9dddd68da6198745078d44c45e0380be 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.7"
+\version "2.1.21"
 
 \header { texidoc= "
 
@@ -23,7 +23,7 @@ tsMarkup =
 
 \score  { \notes \relative c'
          {
-          \property Staff.TimeSignature \override #'molecule-callback = #Text_item::brew_molecule
+          \property Staff.TimeSignature \override #'print-function = #Text_item::brew_molecule
           \property Staff.TimeSignature \override #'text = #tsMarkup
           
           
index 7a89832cbf8f9db91ab580b1146c73302bbea7c0..dd5634d5d9ff28401d3c11dccaa05827516ad5ce 100644 (file)
@@ -158,9 +158,9 @@ Accidental_interface::get_fontcharname (String style, int alteration)
   return style + to_string (alteration);
 }
 
-MAKE_SCHEME_CALLBACK (Accidental_interface,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Accidental_interface,print,1);
 SCM
-Accidental_interface::brew_molecule (SCM smob)
+Accidental_interface::print (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
   bool smaller = false;
index 8fe9770d1c8c3c68fa10ff6f23457bfb33412e9c..9a9e3c6649553d876fb0a2c1f202e9773b9b2871 100644 (file)
@@ -125,9 +125,9 @@ add_accidentals (Item *me, Molecule *head, int num_acc,
     }
 }
 
-MAKE_SCHEME_CALLBACK (Ambitus,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Ambitus,print,1);
 SCM
-Ambitus::brew_molecule (SCM smob)
+Ambitus::print (SCM smob)
 {
   Item *me = (Item *)unsmob_grob (smob);
   Molecule molecule = Molecule ();
index 57373bbe2299136027f6dc281967d6695d1751b2..ee0c7ceab9ca71e6e66052bb47887153fadbd7e0 100644 (file)
@@ -18,9 +18,9 @@
 #include "lookup.hh"
 
 
-MAKE_SCHEME_CALLBACK (Arpeggio, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Arpeggio, print, 1);
 SCM 
-Arpeggio::brew_molecule (SCM smob) 
+Arpeggio::print (SCM smob) 
 {
   Grob *me = unsmob_grob (smob);
   
@@ -135,7 +135,7 @@ Arpeggio::brew_chord_bracket (SCM smob)
 
 
 /*
-  We have to do a callback, because brew_molecule () triggers a
+  We have to do a callback, because print () triggers a
   vertical alignment if it is cross-staff.
   This callback also adds padding.
 */
index 30eb59e7c0f153c3585da093811e718d07fda465..9bb11b2017f8f70c4bd812b2e78e3b9d8fc42369 100644 (file)
@@ -16,13 +16,13 @@ struct Balloon_interface
 {
   
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 };
 
-MAKE_SCHEME_CALLBACK (Balloon_interface, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Balloon_interface, print, 1);
 SCM
-Balloon_interface::brew_molecule (SCM smob) 
+Balloon_interface::print (SCM smob) 
 {
   Grob *me= unsmob_grob (smob);
 
index cd42feb77838fc12c7bb71bd01d23af7c9cfef2d..6bf140efec83e154dae024351a80341ec7b99271 100644 (file)
 #include "item.hh"
 #include "staff-symbol-referencer.hh"
 
-MAKE_SCHEME_CALLBACK (Bar_line,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Bar_line,print,1);
 
 SCM 
-Bar_line::brew_molecule (SCM smob) 
+Bar_line::print (SCM smob) 
 {
   Grob * me = unsmob_grob (smob);
 
@@ -165,7 +165,7 @@ Bar_line::before_line_breaking (SCM smob)
   
   if (!gh_string_p (g))
     {
-      me->set_grob_property ("molecule-callback", SCM_EOL);
+      me->set_grob_property ("print-function", SCM_EOL);
       me->set_extent (SCM_EOL, X_AXIS);
       // leave y_extent for spanbar? 
     }
index 775e8f536be651293edab76c25715c7ce59e4a63..0e2553fc80be9226de6b91574b3f207658df4a35 100644 (file)
@@ -302,9 +302,9 @@ Beam::connect_beams (Grob *me)
 /*
   TODO: should not make beams per stem, but per Y-level.
  */
-MAKE_SCHEME_CALLBACK (Beam, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Beam, print, 1);
 SCM
-Beam::brew_molecule (SCM grob)
+Beam::print (SCM grob)
 {
   Grob *me = unsmob_grob (grob);
   position_beam (me);
index d598486a036e2e5078ea8aa8c7e0006287a97c4e..9a493ddeef7dcb6be0cfef53667c57c2fdb506b4 100644 (file)
@@ -47,9 +47,9 @@ Clef::before_line_breaking (SCM smob)
 
 
 
-MAKE_SCHEME_CALLBACK (Clef,brew_molecule,1)
+MAKE_SCHEME_CALLBACK (Clef,print,1)
 SCM
-Clef::brew_molecule (SCM smob) 
+Clef::print (SCM smob) 
 {
   Grob *me = unsmob_grob (smob);
   SCM glyph_scm = me->get_grob_property ("glyph-name");
index 8a1c1062bfe7fa82d91bd38f88623f673f2a212a..dda873e6c15a5bb867cadfea28caf5b70b93db1b 100644 (file)
@@ -125,16 +125,16 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
   return out;
 }
 
-MAKE_SCHEME_CALLBACK (Cluster,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Cluster,print,1);
 SCM
-Cluster::brew_molecule (SCM smob)
+Cluster::print (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
 
   Spanner *spanner = dynamic_cast<Spanner*> (me);
   if (!spanner)
     {
-      me->programming_error ("Cluster::brew_molecule(): not a spanner");
+      me->programming_error ("Cluster::print(): not a spanner");
       return SCM_EOL;
     }
 
index a7e8247d6713a9bac016c9338f9f1bfcecae3a3a..df911f947e810d092341b904443f0415decdcae7 100644 (file)
@@ -60,7 +60,7 @@
  * of the ligature (to preemptively avoid collision with adjacent
  * notes); or maybe just additionally create a
  * mensural/vaticana/whatever-ligature grob (e.g. via
- * Mensural_ligature::brew_molecule(SCM)) that just consists of a
+ * Mensural_ligature::print(SCM)) that just consists of a
  * bounding box around all primitives of the ligature.
  *
  * TODO: Maybe move functions fold_up_primitives() and
index 01bade5aef6b7d448a78ce813043ed78e2aac89f..8024fa946541e59d257712466d73a67f6fc4f64f 100644 (file)
@@ -26,9 +26,9 @@
 #include "font-interface.hh"
 #include "math.h" // rint
 
-MAKE_SCHEME_CALLBACK (Custos,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Custos,print,1);
 SCM
-Custos::brew_molecule (SCM smob)
+Custos::print (SCM smob)
 {
   Item *me = (Item *)unsmob_grob (smob);
 
index 42c6b56922897448d7f70bf76a594f2bdb18c4fc..2bb9dfdf7a15407b99d099597f7750a28a256991 100644 (file)
@@ -15,9 +15,9 @@
 #include "staff-symbol-referencer.hh"
 #include "directional-element-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Dots,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Dots,print,1);
 SCM  
-Dots::brew_molecule (SCM d)
+Dots::print (SCM d)
 {
   Grob *sc = unsmob_grob (d);
   Molecule mol;
index ff54ff54760f83829c5c41d450e641cf034bacf0..59c4c4c99799cb3f9b67c400a58d3477a9b92653 100644 (file)
@@ -109,7 +109,7 @@ Grob::Grob (SCM basicprops)
       */
       if (cb != SCM_BOOL_F
          && !gh_procedure_p (cb) && !gh_pair_p (cb)
-         && gh_procedure_p (get_grob_property ("molecule-callback"))
+         && gh_procedure_p (get_grob_property ("print-function"))
          )
        cb = molecule_extent_proc;
     
@@ -243,7 +243,7 @@ Grob::get_molecule ()  const
 SCM
 Grob::get_uncached_molecule ()const
 {
-  SCM proc = get_grob_property ("molecule-callback");
+  SCM proc = get_grob_property ("print-function");
 
   SCM  mol = SCM_EOL;
   if (gh_procedure_p (proc)) 
@@ -848,7 +848,7 @@ ADD_INTERFACE (Grob, "grob-interface",
 "anything.\n"
 ,
   "X-offset-callbacks Y-offset-callbacks X-extent-callback molecule cause "
-"Y-extent-callback molecule-callback extra-offset spacing-procedure "
+"Y-extent-callback print-function extra-offset spacing-procedure "
 "staff-symbol interfaces dependencies X-extent Y-extent extra-X-extent "
 "meta layer before-line-breaking-callback "
 "after-line-breaking-callback extra-Y-extent minimum-X-extent "
index 00d315f4099f39110e7548eb8c8a3e57485ce5d3..5e96a3854f6e927ae4155d04e4c335963639ed43 100644 (file)
 #include "paper-column.hh"
 #include "lookup.hh"
 
-MAKE_SCHEME_CALLBACK (Hairpin, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Hairpin, print, 1);
 
 SCM
-Hairpin::brew_molecule (SCM smob) 
+Hairpin::print (SCM smob) 
 {
   Grob *me= unsmob_grob (smob);
   Spanner *spanner = dynamic_cast<Spanner*> (me);
@@ -36,7 +36,7 @@ Hairpin::brew_molecule (SCM smob)
   Direction grow_dir = to_dir (s);
 
 
-  /* Ugh, must be same as Text_spanner::brew_molecule.  */
+  /* Ugh, must be same as Text_spanner::print.  */
 
   /*
     Ugh. property name is not general.
index b2f5942d2f5e8ab414f76ec66734690465d3370b..5c5039a5d18f357ba01bd7f02e7857fd7305bae4 100644 (file)
@@ -16,7 +16,7 @@
 
 struct Horizontal_bracket
 {
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 };
 
@@ -30,10 +30,10 @@ struct Horizontal_bracket
 
 */
 
-MAKE_SCHEME_CALLBACK(Horizontal_bracket, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK(Horizontal_bracket, print, 1);
 
 SCM
-Horizontal_bracket::brew_molecule (SCM smob)
+Horizontal_bracket::print (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
   Spanner *sp = dynamic_cast<Spanner*> (me);
index ebf32be255502e8946decf054e50c2c97b462259..b0cb49b5a5d6996d1d6c4061027eb2bebc9a3258 100644 (file)
@@ -15,7 +15,7 @@ source file of the GNU LilyPond music typesetter
 class Accidental_interface
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));  
   static bool has_interface (Grob*);
   
index fe203b2f498dbe62f87e6b7a578b1c852ca503c8..2ebd67173d49c450204ee6bf4e1644326b5ee014 100644 (file)
@@ -13,7 +13,7 @@
 
 struct Ambitus
 {
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM smob));
+  DECLARE_SCHEME_CALLBACK (print, (SCM smob));
   static bool has_interface (Grob*);
 };
 
index 6c0cea0321c9df007cff8b5993ed413b17d72570..f2a65a77257cdb6276678aba7be9f97f701efdce 100644 (file)
@@ -15,7 +15,7 @@
 class Arpeggio
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (brew_chord_bracket, (SCM));
   DECLARE_SCHEME_CALLBACK (width_callback, (SCM,SCM));
   static bool has_interface (Grob*);
index 3c2dc1d47989ec20f0515b612271ef565788bb83..60dcb51cd06076ed02e202a63f926a67680ff913 100644 (file)
@@ -21,7 +21,7 @@ public:
   static Molecule compound_barline (Grob*, String, Real height) ;
   static Molecule simple_barline (Grob*, Real wid, Real height) ;      
   DECLARE_SCHEME_CALLBACK (get_staff_bar_size, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
 };
 #endif // BAR_HH
index 204ef7e5d68f759e5e774fb820473a2a673189b4..641ae51d1b7c0f75c80da529079df33eb2421d75 100644 (file)
@@ -21,7 +21,7 @@ public:
   static Molecule compound_barline (Grob*, String, Real height) ;
   static Molecule simple_barline (Grob*, Real wid, Real height) ;      
   DECLARE_SCHEME_CALLBACK (get_staff_bar_size, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
 };
 #endif // BAR_HH
index 64c967dd51265671adb95635efc464ccfff1a3ed..297fd9c1be994a36f6a447967e2730f7cf184ea5 100644 (file)
@@ -35,7 +35,7 @@ public:
 
   static void connect_beams (Grob*me);
   DECLARE_SCHEME_CALLBACK (space_function, (SCM, SCM));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
   
index 1cf077c60881fe21716d87926b948e3df3a33c4e..75a035437b2b7ff149d524a7321b830f1d95a8ed 100644 (file)
@@ -19,7 +19,7 @@
 class Breathing_sign
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (railtracks, (SCM ));
   DECLARE_SCHEME_CALLBACK (divisio_minima, (SCM ));
   DECLARE_SCHEME_CALLBACK (divisio_maior, (SCM ));
index 387284374b4770c1dcc742f9f8920400ccd5d113..b2c621c0753c59392cfa8a9e1e5df0d5412688b9 100644 (file)
@@ -15,7 +15,7 @@
 struct Clef 
 {
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob*);
 };
 
index 704a379d63a5626c9cf826cca1d2e0e8a16eb195..dd3639e95b5b3dbbec59fecb4f7b92462d5eab2e 100644 (file)
@@ -15,7 +15,7 @@
 class Cluster
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   //  DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
   static bool has_interface (Grob *);
   // DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
index 1698839b769e3f88ccc3dc32b9526dfbbb078f87..fb5e52e86b14c80126420181c8ddf7f5c8610c37 100644 (file)
@@ -13,7 +13,7 @@
 
 struct Custos
 {
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob*);
 
 private:
index d58e068a8cedce7d79905fd8848eab3da7112f1d..0e123550f0037e359b01c59d8f3cd3c47a13072e 100644 (file)
@@ -18,7 +18,7 @@
 class Dots
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   bool has_interface (Grob*);
 };
 
index b601af11f807068e52da87a69c2e809ac8472539..0daacc5fe5c11025b601cbcc297988f35f028193 100644 (file)
@@ -18,7 +18,7 @@
 struct Hairpin
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 };
 
index 9569e02aab4ad4610de6560054b95de4eb647d35..4dda796de4e7464bc6421bf397f0d8e7533dea1a 100644 (file)
@@ -15,7 +15,7 @@
 class Line_spanner
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK(after_line_breaking, (SCM));  
   static Molecule line_molecule (Grob* me, Offset f, Offset t);
   static bool has_interface (Grob*);
index 135bc3b9c77fa77eb9b7f721bc82a9844be23ab1..eb8f60732a05d0651ba95d6c3f913d684f8414f3 100644 (file)
@@ -30,7 +30,7 @@ class Lyric_extender
 public:
   static bool is_visible (Grob*);
   static bool has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 
 #endif // EXTENDER_SPANNER_HH
index ce04811c91a2cdadc440d4dbf06cf3c601b8052d..0d247783dc7b53dd17fe4d37128fe1e8888965bd 100644 (file)
@@ -14,7 +14,7 @@ struct Hyphen_spanner
 public:
   DECLARE_SCHEME_CALLBACK(set_spacing_rods, (SCM));
   bool has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 
 #endif // HYPHEN_SPANNER_HH
index b2b9030c26ab53265c085b4f123682de7796395c..77d32288c3490c019e3acbcda830e3c8139478b0 100644 (file)
@@ -15,7 +15,7 @@ source file of the GNU LilyPond music typesetter
 class Measure_grouping
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
  
   static bool has_interface (Grob*);
 };
index 245845cf00efa994e8cdfb92633c054e2293e9d2..e38f6651e632f8ca710f47f3eddc6fd853761dd2 100644 (file)
@@ -33,7 +33,7 @@
 struct Mensural_ligature
 {
   DECLARE_SCHEME_CALLBACK (brew_ligature_primitive, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob*);
 };
 
index ddb3190f0a7ed5fd5f30b8e33d1150726c6114ea..78aace7bd3f72cd26a2bc876ec24641a6605a3f6 100644 (file)
@@ -83,7 +83,7 @@ public:
 DECLARE_UNSMOB(Molecule,molecule);
 SCM fontify_atom (Font_metric const*, SCM atom);
 
-Molecule create_molecule (SCM brew_molecule);
+Molecule create_molecule (SCM print);
 
 
 
index 7aeb7681e26b45ce7aa606731b6aa2a1f18bff2d..c3f6c751420c3879384765538e94e8e4304e7da6 100644 (file)
@@ -18,7 +18,7 @@ class Multi_measure_rest
 {
 public:
   static bool has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (percent, (SCM));
   static  void add_column (Grob*,Item*);
   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
index aa55ca4967557c94c6b5cbd5cf53e4d444e238bb..7c41206e52fabea928bf49503e229477c521b519 100644 (file)
@@ -20,7 +20,7 @@
 class Note_head 
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static Interval head_extent (Grob*, Axis);
   static Molecule brew_ledger_lines (Grob *me, int pos, int interspaces,
                                     Interval x_extent, Real, bool);
index 43be74ba7efd69e119de3afa83a4b8b9ee8c7651..7275af9fd94ef13000a3e4b29208541675225db7 100644 (file)
@@ -30,7 +30,7 @@ public:
 
   static int get_rank (Grob*);
 
-  DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK(print, (SCM));
   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM));
   
   Paper_column (SCM);
index 602aabcae6c9084f55d63565dcb9110a0791786b..3df7a120bdfcde5e5ac8a570501d13e82850329d 100644 (file)
@@ -20,6 +20,6 @@ public:
   static String glyph_name (Grob*, int, String); 
   static SCM brew_internal_molecule (SCM);
   DECLARE_SCHEME_CALLBACK (extent_callback, (SCM,SCM));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 #endif // REST_HH
index 8fc238a6a9a17915537d9fa7a00b2ef3da41c891..494e8977889b007cdb83cdb306150e5186eec0cd 100644 (file)
@@ -24,7 +24,7 @@ public:
   static Molecule get_molecule (Grob*,Direction d);
   
   static bool  has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
 };
 
index 97abc42e18a2df28e7adff83790ed13346c25095..476b960b92c19327f966542e2a9bd9ff3443e356 100644 (file)
@@ -15,7 +15,7 @@ class Slur
 {
 public:
   static void add_column (Grob *me, Grob *col);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static void set_interface (Grob*);
   static bool  has_interface (Grob*);
   static Array<Offset> get_encompass_offsets (Grob *me);
index bd9b1cdd30ac156716b05e0d7ebf4eb8e0ee3ff2..08316b5f33c657d0eef0c924e279338b94874da3 100644 (file)
@@ -29,7 +29,7 @@ public:
   static void evaluate_empty (Grob*);
   DECLARE_SCHEME_CALLBACK (width_callback, (SCM smob, SCM axis));
   DECLARE_SCHEME_CALLBACK (get_bar_size, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
   DECLARE_SCHEME_CALLBACK (center_on_spanned_callback, (SCM element, SCM axis));
 };
index dbcf63f5cb8be0c028d2cd35ea05377654f78fe7..875127f8235fe177427679931c5cad7efa4039da 100644 (file)
@@ -25,7 +25,7 @@ public:
     
   static int get_steps (Grob*) ;
   static int line_count (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob*);
   
 };
index a32adc257ab5884831cdd21a23d821f4ca5496d7..a0aa600f50641aa1f970ccf7068987418b7b54ea 100644 (file)
@@ -19,7 +19,7 @@ public:
   
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (dim_callback, (SCM smob, SCM axis));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (height, (SCM,SCM));
   static void set_stem (Grob*me, Grob *st);
   static Molecule raw_molecule (Grob*);
index 4518b2a848ad5e363c1094721e819887f133c3ee..02466710d8a0c0f74cbe9368d7c01f7cab946b66 100644 (file)
@@ -41,7 +41,7 @@ public:
   static bool has_interface (Grob *);
   static void set_spacing_hints (Grob *);
   
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (off_callback, (SCM element, SCM axis));
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
   DECLARE_SCHEME_CALLBACK (dim_callback, (SCM smob, SCM axis));
index f8a9df268ca30205b1171750c5415b29fba6192a..59e87f29e3370fd5cf5e34d6b3e29ac8adf1d0e2 100644 (file)
@@ -19,7 +19,7 @@
 class System_start_delimiter
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   
   
   static bool has_interface (Grob*);
index bfdfb009916681a2072859df6f08e5f2f792ad1b..e272303e4b78ad1d2a230dfeaf0260a756c52a5b 100644 (file)
@@ -18,7 +18,7 @@
 class Text_item
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (interpret_markup, (SCM, SCM, SCM));
   static bool has_interface (Grob*);
   static bool markup_p (SCM) ;
index 40c81d38a0c270539c69461901f8c3d96021a858..d355f68b98cc4a16fb801e26290b67cb51d5821c 100644 (file)
@@ -15,7 +15,7 @@
 class Text_spanner
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 private:
   static void setup_pedal_bracket(Spanner *s);
index 1fe8b121da144016b0b306b4aaf4bd73f2722db4..1f00f89efac4889d15553750979043f497f52ffc 100644 (file)
@@ -23,7 +23,7 @@ public:
   static void set_direction (Grob*);
   static Grob * head (Grob*,Direction) ;
   static Real get_position (Grob*) ;
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static Direction get_default_dir (Grob*) ;
   static SCM get_control_points (SCM);
   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
index 13791563af4ceb5171c6681e9803f901e60dca7f..2488c7566011f9272526b06d3d9e94cf8820a059 100644 (file)
@@ -22,7 +22,7 @@ struct Time_signature
   static bool has_interface (Grob*);
   static Molecule special_time_signature (Grob*,SCM,int,int) ;
   static Molecule numbered_time_signature (Grob*,int, int);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 #endif // METER_HH
 
index dc2b186527aac3912d10bff56bee168c88682393..0b372352016be7a7826cdabf792109a5335b67f6 100644 (file)
@@ -20,7 +20,7 @@
 class Tuplet_bracket
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob*);
 
   static void add_column (Grob*me,Item*);
index 72f78fe18dd482d71a75a9c206993d2fa714397d..333a64992ecfba38d3ad3813d41ddd467bd33022 100644 (file)
@@ -15,7 +15,7 @@
 struct Vaticana_ligature
 {
   DECLARE_SCHEME_CALLBACK (brew_ligature_primitive, (SCM ));
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static bool has_interface (Grob *);
 };
 
index 97b1a9a611e5d3c1025ec0e28649e551975bc83a..edf08b7def86ab1b83b8c0801cc876746b5a0c98 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
   volta-spanner.hh -- part of GNU LilyPond
 
@@ -15,7 +14,7 @@ class Volta_bracket_interface
 {
 public:
   static bool has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static void add_column (Grob*, Grob*col);
   static void add_bar (Grob*me, Item*bar);
 };
index 44964dc108c9d034d75fe559e2f66deeb84ec447..057155b52bbb0674b6db481449931a178c0ecd04 100644 (file)
@@ -168,7 +168,7 @@ Item::handle_prebroken_dependencies ()
          set_extent (SCM_EOL, Y_AXIS);
        }
       else if (trans)
-       set_grob_property ("molecule-callback", SCM_EOL);
+       set_grob_property ("print-function", SCM_EOL);
     }
 }
 
index 762b25e05b8fef6808456b25c680cfcc44dee145..123a6da6c5fdf6bb7a14af983edba8d3b44f51ff 100644 (file)
@@ -21,7 +21,7 @@
 
 struct Key_signature_interface
 {
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  DECLARE_SCHEME_CALLBACK (print, (SCM ));
 
   static bool has_interface (Grob*);
 };
@@ -94,9 +94,9 @@ alteration_pos  (SCM what, int alter, int c0p)
   TODO
   - space the `natural' signs wider
  */
-MAKE_SCHEME_CALLBACK (Key_signature_interface,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Key_signature_interface,print,1);
 SCM
-Key_signature_interface::brew_molecule (SCM smob)
+Key_signature_interface::print (SCM smob)
 {
   Grob*me =unsmob_grob (smob);
 
index 5d6d1a2a374be6978cfa7bf1a527e5b9eae60356..d2b2885ed47d453d6d2bea43851db1681bd7f734 100644 (file)
@@ -99,12 +99,12 @@ Ligature_engraver::create_ligature_spanner ()
  * This method should do something that comes close to the following
  * .ly snippet:
  *
- * \property Voice.NoteHead \override #'molecule-callback =
+ * \property Voice.NoteHead \override #'print-function =
  *     < value of #'ligature-primitive-callback of Voice.NoteHead >
  *
  * TODO: What we are doing here on the c++ level, should actually be
  * performed on the SCM level.  However, I do not know how to teach
- * lilypond to apply an \override and \revert on #'molecule-callback,
+ * lilypond to apply an \override and \revert on #'print-function,
  * whenever lily encounters a \[ and \] in an .ly file, respectively.
  * Also encounter, that lily should not crash if a user erronously
  * nests \[ and \].
@@ -112,7 +112,7 @@ Ligature_engraver::create_ligature_spanner ()
 void
 Ligature_engraver::override_molecule_callback ()
 {
-  SCM target_callback = ly_symbol2scm ("molecule-callback");
+  SCM target_callback = ly_symbol2scm ("print-function");
   SCM source_callback = ly_symbol2scm ("ligature-primitive-callback");
   SCM noteHeadProperties = updated_grob_properties (daddy_trans_, ly_symbol2scm ("NoteHead"));
   SCM value = ly_cdr (scm_sloppy_assq (source_callback, noteHeadProperties));
@@ -124,11 +124,11 @@ Ligature_engraver::override_molecule_callback ()
  * This method should do something that comes close to the following
  * .ly snippet:
  *
- * \property Voice.NoteHead \revert #'molecule-callback
+ * \property Voice.NoteHead \revert #'print-function
  *
  * TODO: What we are doing here on the c++ level, should actually be
  * performed on the SCM level.  However, I do not know how to teach
- * lilypond to apply an \override and \revert on #'molecule-callback,
+ * lilypond to apply an \override and \revert on #'print-function,
  * whenever lily encounters a \[ and \] in an .ly file, respectively.
  * Also encounter, that lily should not crash if a user erronously
  * nests \[ and \].
@@ -137,7 +137,7 @@ void
 Ligature_engraver::revert_molecule_callback ()
 {
   SCM symbol = ly_symbol2scm ("NoteHead");
-  SCM key = ly_symbol2scm ("molecule-callback");
+  SCM key = ly_symbol2scm ("print-function");
   execute_pushpop_property (daddy_trans_, symbol, key, SCM_UNDEFINED);
 }
 
@@ -270,7 +270,7 @@ Ligature_engraver::acknowledge_grob (Grob_info info)
       if (Note_head::has_interface (info.grob_))
        {
          primitives_.push (info);
-         info.grob_->set_grob_property ("molecule-callback",
+         info.grob_->set_grob_property ("print-function",
                                         brew_ligature_primitive_proc);
        }
       if (Rest::has_interface (info.grob_))
index c73fd28948185a5cd6f52e1da7674d3f1d92bd39..e7e59d525948f9fc7186aa8f3eff8dbceded1dcc 100644 (file)
@@ -84,7 +84,7 @@ Line_spanner::after_line_breaking (SCM  g)
       /*
        Can't do suicide, since this mucks up finding the trend.
        */
-      me->set_grob_property ("molecule-callback", SCM_EOL);
+      me->set_grob_property ("print-function", SCM_EOL);
       
     }
   return SCM_EOL;
@@ -172,9 +172,9 @@ line_spanner_common_parent (Grob *me)
 */
 
 
-MAKE_SCHEME_CALLBACK (Line_spanner, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Line_spanner, print, 1);
 SCM
-Line_spanner::brew_molecule (SCM smob) 
+Line_spanner::print (SCM smob) 
 {
   Spanner *me = dynamic_cast<Spanner*> (unsmob_grob (smob));
 
index c2f33dbc36d5cac03a843f53c3440ca314090ec0..40ee4b391c44d2919e6cff9a45af0a407ecd3da8 100644 (file)
@@ -31,9 +31,9 @@ Lyric_extender::is_visible (Grob *gr)
   return true;
 }
 
-MAKE_SCHEME_CALLBACK (Lyric_extender,brew_molecule,1)
+MAKE_SCHEME_CALLBACK (Lyric_extender,print,1)
 SCM 
-Lyric_extender::brew_molecule (SCM smob) 
+Lyric_extender::print (SCM smob) 
 {
   Spanner *me = unsmob_spanner (smob);
   Item *l = me->get_bound (LEFT);
index 6fdd1e4b62dcb7fbdaecb4f7024ee245d0c35540..f608ddc77f2c91c0f509aa79a26b9e2f35d52128 100644 (file)
@@ -18,9 +18,9 @@
 #include "lyric-hyphen.hh"
 #include "moment.hh"
 
-MAKE_SCHEME_CALLBACK (Hyphen_spanner,brew_molecule,1)
+MAKE_SCHEME_CALLBACK (Hyphen_spanner,print,1)
 SCM 
-Hyphen_spanner::brew_molecule (SCM smob)
+Hyphen_spanner::print (SCM smob)
 {
   Spanner * me = unsmob_spanner (smob);
   Drul_array<Item*> bounds (me->get_bound (LEFT),
index c4a98dde1b384429274709d338878c7d0e075ba9..780e77547b679e9bf759b8befd4fb33f7a9b26b6 100644 (file)
@@ -14,9 +14,9 @@
 #include "item.hh"
 #include "staff-symbol-referencer.hh"
 
-MAKE_SCHEME_CALLBACK (Measure_grouping, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Measure_grouping, print, 1);
 SCM 
-Measure_grouping::brew_molecule (SCM grob)
+Measure_grouping::print (SCM grob)
 {
   Spanner * me = dynamic_cast<Spanner*> (unsmob_grob (grob));
 
index 8eac3a53957aa05dcc57d015bc9e9d78e250bf9b..9d09027e14f3040548605ed87e4538d150d907ad 100644 (file)
@@ -221,9 +221,9 @@ Mensural_ligature::brew_ligature_primitive (SCM smob)
   return internal_brew_primitive (me, false).smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Mensural_ligature, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Mensural_ligature, print, 1);
 SCM
-Mensural_ligature::brew_molecule (SCM)
+Mensural_ligature::print (SCM)
 {
   return SCM_EOL;
 }
index 345123297ffd4e360701a5ba7d0a3f73f2707d91..36dbd2424122c15645b4160d80cc67f5701db352 100644 (file)
@@ -64,9 +64,9 @@ Multi_measure_rest::percent (SCM smob)
   return r.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Multi_measure_rest,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Multi_measure_rest,print,1);
 SCM
-Multi_measure_rest::brew_molecule (SCM smob) 
+Multi_measure_rest::print (SCM smob) 
 {
   Grob *me = unsmob_grob (smob);
   Spanner * sp = dynamic_cast<Spanner*> (me);
index 9fc325784851864ee5ff4c1c1e4751501e8e5a03..e620fdf7a42c277802a969cc33b4947fcb68898d 100644 (file)
@@ -119,7 +119,7 @@ Note_head::brew_ledger_lines (Grob *me,
 }
 
 Molecule
-internal_brew_molecule (Grob *me, bool with_ledgers)
+internal_print (Grob *me, bool with_ledgers)
 {
   SCM style  = me->get_grob_property ("style");
   if (!gh_symbol_p (style))
@@ -179,16 +179,16 @@ internal_brew_molecule (Grob *me, bool with_ledgers)
 }
 
 
-MAKE_SCHEME_CALLBACK (Note_head,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Note_head,print,1);
 SCM
-Note_head::brew_molecule (SCM smob)  
+Note_head::print (SCM smob)  
 {
   Grob *me = unsmob_grob (smob);
 
   /*
     ledgers don't take space. See top of file.
    */
-  return internal_brew_molecule (me, true).smobbed_copy ();
+  return internal_print (me, true).smobbed_copy ();
 }
 
 /*
@@ -200,10 +200,10 @@ Note_head::brew_molecule (SCM smob)
 Interval
 Note_head::head_extent (Grob *me, Axis a)
 {
-  SCM brewer = me->get_grob_property ("molecule-callback");
-  if (brewer == Note_head::brew_molecule_proc)
+  SCM brewer = me->get_grob_property ("print-function");
+  if (brewer == Note_head::print_proc)
     {
-      Molecule mol = internal_brew_molecule (me, false);
+      Molecule mol = internal_print (me, false);
   
       if (!mol.is_empty ())
        return mol.extent (a);
@@ -276,10 +276,10 @@ Note_head::brew_ez_molecule (SCM smob)
 Real
 Note_head::stem_attachment_coordinate (Grob *me, Axis a)
 {
-  SCM brewer = me->get_grob_property ("molecule-callback");
+  SCM brewer = me->get_grob_property ("print-function");
   Font_metric * fm  = Font_interface::get_default_font (me);
   
-  if (brewer == Note_head::brew_molecule_proc)
+  if (brewer == Note_head::print_proc)
     {
       SCM style  = me->get_grob_property ("style");
       if (!gh_symbol_p (style))
index d5b3dd56c01b3e1544c04d46668d9472ac304766..9adaded43ca4ca6d659f7407742d1636ae51cc8a 100644 (file)
@@ -24,7 +24,7 @@
 
 struct Ottava_bracket
 {
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 };
 
@@ -39,9 +39,9 @@ struct Ottava_bracket
 
 */
 
-MAKE_SCHEME_CALLBACK (Ottava_bracket, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Ottava_bracket, print, 1);
 SCM
-Ottava_bracket::brew_molecule (SCM smob)
+Ottava_bracket::print (SCM smob)
 {
   Spanner*me  = dynamic_cast<Spanner*> (unsmob_grob (smob));
   
index 64991915cc0420243285e1cb26d0e204d8b3416d..f6f081f54bf4f97f83c75b2a8165218b9c9a7961 100644 (file)
@@ -110,9 +110,9 @@ Paper_column::is_used (Grob*me)
   Print a vertical line and  the rank number, to aid debugging.  
  */
 
-MAKE_SCHEME_CALLBACK(Paper_column,brew_molecule,1);
+MAKE_SCHEME_CALLBACK(Paper_column,print,1);
 SCM
-Paper_column::brew_molecule (SCM p)
+Paper_column::print (SCM p)
 {
   Grob *me = unsmob_grob (p);
 
index 4cf832191c73e1d9f177c7daff89a837e264ee2f..957a79527492f633de8fb46b98e01ffc895e11a0 100644 (file)
@@ -14,14 +14,14 @@ source file of the GNU LilyPond music typesetter
 
 struct Piano_pedal_bracket
 {
-  DECLARE_SCHEME_CALLBACK(brew_molecule,(SCM));
+  DECLARE_SCHEME_CALLBACK(print,(SCM));
   static bool has_interface (Grob*);
 };
 
 
-MAKE_SCHEME_CALLBACK(Piano_pedal_bracket,brew_molecule,1);
+MAKE_SCHEME_CALLBACK(Piano_pedal_bracket,print,1);
 SCM
-Piano_pedal_bracket::brew_molecule (SCM smob)
+Piano_pedal_bracket::print (SCM smob)
 {
   Spanner *me = dynamic_cast<Spanner*> (unsmob_grob (smob));
   
index ea369d6a646e6b0744916abcbd05adf88d9b6d10..210e756814bbf7c9cdf8c215ac8142db71d60563 100644 (file)
@@ -111,7 +111,7 @@ Rest::glyph_name (Grob *me, int balltype, String style)
 }
 
 
-MAKE_SCHEME_CALLBACK (Rest,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Rest,print,1);
 
 SCM
 Rest::brew_internal_molecule (SCM smob)
@@ -143,7 +143,7 @@ Rest::brew_internal_molecule (SCM smob)
 }
 
 SCM 
-Rest::brew_molecule (SCM smob) 
+Rest::print (SCM smob) 
 {
   return brew_internal_molecule (smob);
 }
index 93fad876c6c6f3a38427a29c7845fc12675b2211..3e8a8148b74656c7792a094d09e3eaf14c2b2b93 100644 (file)
@@ -76,10 +76,10 @@ Script_interface::before_line_breaking (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (Script_interface,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Script_interface,print,1);
 
 SCM
-Script_interface::brew_molecule (SCM smob)
+Script_interface::print (SCM smob)
 {
   Grob *me= unsmob_grob (smob);
 
index 349f52cc45439027f383e69ad357597bac4dbb28..5777cdcf206497f94a9e8550f5e93e66abc52639 100644 (file)
@@ -538,9 +538,9 @@ Slur::height (SCM smob, SCM ax)
 /*
   Ugh should have dash-length + dash-period
  */
-MAKE_SCHEME_CALLBACK (Slur, brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Slur, print,1);
 SCM
-Slur::brew_molecule (SCM smob)
+Slur::print (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
   if (!scm_ilength (me->get_grob_property ("note-columns")))
index c192d0a456408501f19eb5029e9f215999902948..9b33ae95f3f997829f9a99f1b27ebd392b3a7559 100644 (file)
@@ -92,7 +92,7 @@ Span_arpeggio_engraver::stop_translation_timestep ()
            we can't kill the children, since we don't want to the
            previous note to bump into the span arpeggio; so we make
            it transparent.  */
-         arpeggios_[i]->set_grob_property ("molecule-callback", SCM_EOL);
+         arpeggios_[i]->set_grob_property ("print-function", SCM_EOL);
        }
       
       typeset_grob (span_arpeggio_);
index 1c3c640851001320d51b112106d5332c50476e99..46c39c679815d55f0be205393620c87af136e52d 100644 (file)
@@ -25,7 +25,7 @@ Span_bar::add_bar (Grob*me, Grob*b)
   me->add_dependency (b);
 }
 
-MAKE_SCHEME_CALLBACK (Span_bar,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Span_bar,print,1);
 
 /* Limitations/Bugs:
 
@@ -46,7 +46,7 @@ MAKE_SCHEME_CALLBACK (Span_bar,brew_molecule,1);
 /* This routine was originally by Juergen Reuter, but it was a on the
    bulky side. Rewritten by Han-Wen. */
 SCM
-Span_bar::brew_molecule (SCM smobbed_me) 
+Span_bar::print (SCM smobbed_me) 
 {
   Grob *me = unsmob_grob (smobbed_me);
   SCM first_elt = me->get_grob_property ("elements");
@@ -149,7 +149,7 @@ Span_bar::center_on_spanned_callback (SCM element_smob, SCM axis)
   assert (a == Y_AXIS);
   Interval i (get_spanned_interval (me));
 
-  /* Bar_line::brew_molecule delivers a barline of y-extent (-h/2,h/2), so
+  /* Bar_line::print delivers a barline of y-extent (-h/2,h/2), so
      we have to translate ourselves to be in the center of the 
      interval that we span. */
   if (i.is_empty ())
index 8f613cb00a48752dbdf99ebcc9887c1634d17496..a8ef6c0d1bf2413a0a275a17d50769726db373b8 100644 (file)
 
 
 
-MAKE_SCHEME_CALLBACK (Staff_symbol,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Staff_symbol,print,1);
 
 SCM
-Staff_symbol::brew_molecule (SCM smob)
+Staff_symbol::print (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
   Spanner* sp = dynamic_cast<Spanner*> (me);
index d7a9d847469d71b274f1916f1d87c8288bcedd79..c3a8b54c523e6689f272578c52155c000126cdf4 100644 (file)
@@ -121,9 +121,9 @@ Stem_tremolo::raw_molecule (Grob *me)
 }
 
 
-MAKE_SCHEME_CALLBACK (Stem_tremolo,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Stem_tremolo,print,1);
 SCM
-Stem_tremolo::brew_molecule (SCM grob) 
+Stem_tremolo::print (SCM grob) 
 {
   Grob *me = unsmob_grob (grob);
   Grob *stem = unsmob_grob (me->get_grob_property ("stem"));
index 6a2656ed2a6186c1e958ba7a63f32b060b733c7b..a5d0c00e73498c698e5bba73674b8b2780470baf 100644 (file)
@@ -540,7 +540,7 @@ Stem::before_line_breaking (SCM smob)
     }
   else
     {
-      me->set_grob_property ("molecule-callback", SCM_EOL);
+      me->set_grob_property ("print-function", SCM_EOL);
     }
   
   return SCM_UNSPECIFIED;
@@ -701,10 +701,10 @@ Stem::thickness (Grob* me)
     * Staff_symbol_referencer::line_thickness (me);
 }
 
-MAKE_SCHEME_CALLBACK (Stem,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Stem,print,1);
 
 SCM
-Stem::brew_molecule (SCM smob) 
+Stem::print (SCM smob) 
 {
   Grob*me = unsmob_grob (smob);
   Molecule mol;
index 13b6aaa8ce4d6f385b32d92bb6bd66f706fadac6..30658d7bf386c6d3d4bdc2bc0d048ca0a1ba9364 100644 (file)
 
   Properties:
 
-  glyph -- text string (TODO: make one large glyph of the Ped symbol, removes need for member_brew_molecule ())
+  glyph -- text string (TODO: make one large glyph of the Ped symbol, removes need for member_print ())
 
 */
 
 struct Sustain_pedal
 {
 public:
-  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
 };
 
 
-MAKE_SCHEME_CALLBACK (Sustain_pedal,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Sustain_pedal,print,1);
 SCM
-Sustain_pedal::brew_molecule (SCM smob) 
+Sustain_pedal::print (SCM smob) 
 {
   Grob * e = unsmob_grob (smob);
   
index b28aad5cf7a9c340cd6f18645f035000fadfff61..d4784aa3c114057441407edaab231145f81517f8 100644 (file)
@@ -102,9 +102,9 @@ System_start_delimiter::after_line_breaking (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (System_start_delimiter,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (System_start_delimiter,print,1);
 SCM
-System_start_delimiter::brew_molecule (SCM smob)
+System_start_delimiter::print (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
 
index 1c4e596bf1f091927548ca1e0df5b2cc1255043f..c70ab7c74b55096ad847383af7a11092ddab90e9 100644 (file)
@@ -54,9 +54,9 @@ Text_item::interpret_markup (SCM paper, SCM props, SCM markup)
     }
 }
 
-MAKE_SCHEME_CALLBACK(Text_item,brew_molecule,1);
+MAKE_SCHEME_CALLBACK(Text_item,print,1);
 SCM
-Text_item::brew_molecule (SCM grob)
+Text_item::print (SCM grob)
 {
   Grob * me = unsmob_grob (grob);
   
index 86387458f95ff6a457b2a58ff1274d795f16ad0b..f88df1098562ef7f10ec950398ea8a17069b3595 100644 (file)
   - more texts/positions
 */
 
-MAKE_SCHEME_CALLBACK (Text_spanner, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Text_spanner, print, 1);
 
 /*
   TODO: this function is too long
 */
 SCM
-Text_spanner::brew_molecule (SCM smob) 
+Text_spanner::print (SCM smob) 
 {
   Grob *me= unsmob_grob (smob);
   Spanner *spanner = dynamic_cast<Spanner*> (me);
   
-  /* Ugh, must be same as Hairpin::brew_molecule.  */
+  /* Ugh, must be same as Hairpin::print.  */
 
   Grob *common = spanner->get_bound (LEFT)->common_refpoint (spanner->get_bound (RIGHT), X_AXIS);
   Paper_def * paper = me->get_paper();
index 177094443e3a052f039547655f44b76da01050d1..3440fd9aebd7c5b31b621cf940e29530fffa504a 100644 (file)
@@ -319,9 +319,9 @@ Tie::get_control_points (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (Tie,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Tie,print,1);
 SCM
-Tie::brew_molecule (SCM smob) 
+Tie::print (SCM smob) 
 {
   Grob*me = unsmob_grob (smob);
 
index 0c6292dfa23239a94b6a4504163045e727050fba..2a4d380db34568b2450b654fe7a4b3525d08dbb7 100644 (file)
@@ -25,9 +25,9 @@
   
  */
 
-MAKE_SCHEME_CALLBACK (Time_signature, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Time_signature, print, 1);
 SCM
-Time_signature::brew_molecule (SCM smob) 
+Time_signature::print (SCM smob) 
 {
   Grob * me = unsmob_grob (smob);
   SCM st = me->get_grob_property ("style");
index 81feea3240da270ea5931fad555b20fe601dd807..5bc83b5e12287d0b49cf745e2a47a5fe3e3a2bb0 100644 (file)
@@ -96,9 +96,9 @@ Tuplet_bracket::parallel_beam (Grob *me, Link_array<Grob> const &cols, bool *equ
   follow beam precisely for determining tuplet number location.
   
  */
-MAKE_SCHEME_CALLBACK (Tuplet_bracket,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Tuplet_bracket,print,1);
 SCM
-Tuplet_bracket::brew_molecule (SCM smob) 
+Tuplet_bracket::print (SCM smob) 
 {
   Grob *me= unsmob_grob (smob);
   Molecule  mol;
index 18f9bebec85518558cc1e8c9e1ad798eb13395f0..ba3626d90ffb605acb504b0c92df031d84e9c53f 100644 (file)
@@ -322,9 +322,9 @@ Vaticana_ligature::brew_ligature_primitive (SCM smob)
   return primitive;
 }
 
-MAKE_SCHEME_CALLBACK (Vaticana_ligature, brew_molecule, 1);
+MAKE_SCHEME_CALLBACK (Vaticana_ligature, print, 1);
 SCM
-Vaticana_ligature::brew_molecule (SCM)
+Vaticana_ligature::print (SCM)
 {
   return SCM_EOL;
 }
index 01fb504dbc2bd3207c4cf8127f961cc75d93d6ac..813bc1162fd1a515ab3a55a0725e54a344426dbe 100644 (file)
@@ -32,9 +32,9 @@
   
 */
 
-MAKE_SCHEME_CALLBACK (Volta_bracket_interface,brew_molecule,1);
+MAKE_SCHEME_CALLBACK (Volta_bracket_interface,print,1);
 SCM
-Volta_bracket_interface::brew_molecule (SCM smob) 
+Volta_bracket_interface::print (SCM smob) 
 {
   Grob *me = unsmob_grob (smob);
   Link_array<Item> bars
index 6c7f8434990722660e66d8676570d4be6c99707c..5fae4568eb03f01ddec9f9819f2e0ea93960747b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.19"
+\version "2.1.21"
 
 
 %
@@ -578,7 +578,7 @@ OrchestralScoreContext = \translator {
 
 EasyNotation = \translator {
        \ScoreContext
-       NoteHead \override #'molecule-callback = #Note_head::brew_ez_molecule
+       NoteHead \override #'print-function = #Note_head::brew_ez_molecule
        NoteHead \override #'Y-extent-callback = #'()
        NoteHead \override #'X-extent-callback = #'()
 }
@@ -618,7 +618,7 @@ EasyNotation = \translator {
 
       \description "Context for drawing notes in a Tab staff. "
       Slur \override #'font-family       = #'roman
-      Slur \override #'molecule-callback = #hammer-molecule-callback
+      Slur \override #'print-function = #hammer-print-function
       Slur \override #'direction    = #-1
 
       % Draws all stems/beams out of the staff (and not in the middle of the staff !)
index 76c943b1f79e712ea94688e10ce6d41016c74c5b..850392a80f10e195dfbbca4e8669954568730a7b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.1"
+\version "2.1.21"
 
 %%%%%%%%
 %%%%%%%% shortcuts common for all styles of gregorian chant notation
@@ -56,7 +56,7 @@ caesura = {
   \breathe
 }
 divisioMinima = {
-  \once \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::divisio_minima
+  \once \property Voice.BreathingSign \override #'print-function = #Breathing_sign::divisio_minima
 
   % Workaround: add padding.  Correct fix would be spacing engine handle this.
   \once \property Voice.BreathingSign \override #'extra-X-extent = #'(-1.0 . 0)
@@ -64,7 +64,7 @@ divisioMinima = {
   \breathe
 }
 divisioMaior = {
-  \once \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::divisio_maior
+  \once \property Voice.BreathingSign \override #'print-function = #Breathing_sign::divisio_maior
   \once \property Voice.BreathingSign \override #'Y-offset-callbacks = #'()
 
   % Workaround: add padding.  Correct fix would be spacing engine handle this.
@@ -73,7 +73,7 @@ divisioMaior = {
   \breathe
 }
 divisioMaxima = {
-  \once \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::divisio_maxima
+  \once \property Voice.BreathingSign \override #'print-function = #Breathing_sign::divisio_maxima
   \once \property Voice.BreathingSign \override #'Y-offset-callbacks = #'()
 
   % Workaround: add padding.  Correct fix would be spacing engine handle this.
@@ -82,7 +82,7 @@ divisioMaxima = {
   \breathe
 }
 finalis = {
-  \once \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::finalis
+  \once \property Voice.BreathingSign \override #'print-function = #Breathing_sign::finalis
   \once \property Voice.BreathingSign \override #'Y-offset-callbacks = #'()
 
   % Workaround: add padding.  Correct fix would be spacing engine handle this.
index c784a0ba521d97d6e0e5520a8bef8979745f12d9..51fbb8bc449f268dc3720453d1f1d47d11a709a3 100644 (file)
@@ -1,6 +1,6 @@
 % property-init.ly
 
-\version "1.9.8"
+\version "2.1.21"
 
 stemUp = \property Voice.Stem \set #'direction = #1
 stemDown = \property Voice.Stem \set #'direction = #-1 
@@ -222,7 +222,7 @@ forgetAccidentals = {
 turnOff = #(cons '() '())
 
 % For drawing vertical chord brackets with \arpeggio
-% This is a shorthand for the value of the molecule-callback property 
+% This is a shorthand for the value of the print-function property 
 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
 % cross-staff brackets are desired. 
 
index 14b7881e91578d10f4a6b6cbb8d35d143d7bb27e..87fcc21f98f53a61758313a35052ca85e81691e5 100644 (file)
@@ -319,10 +319,10 @@ Grob at least this long.
 
 Also works as a scaling parameter for the length of hyphen. .")
      (minimum-space ,ly:dimension? "minimum distance that the victim should move (after padding).")
-     (molecule-callback ,procedure? "Function taking grob as argument,
+     (print-function ,procedure? "Function taking grob as argument,
 returning a Molecule object.")
 
-     (molecule ,ly:molecule? "Cached output of the molecule-callback.")
+     (molecule ,ly:molecule? "Cached output of the print-function.")
 
      (new-accidentals ,list? "list of (pitch, accidental) pairs.")
      (no-spacing-rods ,boolean? "read from grobs: boolean that makes Separation_item ignore this item (MOVE ME TO ITEM).")
@@ -434,7 +434,7 @@ notation manual for more information.")
 
      (threshold ,number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace.")
      (transparent ,boolean? "This is almost the
-same as setting molecule-callback to #f, but this retains the
+same as setting print-function to #f, but this retains the
 dimensions of this grob, which means that you can erase grobs
 individually. .")
      (bracket-visibility ,boolean-or-symbol? " This controls the
@@ -503,7 +503,6 @@ duration of a measure is a breve or longer.")
 (define all-internal-grob-properties
   (map
    (lambda (x)
-     (display x)
      (apply define-internal-grob-property x))
    
    `(
@@ -512,15 +511,16 @@ duration of a measure is a breve or longer.")
      (all-elements ,grob-list? "list of all grobs in this line. Needed for protecting grobs from GC.")
      (arpeggio ,ly:grob? "pointer to arpeggio object.") 
      (beam ,ly:grob? "pointer to the beam, if applicable.")
-     (center-element ,ly:grob? "grob which will
-be at the center of the group after aligning (when using
-Align_interface::center_on_element). .")
-     (direction-source ,ly:grob? "in case side-relative-direction is set, which grob  to get the direction from .")
+     (center-element ,ly:grob? "grob which will be at the center of
+the group after aligning (when using
+Align_interface::center_on_element).")
+     (direction-source ,ly:grob? "in case side-relative-direction is
+set, which grob to get the direction from .")
      (dot ,ly:grob? "reference to Dots object.")
      (pedal-text ,ly:grob? "Pointer to the text of a mixed-style piano pedal.")
      (stem ,ly:grob? "pointer to Stem object.")
      (tremolo-flag ,ly:grob? "The tremolo object on a stem.")
-     (tie ,ly:grob? "") 
+     (tie ,ly:grob? "")
      (staff-symbol ,ly:grob? "the staff symbol grob that we're in.")
      (rest ,ly:grob? "the staff symbol grob that we're in.")
      (rest-collision ,ly:grob? "rest collision that a rest is in.")
index 89dc980d67093c109b97a6de6325e57f77ceaad0..a072d4f0d9e1a91c222df49be70fe9be883e97a0 100644 (file)
@@ -16,7 +16,7 @@
   `(
     (Accidental
      . (
-       (molecule-callback . ,Accidental_interface::brew_molecule)
+       (print-function . ,Accidental_interface::print)
        (font-family . music)
        (cautionary-style . parentheses)
        (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (item-interface accidental-interface font-interface))))
@@ -37,7 +37,7 @@
      . (
        (breakable . #t)
        (break-align-symbol . ambitus)
-       (molecule-callback . ,Ambitus::brew_molecule)
+       (print-function . ,Ambitus::print)
        (font-family . music)
        (note-head-style . "noteheads-2")
        (visibility-lambda . ,begin-of-line-visible)
@@ -56,7 +56,7 @@
      . (
        (X-extent-callback . ,Arpeggio::width_callback)
        (Y-extent-callback . #f)               
-       (molecule-callback . ,Arpeggio::brew_molecule)
+       (print-function . ,Arpeggio::print)
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
        (X-offset-callbacks . (,Side_position_interface::aligned_side))
        (direction . -1)
@@ -70,7 +70,7 @@
        (glyph . "|")
        (break-glyph-function . ,default-break-barline)
        (bar-size-procedure . ,Bar_line::get_staff_bar_size)
-       (molecule-callback . ,Bar_line::brew_molecule)     
+       (print-function . ,Bar_line::print)        
        (break-visibility . ,all-visible)
        (breakable . #t)
        (before-line-breaking-callback . ,Bar_line::before_line_breaking)
@@ -97,7 +97,7 @@
     
     (BarNumber
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (breakable . #t)
        (break-visibility . ,begin-of-line-visible)
        (padding . 1.0)
 
     (BassFigure
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (direction . 1)
        (font-family . number)
      . (
        ;; todo: clean this up a bit: the list is getting
        ;; rather long.
-       (molecule-callback . ,Beam::brew_molecule)
+       (print-function . ,Beam::print)
        (concaveness-gap . 2.0)
        (concaveness-threshold . 0.08)
        (gap . 0.8)
                        (first-note . (fixed-space . 1.0)) ;huh? 
                        (right-edge . (extra-space . 0.1))
                        ))
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (text . ,(make-musicglyph-markup "scripts-rcomma"))
        (Y-offset-callbacks . (,Breathing_sign::offset_callback))
        (break-visibility . ,begin-of-line-invisible)
 
     (Clef
      . (
-       (molecule-callback . ,Clef::brew_molecule)
+       (print-function . ,Clef::print)
        (before-line-breaking-callback . ,Clef::before_line_breaking)
        (breakable . #t)
        (font-family . music)      
     
     (ClusterSpannerBeacon
      . (
-       (molecule-callback . #f)
+       (print-function . #f)
        (meta . ((interfaces . (cluster-beacon-interface item-interface))))
        ))
     
     (ClusterSpanner
      . (
-       (molecule-callback . ,Cluster::brew_molecule)
+       (print-function . ,Cluster::print)
        (spacing-procedure . ,Spanner::set_spacing_rods)                
        (minimum-length . 0.0)
        (padding . 0.25)
 
     (ChordName
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (after-line-breaking-callback . ,Chord_name::after_line_breaking)
        (word-space . 0.0)
        (font-family . sans)
      . (
        (break-align-symbol . custos)
        (breakable . #t)
-       (molecule-callback . ,Custos::brew_molecule)
+       (print-function . ,Custos::print)
        (break-visibility . ,end-of-line-visible)
        (style . vaticana)
        (neutral-position . 0)
 
     (Dots
      . (
-       (molecule-callback . ,Dots::brew_molecule)
+       (print-function . ,Dots::print)
        (dot-count . 1)
        (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
        ))
 
     (DoublePercentRepeat .
                         (
-                         (molecule-callback . ,Percent_repeat_item_interface::double_percent)
+                         (print-function . ,Percent_repeat_item_interface::double_percent)
                          (breakable . #t)
                          (slope . 1.0)
                          (font-family . music)
     (DynamicText
      . (
        (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
                               ,Self_alignment_interface::centered_on_parent))
        (self-alignment-X . 0)
 
     (Fingering
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (padding . 0.6)
        (staff-padding . 0.6)
        (self-alignment-X . 0)
 
     (Hairpin
      . (
-       (molecule-callback . ,Hairpin::brew_molecule)
+       (print-function . ,Hairpin::print)
        (thickness . 1.0)
        (height . 0.6666)
        (spacing-procedure . ,Spanner::set_spacing_rods)
     (HorizontalBracket
      . (
        (thickness . 1.0)
-       (molecule-callback . ,Horizontal_bracket::brew_molecule)
+       (print-function . ,Horizontal_bracket::print)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (padding . 0.2)
        (direction . -1)
                        ))
 
        (self-alignment-Y . 0)
-       (molecule-callback . ,Text_item::brew_molecule)         
+       (print-function . ,Text_item::print)            
        (break-align-symbol . instrument-name)
        (break-visibility . ,begin-of-line-visible)
        (baseline-skip . 2)
        (direction . 0)
        (space-alist . ((left-edge . (extra-space . 1.0))
                        ))
-       (molecule-callback . ,Text_item::brew_molecule)         
+       (print-function . ,Text_item::print)            
        (break-align-symbol . clef)
        (break-visibility . ,begin-of-line-visible)
        (baseline-skip . 2)
 
     (KeySignature
      . (
-       (molecule-callback . ,Key_signature_interface::brew_molecule)
+       (print-function . ,Key_signature_interface::print)
        (space-alist . (
                        (time-signature . (extra-space . 1.25))
                        (staff-bar .  (extra-space . 1.1))
 
     (LigatureBracket
      . (
-       (ligature-primitive-callback . ,Note_head::brew_molecule)
+       (ligature-primitive-callback . ,Note_head::print)
        (direction . 1)
        (gap . 0.0)
        (padding . 2.0)
        (shorten-pair . (-0.2 . -0.2))
        (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
        (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
-       (molecule-callback . ,Tuplet_bracket::brew_molecule)
+       (print-function . ,Tuplet_bracket::print)
        (meta .  ((interfaces . (tuplet-bracket-interface spanner-interface))))
        ))
 
        (dash-period . 10.0)
        (length . 0.66)
        (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
-       (molecule-callback . ,Hyphen_spanner::brew_molecule)
+       (print-function . ,Hyphen_spanner::print)
        (Y-extent-callback . ,Grob::point_dimension_callback)
        (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
                                                spanner-interface))))
 
     (LyricExtender
      . (
-       (molecule-callback . ,Lyric_extender::brew_molecule)
+       (print-function . ,Lyric_extender::print)
        (thickness . 0.8) ; linethickness
        (minimum-length . 1.5)
        (Y-extent-callback . ,Grob::point_dimension_callback)
        ))
 
     (LyricText
-     . ((molecule-callback . ,Text_item::brew_molecule)
+     . ((print-function . ,Text_item::print)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
        (self-alignment-X . 0)
        (word-space . 0.6)
        (thickness . 1.4)
        (flexa-width . 2.0)
        (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
-       (molecule-callback . ,Mensural_ligature::brew_molecule)
+       (print-function . ,Mensural_ligature::print)
        (meta . ((interfaces . (mensural-ligature-interface font-interface))))
        ))
 
     (RehearsalMark
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::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
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
        (direction . 1)
        (breakable . #t)
     (MeasureGrouping
      . (
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
-       (molecule-callback . ,Measure_grouping::brew_molecule)
+       (print-function . ,Measure_grouping::print)
        (padding . 2)
        (direction . 1)
        (thickness . 1)
     (MultiMeasureRest
      . (
        (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
-       (molecule-callback . ,Multi_measure_rest::brew_molecule)
+       (print-function . ,Multi_measure_rest::print)
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
        (staff-position . 0)
        (expand-limit . 10)
     
     (MultiMeasureRestNumber
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::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
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::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))
     (NoteHead
      . (
        (style . default)
-       (molecule-callback . ,Note_head::brew_molecule)
-       (ligature-primitive-callback . ,Note_head::brew_molecule)
+       (print-function . ,Note_head::print)
+       (ligature-primitive-callback . ,Note_head::print)
        (glyph-name-procedure . ,find-notehead-symbol)
        (X-extent-callback . ,Note_head::extent)
        (Y-extent-callback . ,Note_head::extent)
        (X-extent-callback . #f)
        (Y-extent-callback . #f)                         
        (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
-       (molecule-callback . ,Line_spanner::brew_molecule)
+       (print-function . ,Line_spanner::print)
        (meta . ((interfaces . (line-spanner-interface spanner-interface))))
        ))
 
        (breakable . #t)
        (X-extent-callback . #f)
        (Y-extent-callback . #f)                         
-       (molecule-callback . ,Line_spanner::brew_molecule)
+       (print-function . ,Line_spanner::print)
        (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
        (meta . ((interfaces . (line-spanner-interface spanner-interface))))
        ))
 
     (NoteName
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (font-family . roman)
        (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))
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (font-shape . italic)
        (padding . 0.4)
        (staff-padding . 0.2)
        (before-line-breaking-callback . ,Paper_column::before_line_breaking)
        (X-extent-callback . ,Axis_group_interface::group_extent_callback)
 
-;              (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
+;              (print-function . ,Paper_column::print) (font-name . "cmr8") (Y-extent-callback . #f)
        (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
        ))
 
     (PhrasingSlur
      . (
-       (molecule-callback . ,Slur::brew_molecule)
+       (print-function . ,Slur::print)
        (thickness . 1.2)               
        (spacing-procedure . ,Spanner::set_spacing_rods)                
        (minimum-length . 1.5)
        (X-extent-callback . ,Axis_group_interface::group_extent_callback)
        (before-line-breaking-callback . ,Paper_column::before_line_breaking)
        ;; debugging stuff: print column number.
-;      (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
+;      (print-function . ,Paper_column::print) (font-name . "cmr8")    (Y-extent-callback . #f)
 
 
        (meta .  ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
     (PercentRepeat
      . (
        (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
-       (molecule-callback . ,Multi_measure_rest::percent)
+       (print-function . ,Multi_measure_rest::percent)
        (slope . 1.0)
        (thickness . 0.48)
        (minimum-width . 12.5) ; staffspace
 
     (PianoPedalBracket   ;; an example of a text spanner
      . (
-       (molecule-callback . ,Piano_pedal_bracket::brew_molecule)
+       (print-function . ,Piano_pedal_bracket::print)
        (font-family . roman)
        (style . line)
        (if-text-padding . 1.0)
 
     (RepeatSlash
      . (
-       (molecule-callback . ,Percent_repeat_item_interface::beat_slash)
+       (print-function . ,Percent_repeat_item_interface::beat_slash)
        (thickness . 0.48)
        (slope . 1.7)
        (meta . ((interfaces . (percent-repeat-interface item-interface ))))
        (after-line-breaking-callback . ,Rest::after_line_breaking)
        (X-extent-callback . ,Rest::extent_callback)
        (Y-extent-callback . ,Rest::extent_callback)            
-       (molecule-callback . ,Rest::brew_molecule)
+       (print-function . ,Rest::print)
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback)) 
        (minimum-distance . 0.25)
        (meta . (
     (Script
      . (
        ;; don't set direction here: it breaks staccato.
-       (molecule-callback . ,Script_interface::brew_molecule)
+       (print-function . ,Script_interface::print)
 
        ;; This value is sensitive: if too large, staccato dots will move a
        ;; space a away.
 
     (Slur
      . (
-       (molecule-callback . ,Slur::brew_molecule)
+       (print-function . ,Slur::print)
        (thickness . 1.2)               
        (spacing-procedure . ,Spanner::set_spacing_rods)                
        (minimum-length . 1.5)
      . (
        (break-align-symbol . staff-bar)
        (bar-size-procedure . ,Span_bar::get_bar_size) 
-       (molecule-callback . ,Span_bar::brew_molecule)
+       (print-function . ,Span_bar::print)
        (break-visibility . ,begin-of-line-invisible)
        (X-extent-callback . ,Span_bar::width_callback)
        (Y-extent-callback . ())
        ))
 
     (StanzaNumber
-     . ((molecule-callback . ,Text_item::brew_molecule)                
+     . ((print-function . ,Text_item::print)           
        (font-family . roman)
        (font-series . bold)
        (padding . 1.0)
 
     (StaffSymbol
      . (
-       (molecule-callback . ,Staff_symbol::brew_molecule)
+       (print-function . ,Staff_symbol::print)
        (line-count . 5)
        (ledger-line-thickness  . (1.0 . 0.1))
        (layer . 0)
 
     (SostenutoPedal
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (direction . 1)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (no-spacing-rods . #t)
 
        ;; this list is rather long. Trim --hwn
        (before-line-breaking-callback . ,Stem::before_line_breaking)
-       (molecule-callback . ,Stem::brew_molecule)
+       (print-function . ,Stem::print)
        (thickness . 1.3)
 
        ;; 3.5 (or 3 measured from note head) is standar length
 
     (StemTremolo
      . (
-       (molecule-callback . ,Stem_tremolo::brew_molecule)
+       (print-function . ,Stem_tremolo::print)
        (Y-extent-callback . ,Stem_tremolo::height)
        (X-extent-callback . #f)
 
     (SustainPedal
      . (
        (no-spacing-rods . #t)
-       (molecule-callback . ,Sustain_pedal::brew_molecule)
+       (print-function . ,Sustain_pedal::print)
        (self-alignment-X . 0)
        (direction . 1)
        (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
     (SystemStartBrace
      . (
        (glyph . "brace")
-       (molecule-callback . ,System_start_delimiter::brew_molecule)
+       (print-function . ,System_start_delimiter::print)
        (collapse-height . 5.0)
        (font-family . braces)
        (Y-extent-callback . #f)
     (SystemStartBracket
      . (
        (Y-extent-callback . #f)
-       (molecule-callback . ,System_start_delimiter::brew_molecule)
+       (print-function . ,System_start_delimiter::print)
        (glyph . "bracket")
        (arch-height . 1.5)
        (arch-angle . 50.0)
     (SystemStartBar
      . (
        (Y-extent-callback . #f)
-       (molecule-callback . ,System_start_delimiter::brew_molecule)
+       (print-function . ,System_start_delimiter::print)
        (glyph . "bar-line")
        (thickness . 1.6)
        (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
 
     (TextScript
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (no-spacing-rods . #t)
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        (direction . -1)
        ))
     (CombineTextScript
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (no-spacing-rods . #t)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
        ))
     (TextSpanner
      . (
-       (molecule-callback . ,Text_spanner::brew_molecule)
+       (print-function . ,Text_spanner::print)
        (font-family . roman)
        (style . dashed-line)
        (staff-padding . 0.1)
     (OttavaBracket
      . (
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
-       (molecule-callback . ,Ottava_bracket::brew_molecule)
+       (print-function . ,Ottava_bracket::print)
        (font-shape . italic)
        (font-family . roman)
        (text-repeat-if-broken . #t)
      . (
        (font-family . roman)
        (style . default)
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::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)
 
     (Tie
      . (
-       (molecule-callback . ,Tie::brew_molecule)
+       (print-function . ,Tie::print)
        (spacing-procedure . ,Spanner::set_spacing_rods)
        (staffline-clearance . 0.35)
        (details . ((ratio . 0.333) (height-limit . 1.0)))
 
     (TimeSignature
      . (
-       (molecule-callback . ,Time_signature::brew_molecule)
-;      (molecule-callback . ,Text_item::brew_molecule) 
+       (print-function . ,Time_signature::print)
+;      (print-function . ,Text_item::print)    
        (break-align-symbol . time-signature)
        (break-visibility . ,all-visible)
        (space-alist . (
        (shorten-pair . (-0.2 . -0.2))
        (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
        (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
-       (molecule-callback . ,Tuplet_bracket::brew_molecule)
+       (print-function . ,Tuplet_bracket::print)
        (font-family . roman)
        (font-shape . italic)
        (font-series . bold)
 
     (UnaCordaPedal
      . (
-       (molecule-callback . ,Text_item::brew_molecule)
+       (print-function . ,Text_item::print)
        (font-family . roman)
        (font-shape . italic)
        (no-spacing-rods . #t)
        (thickness . 0.6)
        (flexa-width . 2.0)
        (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
-       (molecule-callback . ,Vaticana_ligature::brew_molecule)
+       (print-function . ,Vaticana_ligature::print)
        (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
        ))
 
     (VoltaBracket
      . (
-       (molecule-callback . ,Volta_bracket_interface::brew_molecule)
+       (print-function . ,Volta_bracket_interface::print)
        (direction . 1)
        (padding . 1)
        (font-family . number)
index 7693d1b7745531fb899234c5c413de098bc8d59e..7bf9198c255166ad5a998b2cfb9efdf0c98989d2 100644 (file)
@@ -773,11 +773,11 @@ Rest can contain a list of beat groupings
   (let*
    ((meta (ly:get-grob-property grob 'meta))
     (nm (if (pair? meta) (cdr (assoc 'name meta)) "nonexistant"))
-    (cb (ly:get-grob-property grob 'molecule-callback)))
+    (cb (ly:get-grob-property grob 'print-function)))
     
    (if (equal? nm object-name)
     (begin
-     (ly:set-grob-property! grob 'molecule-callback Balloon_interface::brew_molecule)
+     (ly:set-grob-property! grob 'print-function Balloon_interface::brew_molecule)
      (ly:set-grob-property! grob 'balloon-original-callback cb)
      (ly:set-grob-property! grob 'balloon-text text)
      (ly:set-grob-property! grob 'balloon-text-offset off)
index ef38cc2dc4f777e4e54fb183d3ff8f4954b95dde..38f10b8b583cd573a8155cd4d0dc2fe0c21933cf 100644 (file)
@@ -13,7 +13,7 @@
 
 ; The TabNoteHead molecule callback.
 ; Create a text molecule
-(define-public (tablature-molecule-callback grob)
+(define-public (tablature-print-function grob)
   (let ((molecule (fontify-text
                    (ly:get-default-font grob)
                    (ly:get-grob-property grob 'text)
@@ -31,7 +31,7 @@
                 )
       ) ) ) 
 
-(define-public (hammer-molecule-callback grob)
+(define-public (hammer-print-function grob)
   (let* ((note-collums (ly:get-grob-property grob 'note-columns))
          (note-column1 (cadr note-collums))
          (note-column2 (car  note-collums))
index 47b8b60cd188fd55587923223c2db2b0e0abdb56..802e4e82a8fbe2a4e976ee830ad574b3a7c78964 100644 (file)
@@ -1821,6 +1821,15 @@ def conv (str):
 
 conversions.append (((2,1,20), conv, """nonevent-skip -> skip-music""" ))
 
+def conv (str):
+       str = re.sub (r'molecule-callback', 'print-function', str)
+       str = re.sub (r'brew_molecule', 'print', str)
+       return str
+
+conversions.append (((2,1,21), conv, """molecule-callback -> print-function,
+brew_molecule -> print
+""" ))
+