Please check in the documentation what \center-align does.
Actually, your first example can just as well be written as
\override TextSpanner #'edge-text = #(cons (markup #:finger "1 " " "
) "")
which seems to be equivalent to
\override TextSpanner #'edge-text = #(cons (markup
#:line (#:finger "1 " " " )) "")
Still, I cant't explain what happens to the vertical alignment in
your second example.
/Mats
Christopher Ellis wrote:
Thanks Graham and Mats. I can now do what I want to
do. I was planning on putting a #:hspace ~0.5 after
the the finger number, but this gives an unexpected
result that looks no where near as good as putting a
space " " character after the finger number. The
number is much higher than it needs to be and the line
is only a little higher. It looks like the spanner
line is right at the base of the number, or left
edge-text. I would be interested in an explanation as
to why this happens, but it is not necessary. ly
below will show what I am talking about. The first
measure looks good, in the 2nd the line is too low
relative to the number. Thanks again. Chris
\version "2.6.0"
test = \relative c'' {
\override TextSpanner #'dash-fraction = #'()
\override TextSpanner #'edge-text = #(cons (markup
#:center-align (#:finger "1 " ) " " ) "")
b\startTextSpan c c b\stopTextSpan | \revert
TextSpanner #'edge-text
\override TextSpanner #'edge-text = #(cons (markup
#:center-align (#:finger "1") #:hspace -3.0 ) "")
b\startTextSpan c c b\stopTextSpan |
}
\score {
\test
}
--- Mats Bengtsson <[EMAIL PROTECTED]> wrote:
See for example
http://lists.gnu.org/archive/html/lilypond-user/2005-08/msg00020.html
To understand why this works and not what you tried,
you need some
knowledge about the Scheme language. The short story
is that you
need the (markup ..) command to be evaluated, not
just passed as a
list.
/Mats
Graham Percival wrote:
To set the text for TextSpanner, one does
\override TextSpanner #'edge-text = #'("foo" . "
")
How can you use \markup{ foo } instead of "foo" ?
Judging from
11.2.1 Markup construction in scheme, I thought
that this would work
\override TextSpanner #'edge-text = #'( (markup
"foo") . "")
but it doesn't. :(
Christopher -- once we find out how to do this,
try adding a
\hspace #1
to the end of your finger string ("1 "). It may
not be ideal, but it
should work.
Cheers,
- Graham
On 6-Aug-05, at 6:54 PM, Christopher Ellis wrote:
\override TextSpanner #'font-encoding =
#'fetaNumber
\override TextSpanner #'font-size = #-5
\override TextSpanner #'edge-text = #'("1 " . "
")
\override TextSpanner #'dash-fraction = #'()
%\override TextSpanner #'shorten-pair = #'(0 .
0)
b\startTextSpan c c b\stopTextSpan |
I think this is the best way; hence me question.
% this works as in should in the way that I want,
% however the fingering is not nicely centered
like
% a regular fingering instruction. also the line
is
too
% close too the fingering. i am sure that I can
get
% close to what I want with the
% commented out "shorten-pair"
% line but it would be nice if I could
% do this spanner with
% the left edge-text centered like a
% fingering and not have
% the line so close to the fingering.
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user