View Single Post
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