View Single Post
Old 05-13-2015, 09:49 PM   #17
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by Maida View Post
GeoffR, do you know by chance where the kepub hyphenation is and what syntax it uses?
For epub there are enough hints, and they work well, but kepub remain untouched from these patches.
Automatic hyphenation in kepubs uses the same hyphenation dictionaries as used for epubs, it is just that there are bugs in the KEPUB reader that result in the hyphens being misplaced in some common situations, such as when the word has trailing punctuation.

If you set the justification to the right-most button (full justification) then automatic hyphenation will be used in kepubs unless the publisher has turned it off in the book. There is a patch that will turn the justification on or off regardless of the position of the justification button, but it still won't work if the publisher has turned hyphenation off in the book.

Currently the only way to get good hyphenation is either sideload the book as an epub (automatic hyphenation has long worked better in epubs than in kepubs, and with the updates to the RMSDK in firmware 3.15.0 it has improved even more), or add soft hyphenation to the kepub before sideloading. But whichever option you choose, it will depend on using good hyphenation dictionaries for the language the book is in.

(Edit: I don't read sideloaded kepubs myself, so I'm just assuming soft hyphenation will work better in kepubs; but possibly the bugs in the KEPUB reader that affect automatic hyphenation could affect soft hyphenation too?)

(Edit2: Attached are screenshots from my Glo with firmware 3.15.0, EPUB on the left, KEPUB on the right, showing how the KEPUB reader hyphenates in the wrong place (everyw-here, everyt-hing) when there is trailing punctuation, and fails to justify or hyphenate properly with certain non-acsii punctuation (ellipses in this case.)

(Edit3: The hyphenation problem present in the second paragraph of the KEPUB screenshot has been fixed in firmware 3.16.0. The justification problem in the third paragraph remains.)
Attached Thumbnails
Click image for larger version

Name:	epub-hyphenation.png
Views:	229
Size:	44.6 KB
ID:	138279   Click image for larger version

Name:	kepub-hyphenation.png
Views:	233
Size:	45.5 KB
ID:	138280  
Attached Files
File Type: epub hyphenation-test.epub (1.9 KB, 138 views)

Last edited by GeoffR; 06-13-2015 at 10:05 PM. Reason: KEPUB hyphenation problem fixed in firmware 3.16.0
GeoffR is offline   Reply With Quote