02-23-2009, 06:02 AM | #1 |
Daywalker
Posts: 29
Karma: 52
Join Date: Jul 2008
Device: Kindle Paperwhite
|
limit hyphenation
An easy workaround for the hyphenation problem (see also the entry in the ->Hanlin Forum) could be to not hyphenate words that contain less than 5 characters (or make this configurable using word / subword length).
I have checked the source code in the original fbReader 0.10.3 release. The file where the changes have to be implemented could be "zlibrary/text/src/view/ZLTextLineProcessor.cpp" (line 228 - 242) or directly in "zlibrary/text/src/hyphenation/ZLTextHyphenator.cpp" (the "info" method). Maybe someone can have a look at it... |
02-23-2009, 06:46 AM | #2 |
OpenInkpot co-founder
Posts: 410
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Please open a ticket or it this stuff will be forgotten.
|
Advert | |
|
02-27-2009, 10:22 AM | #3 |
Daywalker
Posts: 29
Karma: 52
Join Date: Jul 2008
Device: Kindle Paperwhite
|
Hyphenation works :)
I did some more checks and downloaded the source code of fbreader. The program uses indeed the TeX algorithm, which under normal circumstances works great. So the problem is not the hyphenation algorithm but the detection of the language. Depending on the language the hyphenation will differ so if the wrong language is picked you will get a badly formated output. You can try it in the online hyphenator (e.g. "clear").
In the latest OpenInkpot snapshot it's possible to correct the language. Once I did this, everything started to work perfectly! No need to change anything. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hyphenation with fbreader180 | feedy | PocketBook | 9 | 10-13-2010 10:04 AM |
Hyphenation in KDXG? | guiyoforward | Amazon Kindle | 4 | 08-14-2010 04:32 PM |
PRS-300 No automatic hyphenation? | robert_epub | Sony Reader | 5 | 03-23-2010 10:06 AM |
hyphenation | CPatrick | OpenInkpot | 3 | 03-22-2010 07:06 AM |
Mobi Hyphenation | brewt | Kindle Formats | 3 | 07-06-2008 11:20 AM |