bug-lilypond
[Top][All Lists]
Advanced

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

Re: horizontally centering denominator in compound time signatures


From: Reinhold Kainhofer
Subject: Re: horizontally centering denominator in compound time signatures
Date: Sun, 30 Nov 2008 21:52:32 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 30. November 2008 17:50:41 schrieb Reinhold Kainhofer:
> Am Sonntag, 30. November 2008 17:30:06 schrieb Neil Puttock:
> > 2008/11/30 Reinhold Kainhofer <address@hidden>:
> > > It seems that make-center*-markup only sets the correct extents to the
> > > right, but not to the left (which is apparently set to 0...).
> > >
> > >> but you can probably work around it by
> > >> setting X-offset manually.
> >
> > Try this:
> >
> > \override Staff.Clef #'(space-alist time-signature) = #'(extra-space .
> > 1.2)
>
> It's actually not a problem of spacing between the clef and the time
> signature, but rather a problem with make-center-column-markup, which
> ignores the left extents. for example, it also breaks for 2/4 + (2+3)/8.
> The second fraction will overlap with the first +, because the extents left
> to the center of the (2+3)/8 fraction will be totally ignored. In other
> words, the center of the (3+2)/8 fraction will be where its left edge
> should be...
>
> So, this is a general problem with the general-column scheme function...

Following up the mails on lilypond-user, I can now confirm that the \center-
column markup command has an issue with the extents of the stencil it returns. 
It seems that the returned markup ignores all extents left of its center, so 
the first half of the column-markup will overlap with previous markups. A 
simple test case is attached:

\markup \line { 
     \center-column { \line {a b} \line {c} } 
     \vcenter {"+"} 
     \center-column { \line {a b} \line {c} }  
}

Cheers,
Reinhold 
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJMv0STqjEwhXvPN0RAkMYAKCRf8/L4Yi+YYE6u+dvxgCI1BSFHQCfRkWO
JapkhAepgbrACuZKrrNC/p0=
=TqcO
-----END PGP SIGNATURE-----

Attachment: center-align-markup.ly
Description: Text Data

Attachment: center-align-markup.pdf
Description: Adobe PDF document


reply via email to

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