05-03-2016, 01:45 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2016
Device: Kobo Glo HD
|
Overriding Ebook Stylesheet
I've recently purchased a Kobo Glo HD after using the desktop Kobo app for a while to read some purchased ebooks. The desktop app appears to ignore a lot of book-specific formatting in order to display pages nicely within the window, but I was surprised to find that the Glo HD does not do this. Instead, my purchased ebooks have different default margins and line-spacing which cannot be changed (the sliders are disabled for Japanese books), and some English books ignore my font and justification selections. I'm disappointed by all this, because I thought that it would render the books like the desktop app does, and seeing as the sole purpose of the device is to render ebook pages, I had thought that it would do a better job. Reading through other forum posts, I believe that the formatting can be changed manually by DeDRMing books, importing them into Calibre, manually adjusting the files, and then sideloading the files onto the device. However, this adds a bunch of extra steps between buying a book and being able to read it, and moreover I can't get Calibre to work properly with vertical Japanese text. Instead of going through all of this, is it possible to put a single stylesheet on the device that will override book-specific styles or something like that?
Thanks for your help! Last edited by Archuleta; 05-03-2016 at 02:21 AM. |
05-03-2016, 08:32 AM | #2 |
Enthusiast
Posts: 34
Karma: 67986
Join Date: Feb 2014
Device: Kobo Glo, Kobo Aura H2O
|
I don't know how to do it without dedrm. On the other hand, I know there are some solutions for dedrm / sideload books:
1. There's a feature in calibre's Kobo driver that you can put a file called kobo_extra.css in the device's root directory and calibre would embed its content during sending to the device, see here. 2. About the vertical text, it's only supported by the Access engine which would only work on something called "kepub." With a plugin called "KoboTouchExtended", calibre can convert your books to kepub on the fly when sending them to your device. 3. And about margin/linespace of Japanese books, you can edit the books' locale (or just the locale in the onboard database, KoboReader.sqlite) to anything not Japanese to unlock the scrollbars, see here. Last edited by anavin; 05-03-2016 at 08:39 AM. |
Advert | |
|
05-03-2016, 07:25 PM | #3 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
There are separate device stylesheets for ePub and KePub books, but they are dynamic, created in memory from fragments with values that depend on which options you have selected on the device.
Currently the only way to change the device stylesheets is by patching the firmware. In earlier firmware versions there was a user stylesheet named kepub-book.css that was used for KePub books, but that feature was removed some time back (somewhere around firmware 3.2.0 I think.) If you have a book where you can't change the font face, then I think that must be an ePub book. From what I know there is no way the publisher can prevent the font being changed in a KePub book. If you sideload the book in KePub format instead then I think you will get something a bit closer to what you see in the Kobo app. |
05-03-2016, 10:48 PM | #4 | |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
for [vertical] japanese text, kepub is your only option anyhow. (if it worked in regular epub that would be news to me). so far I opted to edit the css in the book directly (e.g. to make furigana grey instead of black so I try to read kanji first). actually I also had to edit the HTML since the kobo does not handle furigana too well in the first place (prevents dictionary lookups, which could work better for japanese... oh well). for more external stylesheet stuff you might have to switch to the alternate readers (koreader, coolreader), not sure if they have japanese support Last edited by frostschutz; 05-03-2016 at 10:51 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Overriding style sheet for one paragraph | Alda | Sigil | 9 | 05-20-2015 09:25 AM |
Aura H2O ereader font options vs ebook stylesheet | Shadowjack | Kobo Reader | 10 | 05-17-2015 01:40 PM |
Overriding Proportional Spacing | townsend | Sigil | 6 | 05-02-2013 10:22 PM |
SONY PRS T1:Regarding metadata overriding by the buggy os | anishd19 | Devices | 4 | 01-03-2012 12:36 AM |
Problem Overriding Recipe | rozen | Calibre | 3 | 12-15-2010 11:52 AM |