X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmensural-ligature.cc;h=88a11810581abb86de38528c15456d7399803d04;hb=08b689db5cbff3a66944ac706668d9b73b9e5f6e;hp=36e5ef2026a868c895dc7ac3fc79a5887082f512;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/mensural-ligature.cc b/lily/mensural-ligature.cc index 36e5ef2026..88a1181058 100644 --- a/lily/mensural-ligature.cc +++ b/lily/mensural-ligature.cc @@ -7,14 +7,15 @@ Pal Benko */ - #include "mensural-ligature.hh" -#include "item.hh" + #include "font-interface.hh" +#include "international.hh" +#include "item.hh" #include "lookup.hh" -#include "staff-symbol-referencer.hh" #include "note-head.hh" #include "output-def.hh" +#include "staff-symbol-referencer.hh" #include "warn.hh" /* @@ -95,7 +96,7 @@ internal_brew_primitive (Grob *me) { programming_error ("Mensural_ligature: " "undefined primitive -> ignoring grob"); - return Stencil (); + return Lookup::blank (Box (Interval (0, 0), Interval (0, 0))); } int primitive = scm_to_int (primitive_scm); @@ -109,7 +110,7 @@ internal_brew_primitive (Grob *me) if (primitive & MLP_FLEXA) { - delta_pitch = robust_scm2int (me->get_property ("delta-pitch"), + delta_pitch = robust_scm2int (me->get_property ("delta-position"), 0); width = robust_scm2double (me->get_property ("flexa-width"), 2.0 * staff_space); @@ -120,7 +121,7 @@ internal_brew_primitive (Grob *me) switch (primitive & MLP_ANY) { case MLP_NONE: - return Stencil (); + return Lookup::blank (Box (Interval (0, 0), Interval (0, 0))); case MLP_LONGA: // mensural brevis head with right cauda out = Font_interface::get_default_font (me)->find_by_name ("noteheads.s-2mensural"); @@ -139,11 +140,11 @@ internal_brew_primitive (Grob *me) default: programming_error (_f ("Mensural_ligature: " "unexpected case fall-through")); - return Stencil (); + return Lookup::blank (Box (Interval (0, 0), Interval (0, 0))); } Real blotdiameter - = (me->layout ()->get_dimension (ly_symbol2scm ("blotdiameter"))); + = (me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter"))); if (primitive & MLP_STEM) { @@ -166,7 +167,7 @@ internal_brew_primitive (Grob *me) SCM join_right_scm = me->get_property ("join-right-amount"); - if (join_right_scm != SCM_EOL) + if (scm_is_number (join_right_scm)) { int join_right = scm_to_int (join_right_scm); if (join_right) @@ -218,7 +219,14 @@ Mensural_ligature::print (SCM) return SCM_EOL; } -ADD_INTERFACE (Mensural_ligature, "mensural-ligature-interface", +ADD_INTERFACE (Mensural_ligature, "A mensural ligature", - "delta-pitch flexa-width head-width join-right-amount " // "add-join " - "primitive thickness"); + + "delta-position " + "flexa-width " + "head-width " + "join-right-amount " + "primitive " + "thickness" + ); +