Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2022, 04:50 AM   #1
xversion1
Enthusiast
xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
KOreader can't render different types of orderlist?

So I use different orderlist types, like this:
Code:
<ol type="a">
<ol type="i">
...
But Koreader always shows 1, 2, ... no matter what type. Is it a bug or it just can't render any other types but the default?
xversion1 is offline   Reply With Quote
Old 05-21-2022, 09:10 AM   #2
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,016
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Formatting experts put NO type in a list and explicitly insert bullet, 1, a, A, i, α, etc at the start of the line as many ebook renderers don't properly handle type="x", better is <ol>
Quoth is offline   Reply With Quote
Advert
Old 05-21-2022, 12:05 PM   #3
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
Quote:
Originally Posted by xversion1 View Post
Is it a bug or it just can't render any other types but the default?
Isn't that the same thing?

Various list-style-types should be supported though. This might be more of a defect in our default CSS, with any luck easily resolved.

You could give it a quick try by adding something like this to your document. If it works (and it should) then we should probably simply add it to the default stylesheet.

Code:
ol[type="a"] {
 list-style-type: lower-alpha; /* or upper-alpha? */
}
See https://developer.mozilla.org/en-US/...ist-style-type
Frenzie is offline   Reply With Quote
Old 05-22-2022, 09:52 PM   #4
xversion1
Enthusiast
xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
Quote:
Originally Posted by Frenzie View Post
Isn't that the same thing?

Various list-style-types should be supported though. This might be more of a defect in our default CSS, with any luck easily resolved.

You could give it a quick try by adding something like this to your document. If it works (and it should) then we should probably simply add it to the default stylesheet.

Code:
ol[type="a"] {
 list-style-type: lower-alpha; /* or upper-alpha? */
}
See https://developer.mozilla.org/en-US/...ist-style-type
Works. Thanks!
Btw, could you also take a look at this? https://www.mobileread.com/forums/sh...4&postcount=32
xversion1 is offline   Reply With Quote
Old 05-23-2022, 05:48 AM   #5
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
It looks like for the moment this isn't fixable exactly, but you could switch to the HTML5 stylesheet.
https://github.com/koreader/crengine/issues/480
Frenzie is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Qt WebEngine Render dunhill Viewer 2 04-29-2022 04:29 PM
Where did the grayscale vs color render option go ? arooni KOReader 7 03-28-2022 06:46 PM
Tables: what is the best way to render them on ebooks? 1v4n0 Workshop 21 12-22-2019 12:47 PM
Why do different books render differently in the viewer? GarryB123 Calibre 33 11-14-2019 12:08 PM
over 2 mins to render PDF page reh_reh iRex 6 11-11-2006 07:57 AM


All times are GMT -4. The time now is 05:28 PM.


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