Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Miscellaneous > Archive > OpenInkpot

Notices

 
 
Thread Tools Search this Thread
Old 02-23-2009, 05:02 AM   #1
red_dragon
Daywalker
red_dragon is on a distinguished road
 
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...
red_dragon is offline  
Old 02-23-2009, 05:46 AM   #2
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
Please open a ticket or it this stuff will be forgotten.
dottedmag is offline  
Advert
Old 02-27-2009, 09:22 AM   #3
red_dragon
Daywalker
red_dragon is on a distinguished road
 
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.
red_dragon is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphenation with fbreader180 feedy PocketBook 9 10-13-2010 09:04 AM
Hyphenation in KDXG? guiyoforward Amazon Kindle 4 08-14-2010 03:32 PM
PRS-300 No automatic hyphenation? robert_epub Sony Reader 5 03-23-2010 09:06 AM
hyphenation CPatrick OpenInkpot 3 03-22-2010 06:06 AM
Mobi Hyphenation brewt Kindle Formats 3 07-06-2008 10:20 AM


All times are GMT -4. The time now is 02:08 AM.


MobileRead.com is a privately owned, operated and funded community.