Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bar spacing at end of line wrong for automatic end of lines #959

Open
eroux opened this issue Feb 24, 2016 · 2 comments
Open

bar spacing at end of line wrong for automatic end of lines #959

eroux opened this issue Feb 24, 2016 · 2 comments
Milestone

Comments

@eroux
Copy link
Contributor

eroux commented Feb 24, 2016

With the new bar spacing algorithm, bar spacing calculations at end of line should be made with nextenddifference = 0, otherwise the spacings will render poorly. This is the case for manual end of lines, but not automatic ones.

See for instance the difference at the end of line 2 in tex-output/fix-845 test between the fixed version and the wrong version.

The solution to this problem is to use a discretionary, with the normal version when no line break occurs, and the version with nextenddifference = 0 when a linebreak occurs.

As this discretionary must have a specific penalty, this means that it will work only in recent LuaTeX where bug 928 has been fixed (or rather implemented), so at least TeXLive 2016. Although it may just work with prior versions, as the penalty is the same as our current discretionary...

What do you think?

@eroux eroux added this to the 5.0 milestone Feb 24, 2016
@eroux
Copy link
Contributor Author

eroux commented Mar 2, 2016

For automatic end of lines, bars should be centered between the last note and the custo (if maxbaroffset allows it).

@rpspringuel
Copy link
Contributor

Do you mean nextbegindifference or previousenddifference? nextenddifference does not exist.

@henryso henryso modified the milestones: 5.0, 5.1.0 Apr 16, 2017
@rpspringuel rpspringuel modified the milestones: 5.1.0, 5.1.2 Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants