07-31-2013, 03:31 PM | #16 | |
Fanatic
Posts: 598
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/ |
|
07-31-2013, 03:45 PM | #17 |
Connoisseur
Posts: 69
Karma: 35064
Join Date: Jan 2012
Location: Hungary
Device: Kindle Paperwhite 2013, Kobo Mini, iPad Mini
|
|
Advert | |
|
07-31-2013, 04:07 PM | #18 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
While that filename might be present in the lib file, running strace showed no sign of it being looked for.
|
07-31-2013, 05:01 PM | #19 | |
Fanatic
Posts: 598
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. |
|
08-01-2013, 02:29 AM | #20 |
Traumatized
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
|
So, theres no equivalent for epub ?
|
Advert | |
|
08-01-2013, 02:54 AM | #21 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
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. |
08-01-2013, 05:54 AM | #22 |
♫
Posts: 660
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. |
08-01-2013, 06:13 AM | #23 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
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... |
08-01-2013, 08:07 AM | #24 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
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.
|
08-01-2013, 10:51 AM | #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.
|
08-01-2013, 04:58 PM | #26 |
Fanatic
Posts: 598
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. |
08-01-2013, 05:33 PM | #27 | ||
Generally Awesome Person
Posts: 1,061
Karma: 2178845
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" If you're not sure, don't be shy to ask the people who develop the software you're using. I can't speak for all the people who develop calibre and its myriad plugins, but I'm quite happy to tell you when a bug is my fault or Kobo's fault; if it's my fault you're helping to make my software better, and if it's Kobo's fault you could help make their software better and maybe also make mine better at the same time! |
||
08-02-2013, 11:00 AM | #28 | |
Fanatic
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
|
|
08-02-2013, 12:25 PM | #29 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
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/?
|
08-02-2013, 12:52 PM | #30 |
Fanatic
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Yes, see post #19.
|
|
Similar Threads | ||||
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 |