![]() |
#16 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
I wonder if this is another difference between ACCESS and the Adobe RM engines? You're seeing success with global KePub styling but ibu is failing with per-ePub CSS. Or maybe it would be the same if you applied the CSS directly to a KePub instead of globally.
|
![]() |
![]() |
![]() |
#17 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
What does that mean exactly please?
Where does the scala begins and where does it end? (1 to 4?) Is it equal to the CSS value of line-height? Quote:
May be we can prove that together with a reference valid epub document without any embedded css? Does anyone know a source of such an epub? |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,439
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Regards, David |
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,381
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Would this do?
|
![]() |
![]() |
![]() |
#20 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,439
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
The kepub-book.css file I used for this test had the following contents: Code:
body { -webkit-hyphens: auto !important; line-height: 1.0 !important; widows: 0 !important; orphans: 0 !important; margin: 0 !important; padding: 0 !important; } div { font-size: 1em !important; line-height: 1.0; !important; margin-bottom: 0.2em !important; padding: 0 !important; } p { font-size: 1em !important; line-height: 1.0; !important; margin-bottom: 0.2em !important; padding: 0 !important; } David |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,439
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Removing that file allowed the font size slider to work. Unfortunately, it also ended each page on a paragraph which gave an imposing amount of blank space. Regards, David |
|
![]() |
![]() |
![]() |
#22 | |
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
|
Quote:
And for completeness... The font size are: 12, 14, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 28, 32, 36, 40, 44, 46, 48, 50, 52, 54, 56, 58 The margins run from 0 to 16 in steps of 2. These values are stored in the configuration file. They are also stored in the database for each book when you change the settings. If you remove the settings from the configuration file, the defaults will be used for the next book. If you edit the configuration file, you can use any value in the above ranges. So you can set a font size of 23. Values above the range seem to work. Below the range there seems to be limits. My testing showed that the minimum line spacing is 1.225. |
|
![]() |
![]() |
![]() |
#23 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Yes, it would. Thanks
![]() May be you like to add a TOC, metadata and a cover.jpg (not a cover.xhtml) into that document and reupload it. It is nice to have complete reference document for testings in the forum. If you have an EPUB3 editor, you can may be clone the document as a valid EPUP3. Another very helpful reference document would be a Kepub file with and a second without kobo-android.css file" "speaking names" could be: valid-minimalistic-epub2-no-styles.epub valid-minimalistic-epub3-no-styles.epub valid-minimalistic-kepub-with-kobo-android-css.kepub.epub valid-minimalistic-kepub-without-kobo-android-css.kepub.epub Of course: just a suggestion ![]() @davidfor Thanks for these complete listings! Last edited by ibu; 08-06-2013 at 03:02 AM. |
![]() |
![]() |
![]() |
#24 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
That leads into the wish: We need a hack, that allows a global style file for epubs, and not for just for kepubs. Kepubs add to much stuff, which is a new area out of our control. Until we have such a hack, may Joel can spent us an option, which cleans kepubs of the kobo-android.css automatically. Internetbrowser use a so called browser style sheet. It contains rules for every element of the html specification. rules without !important of course. It is the "first level" in the CSS cascade. May be we can get access to Kobos "ereader style sheet" somewhere in the depth of the file system? |
|
![]() |
![]() |
![]() |
#25 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
Because you have bad designed epubs where you have help yourself with manually changing the font-size. Kobo lacks a simple "reset button". "Disable all Kobo reading settings for the open book" "Disable all Kobo reading settings for all books" Unfortunately there's no value "inherit" for "Kobo ereader.conf" fields. But may we find ways for a better and more complete control of the reading design of kepubs by disabling kobo-android.css file automatically. Please see my other post, too. |
|
![]() |
![]() |
![]() |
#26 | |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#27 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,439
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
So far all 9 of the kobo-android.css stylesheets I've run into have not been encrypted. I don't know is this is a limitation of Kobo's DRM scheme or a decision on their part to allow modifying css stylesheets without having to decrypt and re-encrypt the files. The expletive deleted Adobe page-template.xpgt files are encrypted though removing them seems to have had minimal noticeable effects. Regards, David |
||
![]() |
![]() |
![]() |
#28 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
I will submit a feature request as soon I finished further test around the complex topic "getting full control over all involved css in the chain". |
|
![]() |
![]() |
![]() |
#29 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
I've never bought a book from the Kobo shop. And indeed, no one of my epubs I exported with the Plugin KoboExtended as a Kepub, contains a "kobo-android.css".
|
![]() |
![]() |
![]() |
#30 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
That's because I don't create that file. I add "kobo.js" only if you have a reference.kepub.epub, which probably (but not definitely) does have kobo-android.css. And non-Kobo books would likely not have Kobo files unless they go through my plugin.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Header and Footer in EPUB | Raja1205 | ePub | 7 | 08-29-2012 02:36 AM |
Header Footer- New Updates | lmccurry78 | Conversion | 6 | 02-01-2011 03:33 PM |
Add Header/Footer | hrwriter | Calibre | 3 | 12-08-2010 05:11 AM |
Removing header and footer | radicalnomad | Calibre | 2 | 08-26-2010 10:34 AM |
Header/Footer removal | Solicitous | Calibre | 2 | 03-30-2010 05:53 AM |