Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2020, 03:46 PM   #1
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 656
Karma: 2902178
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
BobC is offline   Reply With Quote
Old 05-27-2020, 05:20 PM   #2
Frenzie
Guru
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 988
Karma: 425000
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Some discussion here but that may be completely outdated. (@poire-z will probably see this comment soon enough. )
Frenzie is offline   Reply With Quote
Advert
Old 05-28-2020, 03:11 AM   #3
Frenzie
Guru
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 988
Karma: 425000
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".
Frenzie is offline   Reply With Quote
Old 05-30-2020, 02:05 PM   #4
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 656
Karma: 2902178
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by Frenzie View Post
Reply: https://github.com/koreader/koreader...ment-634996740

It's what I thought but I didn't want to commit "authoritatively".
However you did get me an answer that solved my problem.

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
BobC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:08 PM.


MobileRead.com is a privately owned, operated and funded community.