05-27-2020, 03:46 PM | #1 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
CSS Processing order
I see that KoReader can have user created styles (in /styletweaks) .
When reading a book there may also be other stylesheets that will influence presentation. Such as, say, one called "book.css" within an EPUB, (the so-called "embedded style"). Then there is the inbuilt "epub.css". I'm trying to understand in what order the various css stylesheets will be processed. Understanding this would explain why I was getting indented paragraphs on the first line of a chapter when I wasn't expecting it from the book's own styles. I have since edited that EPUB to display correctly but would like to know the "cascade" order as it might help me correct the presentation of other books by KoReader if I find others with the same problem. An authoritative view on this would be appreciated. BobC |
05-28-2020, 03:11 AM | #3 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Reply: https://github.com/koreader/koreader...ment-634996740
It's what I thought but I didn't want to commit "authoritatively". |
05-30-2020, 02:05 PM | #4 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
I was looking for an "authoritative" answer as I didn't want to have to wade through a load of opinions on how it would work on <insert name of other software>. The book in question was one I had built the css for and I've learned a lesson about making sure that I don't rely on selectors having a value unless I've declared it, and just because it displays the way I expected in Calibre's preview (or Sigil, or Adobe) it will behave the same using other software such as KoReader. So thanks for raising it on Github and getting me the answer. BoB |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch-Processing of CSS in epub | Kiruhdu | Sigil | 7 | 08-31-2018 10:44 AM |
Kobo.com order processing time | gadgetdude | Kobo Reader | 76 | 11-23-2015 05:49 PM |
In an ePub reader, what are the rules for processing styles/CSS? | mattcurtis | ePub | 1 | 04-05-2013 11:11 AM |
Bug in Kobo processing of epub files causing hang in "Processing content" | BensonBear | Kobo Reader | 21 | 12-21-2012 05:47 AM |
Kobo.com pre-order processing has started | borisb | Kobo Tablets | 11 | 10-27-2011 08:10 PM |