Re: align in \markup

2013-09-23 Thread David Kastrup
MING TSANG tsan...@rogers.com writes:

 Hi,Eluze  David: 

 I try Eluze' suggestion and the result is much better.

It's not better, it's different.  LilyPond aligns material along a
baseline, and the baseline is at coordinate 0.  One designs character
and path statements such that they are in a good position with regard to
this baseline: if you centered every character on an axis, the result
would be pretty unreadable, and _ and - would be indistinguishable.

\general-align #Y #CENTER overrides the decision encoded in
character/path regarding its baseline.  But that means that you can no
longer make your own decision about the best place of the baseline by an
appropriate choice of coordinates.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align in \markup

2013-09-23 Thread Eluze
dak wrote
 MING TSANG lt;

 tsang94@

 gt; writes:
 
 Hi,Eluze  David: 

 I try Eluze' suggestion and the result is much better.
 
 It's not better, it's different.  LilyPond aligns material along a
 baseline, and the baseline is at coordinate 0.  One designs character
 and path statements such that they are in a good position with regard to
 this baseline: if you centered every character on an axis, the result
 would be pretty unreadable, and _ and - would be indistinguishable.
 
 \general-align #Y #CENTER overrides the decision encoded in
 character/path regarding its baseline.  But that means that you can no
 longer make your own decision about the best place of the baseline by an
 appropriate choice of coordinates.

I also think our solutions are different - the main question for me is why
your drawing starts with a (moveto 0 1) which makes you unhappy later.

vertically centering both objects is your decision - why not start the
drawing at 0 0 and align the objects on the same line in the markup, as
David suggests, i.e. use LilyPond's default or - if you have good reasons -
change the alignment to a suiting value!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/align-in-markup-tp151173p151217.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align in \markup

2013-09-22 Thread Eluze
MING TSANG wrote
 Hi lilyponders,
 
 How to align the yMt with samplepath?  Any solution is appreciated.
 
 \markup { yMt 
 \path #0.15 #samplePath

try

\markup \general-align #Y #CENTER { ... }

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/align-in-markup-tp151173p151175.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align in \markup

2013-09-22 Thread David Kastrup
MING TSANG tsan...@rogers.com writes:

 Hi lilyponders,

 How to align the yMt with samplepath?  Any solution is appreciated.

 Thanks,
 Ming.

 \version 2.17.26
 samplePath =
 #'((moveto 0 1)
 (lineto -1 3)
 (lineto -1 3)
 (lineto 1 1)
 (curveto 3 3 3 2 1 4)
 (closepath))
 \markup { yMt 
 \path #0.15 #samplePath
 }

Uh, looks aligned to me.  That is, the point (0,0) in the samplePath
seems to be on the baseline of yMt.  What else do you want?

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align in \markup

2013-09-22 Thread MING TSANG
Hi,Eluze  David: 

I try Eluze' suggestion and the result is much better. Please refer to .png 
file.
\markup \general-align #Y #CENTER { yMt  \path #0.15 #samplePath }
Thank you,
Ming.
Hi lilyponders,  How to align the yMt with samplepath?  Any solution is 
appreciated.  \markup { yMt  \path #0.15 #samplePath try \markup 
\general-align #Y #CENTER { ... } Eluzeattachment: 2013-09-22_185455.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align postscript markup to the right of a notehead

2008-04-20 Thread Valentin Villenave
2008/4/20 padovani [EMAIL PROTECTED]:
 Is there a way to align a postscript markup to the right of a notehead?

There probably is, but I don't know how (it would be easier with a \mark).

The simplest solution would be something like:
\override TextScript #'X-offset = #1.0

  It could be a scheme function or something like that. It would make the
 begin of a line (n n moveto) closer to the notehead.

I'm not sure I understand what you're looking for. Do you want to put
the markup /vertically/ aligned with the NoteHead?

Cheers,
Valentin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user