Skip to content

Minor hyphenation and text flow issues #998

@cbix

Description

@cbix

Affected Version

1.1.0-rc+402e887

Describe the Bug

In some cases for 2 German epubs, I could observe text flow issues with hyphenation enabled.

1. Missing expected word-break
Not sure if this is expected, apparently there's (rightfully) a non-breaking space between 200 and Quadratkilometer but I don't know how to check which word breaks CrossPoint introduces here or how to inspect the underlying hyphenation trie. Is it possible the non-breaking space prevents the following word from breaking at all? Because that would actually be a software bug and not just explained through missing hyphenation data.

Additionally, I'm not sure if it's expected that the non-breaking space has a fixed small width while regular spaces stretch for justification.
Image

2. Hyphenated word flows to next line
This should not happen, the hyphen is inserted at the right place but the word then flows to the next line including the hyphen.
Image

3. Quoted word not hyphenated
(See #998 (comment))

Steps to Reproduce

Due to the epubs' copyright I unfortunately can't provide them publicly, maybe this issue can serve as a place to collect further examples from public domain books where this happens.
(Update: html excerpts in #998 (comment))

Expected Behavior

For comparison, here's how these paragraphs look in landscape mode:

Image Image

Relevant Log Output/Screenshots

(No valuable info in logs, screenshots are pasted above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageBug to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions