# Markup vertical alignment

7 messages
Open this post in threaded view
|

## Markup vertical alignment

 Have a look at http://lilypond.org/doc/v2.21/Documentation/notation/formatting-text#text-alignment - the bit starting "Vertical alignment is a bit more complex".  It says "the element to be moved needs to be preceded with an anchor point".   Well - the positioning of une foret shows clearly that it doesn't.  Trawling through my collection of Lilypond executable, it look like it changed between 2.17.26 and .28. I've not grasped the current process well enough to do a patch for review, but this looks trivial enough for a simple push/merge request.  Could someone oblige? -- Phil Holmes
Open this post in threaded view
|

## Re: Markup vertical alignment

 ----- Original Message ----- From: "Phil Holmes" <[hidden email]> To: "Devel" <[hidden email]> Sent: Wednesday, May 20, 2020 11:42 AM Subject: Markup vertical alignment > Have a look at > http://lilypond.org/doc/v2.21/Documentation/notation/formatting-text#text-alignment - > the bit starting "Vertical alignment is a bit more complex".  It says "the > element to be moved needs to be preceded with an anchor point".   Well - > the positioning of une foret shows clearly that it doesn't.  Trawling > through my collection of Lilypond executable, it look like it changed > between 2.17.26 and .28. > > I've not grasped the current process well enough to do a patch for review, > but this looks trivial enough for a simple push/merge request.  Could > someone oblige? > > -- > Phil Holmes The same is true of the next section on horizontal and vertical alignment. -- Phil Holmes
Open this post in threaded view
|

## Re: Markup vertical alignment

 In reply to this post by Phil Holmes-3 On 5/20/20, Phil Holmes <[hidden email]> wrote: > Could someone oblige? Happy to: https://gitlab.com/lilypond/lilypond/-/merge_requests/67I also took the opportunity of addressing a comment I left when writing NR 1.8 more than a dozen years ago, about \hspace and \vspace (the latter of which was not even officially included back then). Talk about a blast from the past… Cheers, -- V.
Open this post in threaded view
|

## Re: Markup vertical alignment

 Valentin Villenave <[hidden email]> writes: > On 5/20/20, Phil Holmes <[hidden email]> wrote: >> Could someone oblige? > > Happy to: > https://gitlab.com/lilypond/lilypond/-/merge_requests/67> > I also took the opportunity of addressing a comment I left when > writing NR 1.8 more than a dozen years ago, about \hspace and \vspace > (the latter of which was not even officially included back then). Talk > about a blast from the past… \hspace and \vspace have changed since then in that they have empty height and width, respectively (not even including a single point).  And the spacing engine takes that as a clue not to add additional normal separation space (interword, linespace). So they usually take up less space than previously and are more convenient. \markup { word \hspace #0 space } now is the same visually as \markup { word space } when it used to add wordspace twice, once before \hspace #0 and once behind it. -- David Kastrup
Open this post in threaded view
|

## Re: Markup vertical alignment

 In reply to this post by Phil Holmes On 5/20/20, Phil Holmes <[hidden email]> wrote: > The same is true of the next section on horizontal and vertical alignment. Yes, I tried to rewrite a few things in there. Could you have a look and tell me if that makes thing less confusing in your opinion? On 5/20/20, David Kastrup <[hidden email]> wrote: > \hspace and \vspace have changed since then in that they have empty > height and width, respectively (not even including a single point). > \markup { word \hspace #0 space } > > now is the same visually as > > \markup { word space } > > when it used to add wordspace twice, once before \hspace #0 and once > behind it. And it’s even worse with \markup { word \null space }. By the way, isn’t it time to retire \null? Or at least change its oh-so-deceptive name. (\point might be confusing in another way, though; I’m open to suggestions.) Cheers, -- V.