From: Han-Wen Nienhuys Date: Thu, 16 Mar 2006 15:16:30 +0000 (+0000) Subject: add support for X-Git-Tag: release/2.7.39~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=15f28c1911d3151ce5c0ce1b33f26f284296fe71;p=lilypond.git add support for barNumberAlignSymbol. add ADD_ACKNOWLEDGER() call for break_aligned. Fixes bar-number-breathe --- diff --git a/ChangeLog b/ChangeLog index 854f5bb89d..65250ca463 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-03-16 Han-Wen Nienhuys + * lily/bar-number-engraver.cc: add support for + barNumberAlignSymbol. + add ADD_ACKNOWLEDGER() call for break_aligned. Fixes bar-number-breathe + * lily/pointer-group-interface.cc (set_ordered): new function. (add_unordered_grob): new function. diff --git a/lily/bar-number-engraver.cc b/lily/bar-number-engraver.cc index 57ad002f76..8a57a72135 100644 --- a/lily/bar-number-engraver.cc +++ b/lily/bar-number-engraver.cc @@ -70,7 +70,7 @@ Bar_number_engraver::acknowledge_break_aligned (Grob_info inf) Grob *s = inf.grob (); if (text_ && dynamic_cast (s) - && s->get_property ("break-align-symbol") == ly_symbol2scm ("left-edge")) + && s->get_property ("break-align-symbol") == get_property ("barNumberAlignSymbol")) { /* By default this would land on the Paper_column -- so why @@ -99,6 +99,9 @@ Bar_number_engraver::create_items () text_ = make_item ("BarNumber", SCM_EOL); } + +ADD_ACKNOWLEDGER(Bar_number_engraver,break_aligned); + ADD_TRANSLATOR (Bar_number_engraver, /* doc */ "A bar number is created whenever measurePosition " "is zero and when there is a bar line (ie. when @code{whichBar} is set. " @@ -110,8 +113,9 @@ ADD_TRANSLATOR (Bar_number_engraver, /* create */ "BarNumber", /* accept */ "", /* read */ + "barNumberAlignSymbol " "currentBarNumber " "whichBar " "stavesFound " - "barNumberVisibility", + "barNumberVisibility ", /* write */ ""); diff --git a/lily/note-spacing.cc b/lily/note-spacing.cc index fe56b32b45..31e249e6ee 100644 --- a/lily/note-spacing.cc +++ b/lily/note-spacing.cc @@ -111,6 +111,7 @@ Note_spacing::get_spacing (Grob *me, Item *right_col, /* We look at the width of the note head, since smaller heads get less space + eg. a quarter rest gets almost 0.5 ss less horizontal space than a note. What is sticking out of the note head (eg. a flag), doesn't get diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly index 59f8d7c0eb..2ff22a1452 100644 --- a/ly/engraver-init.ly +++ b/ly/engraver-init.ly @@ -525,6 +525,7 @@ AncientRemoveEmptyStaffContext = \context { markFormatter = #format-mark-letters rehearsalMark = #1 rehearsalMarkAlignSymbol = #'staff-bar + barNumberAlignSymbol = #'staff-bar subdivideBeams = ##f allowBeamBreak = ##f extraNatural = ##t diff --git a/scm/define-context-properties.scm b/scm/define-context-properties.scm index ce5088eb8f..dc440e4bb2 100644 --- a/scm/define-context-properties.scm +++ b/scm/define-context-properties.scm @@ -101,6 +101,7 @@ note.") (barCheckSynchronize ,boolean? "If true then reset @code{measurePosition} when finding a barcheck.") + (barNumberAlignSymbol ,symbol? "Which break-align-symbol to align the bar number with.") (barNumberVisibility ,procedure? "Procedure that takes an int and returns whether the corresponding bar number should be printed") (bassStaffProperties ,list? "Alist of property settings to apply