Re: Why has `NonMusicalPaperColumn` a width?

2023-12-19 Thread Jean Abou Samra
> I fully agree.  However, what I don't understand is why a zero-width
> non-musical paper column has a non-zero ideal spring distance.
> Additionally, this 0.5 value is hard-coded and undocumented,
> apparently present in the code since the very beginning.

Well, it's not zero-width, since it contains the rehearsal mark.

I do agree that the hardcoded 0.5 in `spacing-basic.cc` is suboptimal.


signature.asc
Description: This is a digitally signed message part


Re: Why has `NonMusicalPaperColumn` a width?

2023-12-19 Thread Werner LEMBERG


>> Why does the `NonMusicalPaperColumn` grob have a width of 0.5
>> units? Where it is defined?
> 
> Are you referring to the blue arrow from the second-to-last
> non-musical column to the last rest?  That's not a width, it's the
> [ideal] distance to the last rest's musical column.

Yes, it was sloppily formulated, sorry.

> Also, why would non-musical columns have no width in general?  Since
> they're containers, is it not logical for them to have the same
> width as the set of grobs they contain?

I fully agree.  However, what I don't understand is why a zero-width
non-musical paper column has a non-zero ideal spring distance.
Additionally, this 0.5 value is hard-coded and undocumented,
apparently present in the code since the very beginning.


Werner



Re: Why has `NonMusicalPaperColumn` a width?

2023-12-19 Thread Jean Abou Samra
> it's the minimum distance to the last 

Correction: the *ideal* distance


signature.asc
Description: This is a digitally signed message part


Re: Why has `NonMusicalPaperColumn` a width?

2023-12-19 Thread Jean Abou Samra
> Why does the `NonMusicalPaperColumn` grob have a width of 0.5 units? Where it 
> is defined?

Are you referring to the blue arrow from the second-to-last non-musical column 
to the last rest? That's not a width, it's the minimum distance to the last 
rest's musical column.

Also, why would non-musical columns have no width in general? Since they're 
containers, is it not logical for them to have the same width as the set of 
grobs they contain?



signature.asc
Description: This is a digitally signed message part


Why has `NonMusicalPaperColumn` a width?

2023-12-16 Thread Werner LEMBERG

Consider this example

```tex
\version "2.19.2"

music = { r4 r r \mark III r }

{ \music }

{ \override Score.RehearsalMark.non-musical = #'()
  \music }

\layout {
  \context {
\Score
\override NonMusicalPaperColumn.stencil = #ly:paper-column::print
\override PaperColumn.stencil = #ly:paper-column::print } }
```

Why does the `NonMusicalPaperColumn` grob have a width of 0.5 units?
Where it is defined?  And where does the additional 0.25 units between
the rest and the non-musical paper column come from?


Werner