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-29-2024, 06:03 AM   #1
galax
Enthusiast
galax began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2023
Device: none
Proper tables

Greetings,

From several posts I get the impression that td/tr is mostly obsolete in epub format. The main reason is its lack of proper formatting with overall design.

The alternatives that I've see is to use grid or flex.

But here comes my question does koreader have 100% flex and grid css support? In the past I had so much troubles with lo/li and dt/dd with horrible render results.

If anybody can give me some hints on how to create responsive tables in koreader it'd be great.

The last question is whether flex or grid will resize in vertical and horizontal mode.

Thanks in advance.
galax is offline   Reply With Quote
Old 01-31-2024, 05:30 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,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
But here comes my question does koreader have 100% flex and grid css support? In the past I had so much troubles with lo/li and dt/dd with horrible render results.
It doesn't.

Quote:
If anybody can give me some hints on how to create responsive tables in koreader it'd be great.
It's hard to tell what you're trying to achieve. If you want tables just use tables.
Frenzie is offline   Reply With Quote
Advert
Old 02-01-2024, 08:27 AM   #3
galax
Enthusiast
galax began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2023
Device: none
I was gonna answer myself.

Indeed, after some trials koreader doesn't support at all.

Grid offers interesting ways of organizing data in a sematic data. But given the purpose I think it's overdoing things. Traditional tables is good enough for now.

I was a bit annoyed about td/tr not separating the header from syntax row. Or the td/tr not able to create columnated data.

That is one block of td/tr can't be displayed as column.

Also many blogs online css tables are superior because of this or that reason.

Anyways, traditional tables are fine after all.

Thanks for replying.
galax is offline   Reply With Quote
Old 02-02-2024, 04:40 AM   #4
galax
Enthusiast
galax began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2023
Device: none
It gets a bit more complicated.

Koreader actually is able to render rotated rows as columns with some changed in the settings.

The following render choices are available:

Legacy
Flat
Book
Web


And this is the description in the handbook:

Quote:
RENDER MODE: This option determines how your document is rendered by KOReader. Default is WEB and generally you don’t need to change this setting. When a book (or saved web page) is very complicated (specified widths or margins, negative margins, floats etc.) and layout looks bad or overflow the screen, you can try other rendering modes.
So the 'column' css syntax instead of rows:

Code:
tr { display: block; float: left; }
th, td { display: block; }
in Koreader does render properly in "LEGACY" mode but not in "WEB" mode which is the one the handbook recommends using.

It's interesting to note that Kobo does render the above css snippet correctly.

A search online about epub and tables there's some official specs about the matter:

https://epubknowledge.com/docs/tables

Quote:
All tables should have the epub:type="table" applied to the table tag, example:
Not much more, it only gives examples of data in rows.

Now comes the difficult part on deciding WHAT TO DO for writing the ebook! It takes some time and effort to create content and with so many choices I'd rather avoid using the wrong format for the epub.

a - Use 'css' column rows AND use koreader in "LEGACY" mode.
b - Or use official epub table specs and force column data into unnatural row html syntax.

I need help. What's the general consensus on the issue???

Thanks in advance.
galax is offline   Reply With Quote
Old 02-03-2024, 10:29 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,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
The general consensus is that you want to add a minimal testcase, and probably also a screenshot or two.

But ignoring that for a second, if you don't want tables why are you using tables?
Frenzie 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
What would be the proper e-reader for me rainalkar Which one should I buy? 18 10-10-2013 05:39 PM
Is this a proper expression? VydorScope Writers' Corner 14 11-22-2012 07:59 PM
Proper Use of Kobo?? strawfordt Kobo Reader 7 06-04-2010 12:40 AM
A proper introduction Seabound Introduce Yourself 6 09-26-2008 03:24 AM


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


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