Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-25-2021, 12:10 PM   #1
maraskan_user
Member
maraskan_user began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2020
Location: Germany
Device: Boox Nova 3, Galaxy Tab S6, Samsung M21
KOreader rendering: CSS rule after @namespace ignored

Say you have a CSS file like this:
Code:
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA {
  color: red;
  font-size: 2em;
  font-style: italic;
}
.StyleB {
  color: red;
  font-size: 2em;
  font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
Attached Files
File Type: epub GF Tests 3.epub (2.7 KB, 154 views)
maraskan_user is offline   Reply With Quote
Old 01-25-2021, 03:15 PM   #2
Frenzie
Wizard
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: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
That's probably a bug and/or unsupported for now.
Frenzie is offline   Reply With Quote
Advert
Old 01-25-2021, 04:55 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by maraskan_user View Post
Say you have a CSS file like this:
Code:
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA {
  color: red;
  font-size: 2em;
  font-style: italic;
}
.StyleB {
  color: red;
  font-size: 2em;
  font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
Report it in the Github so it can be fixed.

https://github.com/koreader/koreader/issues
JSWolf is offline   Reply With Quote
Old 01-27-2021, 03:22 AM   #4
Frenzie
Wizard
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: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
See https://github.com/koreader/koreader/issues/7199
Frenzie is offline   Reply With Quote
Old 01-27-2021, 05:58 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by maraskan_user View Post
Say you have a CSS file like this:
Code:
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA {
  color: red;
  font-size: 2em;
  font-style: italic;
}
.StyleB {
  color: red;
  font-size: 2em;
  font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
Until this is fixed, the solution is to install the Quality Check plugin in Calibre and use it to search for @namespace and then in the Calibre editor, remove it.
JSWolf is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MoonReader and html/css rendering nindotza Android Devices 4 09-26-2020 04:01 AM
Koreader on Likebook Mars : landscape night mode rendering problems planorit KOReader 2 12-22-2018 01:57 PM
W3C: at-rule namespace not implemented Leonatus Sigil 8 10-12-2016 09:24 PM
Errors with EPUB rendering on Kobo Aura H2O running koreader-stable-v2015.11 algernonramone KOReader 8 03-16-2016 12:55 AM
[Koreader] Rendering problem on KPW2 natto Kindle Developer's Corner 1 04-10-2014 10:42 AM


All times are GMT -4. The time now is 09:44 AM.


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