![]() |
#16 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
libnickel.so1.0.0 looks for Code:
res:///userStyle.css Just as it looks for installed hyphen dictionaries in Code:
res:///hyphenDicts/ This works as I have successfully installed a Dutch hyphen dictionary. And for fonts: Code:
res:///fonts/ |
|
![]() |
![]() |
![]() |
#17 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 35064
Join Date: Jan 2012
Location: Hungary
Device: Kindle Paperwhite 2013, Kobo Mini, iPad Mini
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,515
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
While that filename might be present in the lib file, running strace showed no sign of it being looked for.
|
![]() |
![]() |
![]() |
#19 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
Customers may add their own hyphenation dictionaries for other languages. Hyphenation dictionaries are in the same format as the ones used in OpenOffice. For the Dutch hyphenation to work I made a patch containing only these two files: Code:
.\usr\local\Kobo\hyphenDicts\hyph_nl.dic .\usr\share\hyphen\hyph_nl_NL.dic I assume you do have (or can find) an Hungarian hyphenation dictionary.
Then install the patch the same way as installing firmware manually. |
|
![]() |
![]() |
![]() |
#20 |
Traumatized
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
|
So, theres no equivalent for epub ?
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Not that anyone has found, but...
I have just finished a change for the Kobo driver in calibre. This adds an option to read a file with CSS and append it to the stylesheets in an epub when the sending the book to the device. It does a couple of other things depending on the contents of the file. This will be in the next calibre release. I will post a full description around the time release happens. The extended driver has already been changed so this won't break it. But, there will be an update to more fully take advantage of this change. |
![]() |
![]() |
![]() |
#22 |
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
But this is not the same since it changes the epub itself.
That means if Kobo changes things again and you try to compensate this by an additional CSS you have to upload all files again. |
![]() |
![]() |
![]() |
#23 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
It's also better than nothing! And really, I've looked at davidfor's code, Kobo would have to break ePub compatibility to stop his tweak from working. It's just a change to the CSS already in a book, doesn't change the library cooy, and gets applied every time the book is sent. And pretty slick
![]() I'm also doing some CSS tweaks, but I decided not to use this kepub CSS because I'm interested in generating files that could be used on any ePub reader post-conversion. I also went a different way from davidfor, but Kobo would have to break ePub compatibility to stop my tweak from working, which I don't see happening barring a company-wide bout of insanity. Which I guess technically possible... |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I'm with jgoguen on this. It would be much better if Kobo had user adjustable way of doing this on the device. But they don't for epubs, so something like this is the only way to go. And to break this, Kobo would have to completely epub reading.
|
![]() |
![]() |
![]() |
#25 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 35064
Join Date: Jan 2012
Location: Hungary
Device: Kindle Paperwhite 2013, Kobo Mini, iPad Mini
|
Anak: Thanks for your help, it works fine with normal epubs. However, Kobo epubs generated via Kobo Touch Extended plugin seems to be using a different hyphen dictionary instead of the hungarian one, and I've no idea how to solve it.
|
![]() |
![]() |
![]() |
#26 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Yes, it only works with normal epubs. I do think that kepub uses the same hyphen dictionary but while the Adobe renderer searches for installed dictionaries (based on the language code) the kepub renderer seems only to use the native installed dictionaries. I guess (the path of) these dictionaries are hard coded. Wish Kobo would fix this/add the fexibility to search for other installed languages.
Last edited by Anak; 08-01-2013 at 05:00 PM. |
![]() |
![]() |
![]() |
#27 | ||
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
Quote:
The moral of the story is "don't assume that it's Kobo's fault when things don't work the way you expect, especially when you're doing things they specifically say not to do" ![]() |
||
![]() |
![]() |
![]() |
#28 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Oh. Well then, that's going to be awkward. Did you put the hyphenation dic in both /usr/share/hyphen/ and /usr/local/Kobo/hyphenDicts/?
|
![]() |
![]() |
![]() |
#30 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Yes, see post #19.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-950 A little web too to generate custom CSS | gsgleason | Sony Reader | 0 | 12-18-2011 06:51 PM |
Custom CSS | Japes | Conversion | 5 | 07-09-2011 08:15 PM |
PRS-300 Stuck in Opening Book, Loading, restart cycle | tiggertiffin87 | Sony Reader | 0 | 10-18-2010 08:33 PM |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
Custom covers for Kobo's book loading screen? | Gianorama | Kobo Reader | 7 | 07-28-2010 11:44 AM |