Bug 697707

Summary: request for auto hyphenation in epub (enable\disable auto hyphenation)
Product: MuPDF Reporter: foobnix <ivan.ivanenko>
Component: epubAssignee: MuPDF bugs <mupdf-bugs>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: sample.png

Description foobnix 2017-03-30 09:28:44 UTC
Created attachment 13512 [details]
sample.png

I would like to request to support word wraping for epub books.
It's better to read books with good text formatting
all lines with same length is better view
It would be good to enable-disable this feature.
Comment 1 foobnix 2017-04-15 01:50:35 UTC
Here is example .js library for hyphenation https://github.com/mnater/Hyphenator with patters for all Languages

here is java sample with the same patterns
https://github.com/bluejamesbond/TextJustify-Android/blob/master/library/src/main/java/com/bluejamesbond/text/hyphen/DefaultHyphenator.java

I think C lang should be very similar.

MuPDF can make hyphenation only for the last word in the line, for better speed.

It would be very good if you can make beautiful text formatting for all languages.