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

Different length for same text in PDF #595

Open
jfaltenbacher opened this issue Nov 27, 2023 · 1 comment
Open

Different length for same text in PDF #595

jfaltenbacher opened this issue Nov 27, 2023 · 1 comment
Assignees
Labels
format-pdf pdf support

Comments

@jfaltenbacher
Copy link

Problem Description

Hyphenation and sentence length changes in some cases in PDF output
See comparison between SP4 and SP5 here:

image

Expected Behavior

Have same length for same text

@tomschr
Copy link
Collaborator

tomschr commented Nov 27, 2023

Thanks Julia.
The short answer: Hyphenation is a hell hole and you can only loose. 😉

A bit more background...
I've spent hours on that. 🙄 From the above screenshot it's likely that's an inline element (looks like option or literal is used.) The hyphenation changed between the SPs, but I don't know not all details anymore (need to look it up in Git).

I remember, that I've changed the hyphenation rules on some inline elements (that was mostly filename, but option could also be affected). The rule changed over time. Before it was the rule "don't hyphenate that element at all", "don't hyphenate, but only between specific characters" to "allow hyphenation". Neither change was really satisfying: either it breaks at the wrong position, leaves some visible gap, or it didn't work. I basically gave up on this. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format-pdf pdf support
Projects
None yet
Development

No branches or pull requests

2 participants