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 01-25-2021, 01:10 PM   #1
maraskan_user
Junior Member
maraskan_user began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Device: Boox Nova 3, PW4
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, 12 views)
maraskan_user is offline   Reply With Quote
Old 01-25-2021, 04: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,165
Karma: 437844
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, 05: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: 61,847
Karma: 88645836
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, 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, 04: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,165
Karma: 437844
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, 06: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: 61,847
Karma: 88645836
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:36 AM.


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