05-04-2015, 05:40 AM | #1 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
hyphens - comparing epub - kepub in 3.15.0
Ok, i got too much free time. Examples are in french, but I don't think it makes any difference.
epub sent with KoboTouch driver (everything is correct) «À 4 heures et demi ce jour-là, l’ins- pecteur principal Chen Cao, chef de la bri- gade des affaires spéciales, police crimi- nelle de Shanghai, ignorait tout de l’af- faire.» «mais il se trouvait à une distance appréciable du bruit. L’im- meuble était bien situé, près du centre du quartier de Luwan.» kepub (KoboTouchExtended generated from epub, same book another page) «Il avait envoyé de invita- tions sans réfléchir» (correct) «un terme qui n’était pas posit- if, car on pouvait l’utiliser» (incorrect) kepub generated from epub with "kepub output driver" and sent with KoboTouch driver (same result as above) «Ils n’avaient guère le temps de parl- er.» (incorrect) official kepub bought on kobo store (another book) The result is worse than the previous cases because it doesn't wait trailing punctuation to go postal : «enseignement existent qui nous servi- (correct) raient de guide ? Il doit y avoir une néc- (incorrect) essité particulière qui conduit à ne pas» «au plaisir et à l’enseignement des plais- (incorrect) irs, de la» (the sentences from the first three examples are from Xiaolong, Visa pour Shangai ; the last one from the new traduction of Kamasutra by F. Boyer, POL) Last edited by cramoisi; 05-04-2015 at 05:49 AM. |
05-04-2015, 05:49 AM | #2 |
Guru
Posts: 732
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
|
This is a well known behavior. Kepub hyphenation is broken. This is one of the main reasons to use epub.
|
Advert | |
|
05-04-2015, 06:36 AM | #3 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Yup. As I said, i got too much free time. This entry was mainly to answer davidfor's question https://www.mobileread.com/forums/sho...&postcount=242 but found the answer too wide to put it in a dedicated plugin thread.
Regarding epubs, 3.15.0 has its downsides as the in-book justification doesn't work anymore ( https://www.mobileread.com/forums/sho...&postcount=151 ) |
05-04-2015, 01:36 PM | #4 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
(There is also a patch that will override the publisher's forced justification in EPUBS the same way the KEPUB reader does, but it has the same bad effects as in the KEPUB reader, i.e. it can also affect things that shouldn't have their justification changed such as images and headings.) Last edited by GeoffR; 05-04-2015 at 02:02 PM. Reason: (There is also a patch ...) |
|
05-04-2015, 03:02 PM | #5 | |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Quote:
|
|
Advert | |
|
05-04-2015, 03:14 PM | #6 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2010
Device: Kobo h2o, Sony prs 505
|
|
05-04-2015, 07:59 PM | #7 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Bugs are usually fixed in order of importance. If something is completely broken, it gets fixed immediately. If it prevents the thing being used, causes loss of data, it will get fixed very quickly. If it is purely cosmetic, then it will be low importance. This also depends on how long the bug will take to fix. The less time, the more likely. How easily a bug is to reproduce also affects how quickly it is fixed. If it takes seconds to reproduce and it happens all the time, it makes it easier to find the bug and fix it. If it takes days or weeks to reproduce, then fixing it takes longer because it takes much longer to work out what is wrong. To me the hyphenation bug is low priority. It seems to happen in a relatively small number of cases. If 50% of the hyphenation is wrong, then fixing it will affect a lot of users. But, if only 1% is wrong, then it drops down the priorities as it probably isn't being seen by a lot of people. And of course, the biggest reason a bug isn't fixed: The developers don't know about it. If you see a bug, report it to the Kobo. If nobody tells them, they can't fix it. If they see it themselves and nobody outside tells them, then it becomes a low priority bug to fix as it obviously isn't important to the users. |
|
05-04-2015, 11:35 PM | #8 | |
Guru
Posts: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
|
|
05-05-2015, 12:21 AM | #9 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Yes, there is that. Maintenance of both ACCESS and the Adobe RMSDK are out of Kobo's hands. And there will be other libraries from other third parties. Kobo have to convince the third party of the bug and then wait for the fixed. Then Kobo have to test the updated library with the rest of the code to make sure it still works and doesn't break anything else. Because of the work involved in that, the libraries will not be updated very frequently.
|
05-24-2015, 03:23 AM | #10 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Hi !
Is there a way to deactivate hyphenation algo in epub to just use the suggest hyphen (those with * put by the plugin «*hyphenate this*» ? It works with sideloaded kepub, where you can have a full justified text without any hyphen, but the epub reader seems to mix the two behaviors... Last edited by cramoisi; 06-13-2015 at 08:55 AM. |
05-24-2015, 05:42 AM | #11 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: Adding body {adobe-hyphenate: explicit; } to the stylesheet should do it. (Unless the publisher has used adobe-hyphenate: auto; in a more specific style, in which case you will need to remove that too.) Last edited by GeoffR; 05-24-2015 at 06:57 AM. Reason: adobe-hyphenate, not -adobe-hyphenate. |
|
05-24-2015, 06:11 AM | #12 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Yeah, I tried, but it ruins other styles (like titles, which before were centered are now left-align... and paragraph which are not indent anymore...)
Last edited by cramoisi; 05-24-2015 at 06:16 AM. |
05-24-2015, 06:49 AM | #13 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
I don't know if that just happened in 3.15.0 or it was like that in the previous firmware too (I always have automatic hyphenation on anyway so I probably wouldn't notice.) Edit: Arrgh sorry my mistake, the style should be body {adobe-hyphenate: explicit;} not -adobe-hyphenate with a leading hyphen. It is working correctly on my Glo with firmware 3.15.0. (I've corrected my earlier post to avoid future confusion.) Last edited by GeoffR; 05-24-2015 at 06:58 AM. Reason: adobe-hyphenate, not -adobe-hyphenate. |
|
05-24-2015, 07:25 AM | #14 |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Yup ! I tried it on the * and p tag but not (why the hell not ?) on the body.
90% of the time the epub hyphens are correct, but I notice an issue with the non-breakable spaces and the horizontal ellipsis (and in french they are heavily used for one is needed in front of ! ? ; etc. which is not so visible in english I think). https://www.mobileread.com/forums/sho...6&postcount=36 Anyway : adding soft hyphens + body {adobe-hyphenate: explicit;} in kobo_extra.css is a great combo Thanks for the guidance ! |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub to pdf: Doesn't respect soft hyphens in ePub | EbokJunkie | Conversion | 4 | 11-18-2013 03:27 AM |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |
converting epub to mobi for kindle 3 weird hyphens | monkeygirl351 | Calibre | 14 | 12-30-2011 12:57 AM |
Calibre deletes soft Hyphens in Epub ? | NASCARaddicted | Calibre | 4 | 09-20-2009 06:31 PM |
Certain hyphens being removed on HTML to ePub | phunkysai | Calibre | 4 | 05-19-2009 03:17 PM |