On Fri, May 30, 2025 at 10:12:13AM +0000, Werner LEMBERG wrote:
>
> > In the following example, I expect the word "Composer" to be
> > right-aligned to the right end of the staff. There is plenty of
> > room, and it need not protrude past the end of the staff.
> >
> > ************
> > \version "2.24.1"
> > \paper {
> > indent = #0
> > line-width = #100
> > }
> > \header {
> > poet = "Poet (Trans. by Translator Name)"
> > composer = "Composer"
> > }
> >
> > {r1 r r r r r r r}
> > ************
>
> The reason for this behaviour is a shortcoming (IMHO) in the
> definition of the line that contains the 'composer' field. This line
> actually holds three fields, as can be seen in the definition of
> `\bookTitleMarkup` in `ly/titling-init.ly`.
>
> ```
> ...
> \fill-line {
> \fromproperty #'header:poet
> { \large \bold \fromproperty #'header:instrument }
> \fromproperty #'header:composer
> }
> ...
> ```
>
> If you copy `\bookTitleMarkup` to your input file and change the above
> code to
>
> ```
> \fill-line {
> \fromproperty #'header:poet
> \fromproperty #'header:composer
> }
> ```
>
> you get the desired output.
That's a good idea to adjust `\bookTitleMarkup` in my input file. Thank
you for the suggestion!
But I still think that there's a problem with \fill-line. I don't think
it should cause the word "Composer" to protrude past the end of the
staff when there is plenty of room for it to fit properly right-aligned
to the end of the staff.
James