bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 576 in lilypond: TextSpanner 'bound-details 'left-broken syntax pr


From: codesite-noreply
Subject: Issue 576 in lilypond: TextSpanner 'bound-details 'left-broken syntax problems (e.g. when combined with 'bound-details 'left)
Date: Fri, 08 Feb 2008 02:50:11 -0800

Issue 576: TextSpanner 'bound-details 'left-broken syntax problems (e.g. when combined with 'bound-details 'left)
http://code.google.com/p/lilypond/issues/detail?id=576

Comment #2 by v.villenave:
Further investigations from Trevor:



NR 1.8.3.2 "Text and line spanners" uses the following syntax for setting TextSpanner
#'bound-details #'left-broken and TextSpanner #'bound-details #'right-broken:

  \override TextSpanner #'bound-details #'left-broken #'text = "cotinuation"

This sytax does indeed work, as we can see in the following example:

  \new Staff {
     \override TextSpanner #'bound-details #'left-broken #'text = "cotinuation"
     \override TextSpanner #'bound-details #'left #'text = "start"
     c'4 \startTextSpan c'4 c'4 c'4 \break
     c'4 c'4 c'4 c'4 \stopTextSpan
  }


Furthermore, we can see this same syntax working here in this second example:

  \new Staff {
     \override TextSpanner #'bound-details #'left-broken #'X = #30
     \override TextSpanner #'bound-details #'left #'text = "start"
     c'4 \startTextSpan c'4 c'4 c'4 \break
     c'4 c'4 c'4 c'4 \stopTextSpan
  }


But now observe that we get a bug when we try to combine these first two examples
together at one time:

  \new Staff {
     \override TextSpanner #'bound-details #'left-broken #'X = #30
     \override TextSpanner #'bound-details #'left-broken #'text = 
"continuation" %
BUG -- this setting junked
     \override TextSpanner #'bound-details #'left #'text = "start"
     c'4 \startTextSpan c'4 c'4 c'4 \break
     c'4 c'4 c'4 c'4 \stopTextSpan
  }


There is a workaround. Setting the alist directly works:

  \new Staff {
     \override TextSpanner #'bound-details #'left-broken =
        #'((X . 30) (text . "continuation"))
     \override TextSpanner #'bound-details #'left #'text = "start"
     c'4 \startTextSpan c'4 c'4 c'4 \break
     c'4 c'4 c'4 c'4 \stopTextSpan
  }


Note that this alist syntax is not available in NR. This syntax is available in the
IR ... but with no reference to left-broken and right-broken.

Maybe the best way to summarize this bug is that the code written to afford access to the nested sublists living inside of bound-details breaks when the user appends to the #'left-broken and #'right-broken sublists (but works fine when the user appends
to the #'left and #'right sublists).



Issue attribute updates:
Summary: TextSpanner 'bound-details 'left-broken syntax problems (e.g. when combined with 'bound-details 'left)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings




reply via email to

[Prev in Thread] Current Thread [Next in Thread]