![]() |
#1 |
Pest
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
KF8 and hyphenation support
As we all sadly know, Kindle does not jet suport hyphenation... Well, that's not completely true.
Actually the KF8/mobi7/AZW3 implemented in Kindle Fire and in Kindle touch since firmware 5.1.0 (and hopefully in K4 in the near future) has something that could be used as a workaround. Try the attached sample or look at the screenshots. The 1st paragraph is hyphenated and hyphenation is dynamically rendered. How? Simply inserting the SoftHYphen HTML entity: ­ It works very well (also note the DIV with rounded corners, which also are supported by KF8). Actually this method is bulky and makes html code unreadeable but it works and doesn't create problems to the kindle searching algorithm. I would like to implement a Calibre module to automatically insert SoftHYpens in generated AZW3 but I am completely new in Python programming and it may take me a long time (here is a thread with Kovid hints), so if someone feels to be able to do it, he's welcome. Maybe this method could be used otherwise? Last edited by pirl8; 05-30-2012 at 03:07 PM. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,158
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Oh heck no... this would seriously bloat things big time.
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 12307
Join Date: Apr 2011
Device: Kindle 3, K4NT
|
Quote:
Works fine, including searching in K4NT 4.1.0 ![]() |
|
![]() |
![]() |
![]() |
#4 |
Pest
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Why? Imagine it to be used wisely, for example just in text around pictures, or words longer than n characters. IMHO, it would give a better readability without bloating too much.
(Of course I'm talking in a Kindle user perspective) |
![]() |
![]() |
![]() |
#5 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,664
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
It would be much better if Amazon implemented a good hyphenation algorithm — a paragraph or perhaps page based one. |
|
![]() |
![]() |
![]() |
#6 |
Pest
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
I do definitely agree. Even because "Kindle for PC", for example, actually already implements hyphenation, even on mobi6 files. So it seems to me very very silly that they choose not to officially implement it in KF8... Or maybe they had a very good reason, but I can't imagine which.
|
![]() |
![]() |
![]() |
#7 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,664
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Although it is possible to give a format specific ways to add hints for a hyphenation algorithm, in general it's not necessary. I'm not sure whether KF8 has any such hinting mechanism. |
|
![]() |
![]() |
![]() |
#8 | |
Pest
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
![]() Quote:
The fact that ­ is correctly rendered can be used as a workaround; for Amazon it would't be that hard to implement a simple solution: when parsing HTML (and I guess there's an XHTML parser somewhere) the ­ could be inserted in the right position (with language guessed from the book). The user could then decide to turn this feature on or off (exactly as we do with latest firmware for embedded fonts). Maybe it's not a great implementation but I think that a page with hypens is more pleasant to read than one without, expecially when using enlarging the font. Last edited by pirl8; 06-08-2012 at 11:05 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Coolreader Epub support: CSS and hyphenation | tuxor | Onyx Boox | 6 | 03-27-2012 09:18 AM |
KF8 conversion and support in Calibre? | Rhialto | Conversion | 19 | 01-16-2012 05:45 PM |
kf8 support | apastuszak | Calibre | 6 | 11-25-2011 09:22 PM |
Orizon Firmware v 3.1 hyphenation support. What's up? | DHille | Bookeen | 3 | 07-16-2011 11:49 AM |
Cybook Opus hyphenation support | elmargol | Bookeen | 1 | 12-20-2009 01:25 PM |