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


align in \markup

2013-09-22 Thread MING TSANG
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
}attachment: 2013-09-22_085044.png___
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


align postscript markup to the right of a notehead

2008-04-20 Thread padovani

Is there a way to align a postscript markup to the right of a notehead?
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.

thanks for any help.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://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


Re: left-align text markup

2006-02-18 Thread Mats Bengtsson

\column gives you a number of left-aligned lines.

  /Mats

Quoting cordilow [EMAIL PROTECTED]:



How do you do line breaks with left-align?  It doesn't work like center-align
or column.
Is there an alternative method of doing this?

I desire to have multiple lines of text on the bottom left corner of the
page.  This is easy enough to do at the top of the page, due to all the
header items, but there are only centered footer items.  I can get one line
on the bottom left just fine, however.
--
View this message in context: 
http://www.nabble.com/left-align-text-markup-t1143205.html#a2997343

Sent from the Gnu - Lilypond - User forum at Nabble.com.



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







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


left-align text markup

2006-02-17 Thread cordilow

How do you do line breaks with left-align?  It doesn't work like center-align
or column.
Is there an alternative method of doing this?

I desire to have multiple lines of text on the bottom left corner of the
page.  This is easy enough to do at the top of the page, due to all the
header items, but there are only centered footer items.  I can get one line
on the bottom left just fine, however.
--
View this message in context: 
http://www.nabble.com/left-align-text-markup-t1143205.html#a2997343
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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