Menu

#5129 Bad horizontal spacing when \override LyricText #'X-offset

Accepted
nobody
2020-03-16
2017-04-29
No

Dmytro O. Redchuk wrote Friday, April 28, 2017 9:10 AM

please take a look at this MWE:

% --- 8< --------------------
\version "2.19.59"

{ r4 a a2 a4 a2 }
\addlyrics {
\override LyricText #'X-offset = #0
"Блаженні голодні й спрагнені правди, бо вони на" -- си -- тять -- ся.
}
% --- 8< --------------------

I've attached images for 2.18.2, 2.19.59 and 2.19.59 with no \override.

If I missed something and that spacing should be treated in some
special way for such rather extreme cases in 2.19?

Or is there any issue/regression?

2 Attachments

Discussion

  • Anonymous

    Anonymous - 2017-04-29

    From Trevor Daniels:

    ...

    The output is correct in 2.18.2 and up to 2.19.9, but wrong from 2.19.10.

    The changes in 2.19.10 include Janek's:

    Issue 2462 ab6842155a003ba7d9243507594e3e973ebbb3e4

    which directly affects lyrics, but there are several other commits which
    affect horizontal alignment generally.

    Trevor

     
    • Thomas Morley

      Thomas Morley - 2017-04-29

      For testing I reinserted the line deleted whith issue 2462 on top of recent master:
      ~~~~
      diff --git a/lily/spring.cc b/lily/spring.cc
      index d1640e7..5cc4441 100644
      --- a/lily/spring.cc
      +++ b/lily/spring.cc
      @@ -189,6 +189,7 @@ Spring::set_blocking_force (Real f)

      blocking_force_ = -infinity_f;
      min_distance_ = length (f);
      + distance_ = max (distance_, min_distance_);
      update_blocking_force ();
      }
      ~~~~
      Now the image comes out exactly as with 2.18.2.
      So we have the commit triggering the issue. Can't do more in C++, though.

      Probably the ly-code above triggers a corner case, though I'm guessing...

       
  • Anonymous

    Anonymous - 2017-04-29
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1 @@
    +2_19_60_output.jpg (18.1 kB; image/jpeg)
    
     
  • Anonymous

    Anonymous - 2017-04-29
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,2 @@
    +2_18_2.png (7.9 kB; image/png)
     2_19_60_output.jpg (18.1 kB; image/jpeg)
    
     
  • Trevor Daniels

    Trevor Daniels - 2017-04-29
    • labels: --> Regression
    • status: New --> Accepted
     
  • Dmytro O. Redchuk

    The longer the string ("Блаженні голодні й спрагнені правди, бо вони на") --- the larger the space after each consequent [half] note. So, it's not a corner case, as far as I understand, if we make that string a bit shorter --- we will have a bit smaller "extra space" (compared to 2.18's output).

     

    Last edit: Dmytro O. Redchuk 2017-05-12
  • Dmytro O. Redchuk

    Please, is there any hope that this regression will be fixed?

    2.20.0 adds that "extra space" too.

    Thank you anyway :)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.