Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2015, 05:13 PM   #46
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
No, the options are ok.
Could you remove the book of the kobo by the device (just long click on it, and remove it), plug it on your computer, launch calibre, resend the book and look again ?

If it goes wrong again, could you give me all the option of all your sliders ? (margins, fonts and fonts size, etc.)
cramoisi is offline   Reply With Quote
Old 06-18-2015, 05:36 PM   #47
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by cramoisi View Post
No, the options are ok.
Could you remove the book of the kobo by the device (just long click on it, and remove it), plug it on your computer, launch calibre, resend the book and look again ?

If it goes wrong again, could you give me all the option of all your sliders ? (margins, fonts and fonts size, etc.)
Where do I find these options, in calibre?

I just removed the book, pluged back in, resend via calibre, but exact same 'problems' occur.
outlandos is offline   Reply With Quote
Advert
Old 06-19-2015, 02:19 AM   #48
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
I meant the options of your margin within your kobo device, when you call the menu Aa.

Also, the only difference with your book and mine, is that I remove the -moz-hyphen attribute in the book’s body CSS. So I suspect the kobo renderer is mixing up two algorithms for hyphenate the word. I got the case in french some time ago.

What you could do is :
1. to remove the hyphen inside the CSS. To doing this, you select the book in calibre, right clic, Edit the book, scroll to the CSS file like in this picture, remove the body part, save the book. I’m pretty sure the auto value is the cause. It was, in my case, when I tried with french.
2. remove the book from kobo via kobo
3. plug the kobo to the computer
4. send the modify book back
5. check for the problem
6. give me the position of your slider (aA menu of kobo when inside a book) so I can get the book in the exact same look and feel that you. It happen I got my hand on a Kobo Glo HD this morning for update. The update (and replacement of the SD card) goes well so I can test it on the same device than you.

Waiting for your feedback

(EDIT : If you have problem with the 1. , I can send your book back to you (and eventually do a video to show you how to remove these specific lines automatically with a calibre plugin later this evening)

Last edited by cramoisi; 06-19-2015 at 02:32 AM.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 02:57 AM   #49
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
The H2O (1429x1080) and Glo HD (1448x1072) have different screen resolutions, so you won't be able to get the layout exactly the same even if you use identical settings.

To see if the soft hyphenation is correct it would be easier to open the book with a text editor and check that it hasn't put any soft hyphens in the wrong place. The main ones to watch are where there are multiple punctuation characters attached to the word.
GeoffR is offline   Reply With Quote
Old 06-19-2015, 03:05 AM   #50
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Damn. On the glo HD the hyphen is wrong even with the modified book. But on the H20 I can’t make it wrong whatever I’m doing. I’m out of idea now... But now I know for sure that the hyphen_nl.dic is correct.

The only way to get hyphens right is to disable it and use manual hyphenation. I can guide you to achieve this if you want.

(PS : A strange way of further testing would be to revert back the glo at 3.15 and sideload 3.16 with the mark 6 KoboRoot.tgz only...)

Last edited by cramoisi; 06-19-2015 at 03:28 AM.
cramoisi is offline   Reply With Quote
Advert
Old 06-19-2015, 03:06 AM   #51
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Quote:
Originally Posted by GeoffR View Post
The H2O (1429x1080) and Glo HD (1448x1072) have different screen resolutions, so you won't be able to get the layout exactly the same even if you use identical settings.

To see if the soft hyphenation is correct it would be easier to open the book with a text editor and check that it hasn't put any soft hyphens in the wrong place. The main ones to watch are where there are multiple punctuation characters attached to the word.

I checked that ; and removed all the soft hyphen before doing the tests (but there was none to remove anyway).

I once asked davidfor if the bugs on hyphenation could possibly be device related. His answer was no but it’s the second time I notice a thing which seems to me device related. My wife Aura on 3.12.1 didn’t hyphenate wrong in french (on trailing punctuation) where my H2O at the same firmware had wrong hyphens in the same case. And now that I have side by side a H2O and a Glo HD, I got issue on the Glo I can’t reproduce on the H2O...

Last edited by cramoisi; 06-19-2015 at 03:18 AM.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 05:34 AM   #52
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by cramoisi View Post
Damn. On the glo HD the hyphen is wrong even with the modified book. But on the H20 I can’t make it wrong whatever I’m doing. I’m out of idea now... But now I know for sure that the hyphen_nl.dic is correct.

The only way to get hyphens right is to disable it and use manual hyphenation. I can guide you to achieve this if you want.

(PS : A strange way of further testing would be to revert back the glo at 3.15 and sideload 3.16 with the mark 6 KoboRoot.tgz only...)
Hehe you see, I didn't change any settings or options, yet the hyphenation in Dutch is broken.

I would very much like to know how to disable it and do it manually, as long as that doesn't mean I have to check each page of a book myself.
outlandos is offline   Reply With Quote
Old 06-19-2015, 06:04 AM   #53
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Quote:
Originally Posted by outlandos View Post
Hehe you see, I didn't change any settings or options, yet the hyphenation in Dutch is broken.

I would very much like to know how to disable it and do it manually, as long as that doesn't mean I have to check each page of a book myself.
Ok, let’s do that. Here are the steps :

0. Remove the book via the kobo device.

1. install the Hyphenate this plugin inside calibre, then, install the dutch hyphenation dictionary from openoffice into it.
2. create a file named kobo_extra.css with this code inside (I can send it to you if necessary) :

Code:
body {
adobe-hyphenate: explicit !important;
-webkit-hyphens: manual !important;
}
It will disable the automatic algorithm and will force kobo to hyphen only on the hyphens we will add manually.

3. drop this file inside your KoboReader device (at the root of the card - just drop it on the listed mount device)

4. In calibre, select your book and clic the "hyphenate this" button, choose the format to hyphen (epub) and let the magic happens. The plugin will add soft hyphen according to the dictionary. Beware : the language for your book has to be correctly set in the calibre metadata.

5. right-clic on the book, edit book, tools menu, filter style information. In the window, enter -webkit-hyphens, adobe-hyphenate and press ok. This will remove all mention of hyphenation inside the book. Save the book.

6. In calibre, with your device plugged (it’s plugged since point 3 anyway), clic on the arrow beside the device icon on the toolbar and configure your device. You will have to change the options of the KoboTouchExtended plugin : check «modify CSS». This way, when a book is sent to your device, the style contains in kobo_extra.css are applied to it. Be sure that the adding hyphen option is unchecked. Save. Calibre ask for a reboot, do it.

7. Send the book on your device, and eject the kobo

8. open the book, it should be correctly hyphenated.

Last edited by cramoisi; 06-19-2015 at 06:56 AM.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 06:23 AM   #54
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by cramoisi View Post
Ok, let’s do that. Here the steps :

0. Remove the book via the kobo device.

1. install the Hyphenate this plugin inside calibre, then, install into it the dutch hyphenation dictionary from openoffice.
2. create a file named kobo_extra.css with this inside (I can send it to you if necessary) :

Code:
body {
adobe-hyphenate: explicit !important;
-webkit-hyphens: manual !important;
}
It will disable the automatic algorithm and force kobo to hyphen only on the hyphen we will add manually.

3. drop this file inside your KoboReader device (at the root of the card - just drop it on the listed mount device)

4. In calibre, select your book and clic the hyphenate this button, choose the format to hyphen (epub) and let the magic happens. The plugin will add soft hyphen according to the dictionary. Beware : the language for your book has to be correctly set in the calibre metadata.

5. right-clic on the book, edit book, tools menu, filter style information. In the window, enter -webkit-hyphens, adobe-hyphenate and press ok. This will remove all mention of hyphenation inside the book. Save the book.

6. In calibre, with your device plugged (it’s plugged since point 3 anyway), clic on the arrow beside the device icon on the toolbar and configure device. You will change the options of the KoboTouchExtended plugin : check «*modify CSS*». This way, when a book is sent to your device, the style contains in kobo_extra.css are applied to it.

7. Send the book on your device, and eject the kobo

8. open the book, it should be correctly hyphenated.
Thanks, ill try it when I get home. Just one question: will it still be able to be kepub formats?
outlandos is offline   Reply With Quote
Old 06-19-2015, 06:49 AM   #55
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Quote:
Originally Posted by outlandos View Post
Thanks, ill try it when I get home. Just one question: will it still be able to be kepub formats?
It’s the KoboTouchExtended driver which makes a kepub out of an epub when you send it on your device. Thus it won’t change a thing.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 09:26 AM   #56
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Question

Quote:
Originally Posted by cramoisi View Post
It’s the KoboTouchExtended driver which makes a kepub out of an epub when you send it on your device. Thus it won’t change a thing.
I get an error when trying to add a hyphenation dic to the plug in:

http://i.imgur.com/JcXsPq1.jpg

This is what im trying to add:

http://extensions.openoffice.org/en/...ort_order=DESC
outlandos is offline   Reply With Quote
Old 06-19-2015, 10:06 AM   #57
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Quote:
Originally Posted by outlandos View Post
I get an error when trying to add a hyphenation dic to the plug in:

http://i.imgur.com/JcXsPq1.jpg

This is what im trying to add:

http://extensions.openoffice.org/en/...ort_order=DESC
I mailed you the .dic updated July 2013 + the kobo_extra.css file; I added the dictionary in my plugin to test it ; it’s working.

https://www.dropbox.com/s/jybsu4ef8a...24.06.png?dl=0

Last edited by cramoisi; 06-19-2015 at 10:24 AM.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 12:54 PM   #58
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by cramoisi View Post
I mailed you the .dic updated July 2013 + the kobo_extra.css file; I added the dictionary in my plugin to test it ; it’s working.

https://www.dropbox.com/s/jybsu4ef8a...24.06.png?dl=0

Thanks, it seems to be working!

Tonight ill manually work on all my books (15) and coming weeks will let you know if i see anything strange.

But, why does this work? I mean, what does this mean?

Thanks again,
outlandos
outlandos is offline   Reply With Quote
Old 06-19-2015, 03:12 PM   #59
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Quote:
Originally Posted by outlandos View Post
Thanks, it seems to be working!

Tonight ill manually work on all my books (15) and coming weeks will let you know if i see anything strange.

But, why does this work? I mean, what does this mean?

Thanks again,
outlandos
GREAT !

It means the hyphen algorithm of the kepub renderer ignores the rules of the hyphen dictionary in some circumstances unknown to me. By setting -webkit-hyphens : manual; we told the renderer to hyphen words only where we have set soft hyphens inside the book – which is the work of the plugin ‘hyphenate this’. It places invisible hyphens at the correct place according to the dutch dic (which is the same than the kepub renderer is using wrong). Thus we know the hyphen dictionary for dutch is correct. And by removing all mention of hyphen inside the css book we disable any css override by the publisher to ensure that the usage of soft hyphens are now correct.

Anyway, the tests on epub and on the glo HD has to be done (will do it during the week) since it’s working on the h2o.
cramoisi is offline   Reply With Quote
Old 06-19-2015, 03:21 PM   #60
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by cramoisi View Post

5. right-clic on the book, edit book, tools menu, filter style information. In the window, enter -webkit-hyphens, adobe-hyphenate and press ok. This will remove all mention of hyphenation inside the book. Save the book.
On all other books, when i do this, it says: No results (er zijn geen overeenkomstige schrijfregels gevonden).

Am I doing something wrong or is this okay?
outlandos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphenation Simboubou PocketBook 9 09-15-2014 05:21 AM
Hyphenation Siard Kobo Reader 6 08-09-2013 07:40 AM
Hyphenation - again.. ItsMee Conversion 2 07-31-2012 03:00 PM
Hyphenation Jini ePub 3 04-05-2012 11:48 AM
Hyphenation in Dutch pini PocketBook 0 06-28-2011 03:34 AM


All times are GMT -4. The time now is 01:43 PM.


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