Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2019, 07:07 AM   #1
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
Tables: what is the best way to render them on ebooks?

Hello, what do you think is the best way to render tables on epub/azw3 ebooks? I usually turn them into html tables, which works fine on kindle and on one of the apps I use (Moon+), but it doesn't work on Kobo (I'm told) and on Lithium, another app.
I guess turning them into images would make them more cross-compatible, but it would also make the books heavier.

What's your suggestion?
1v4n0 is offline   Reply With Quote
Old 12-15-2019, 07:13 AM   #2
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: 74,504
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Tables do work on Kobo Readers. Create a test ePub with a table and I'll try it on my Kobo with the latest firmware.
JSWolf is offline   Reply With Quote
Advert
Old 12-15-2019, 07:17 AM   #3
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
PM
1v4n0 is offline   Reply With Quote
Old 12-15-2019, 09:00 AM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
JSWolf can definitely help you out testing for the kobo.

In general, tables should be avoided UNLESS they are small (2-3 columns) and really need to be presented as a table. Too many columns and the data just becomes unreadable on smaller displays.

Your idea of using images is most definitely the most cross-compatible, and image "weight" can be minimized by choosing the correct format (.gif, .png, .jpg). However, you still need to be concerned with too many columns on a small display - it can make the image so small it's unreadable.
Turtle91 is offline   Reply With Quote
Old 12-15-2019, 09:29 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: 74,504
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Is it OK if I post a screen shot (with cellphone camera) of one of the tables? It does work no problem sort of. If the text if made large enough, it won't look good. But at whatever size it is in the photo, it looks good. It's the table from Tav. 4.

Oh and one more thing, I added a text-align: left to the table CSS as it looks better that way then the text trying to full justify.

Last edited by JSWolf; 12-15-2019 at 09:38 AM.
JSWolf is offline   Reply With Quote
Advert
Old 12-15-2019, 09:40 AM   #6
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
Sure, post it.
1v4n0 is offline   Reply With Quote
Old 12-15-2019, 09:42 AM   #7
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
Wait, "Tav. 3" is actually an image. Tell me about the other ones, like "Tav. 4"
1v4n0 is offline   Reply With Quote
Old 12-15-2019, 09:44 AM   #8
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: 74,504
Karma: 129668758
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 1v4n0 View Post
Wait, "Tav. 3" is actually an image. Tell me about the other ones, like "Tav. 4"
Here is the photo of Tav. 4.

Click image for larger version

Name:	table.jpg
Views:	604
Size:	437.8 KB
ID:	175630

It looks good.
JSWolf is offline   Reply With Quote
Old 12-15-2019, 12:36 PM   #9
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
Looks good yes, thanks.
1v4n0 is offline   Reply With Quote
Old 12-15-2019, 01:26 PM   #10
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: 74,504
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is going to be an issue on Kindles as they have wide left/right margins. On the Kobo, I have a rather narrow margin as you can see. And given that the table just fits, it may not fit on a Kindle screen.

For the table you asked me to look at in PM, make the headers muliti-line by adding a hyphen and then make those columns smaller. Do that for every table you can and you'll have a better chance of the table fitting with a larger font size.

One other thing, my Kobo is an H2O and that uses a 6.8" screen.
JSWolf is offline   Reply With Quote
Old 12-16-2019, 01:33 PM   #11
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Read Table in our wiki.

Dale
DaleDe is offline   Reply With Quote
Old 12-19-2019, 01:39 AM   #12
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by 1v4n0 View Post
Hello, what do you think is the best way to render tables on epub/azw3 ebooks? I usually turn them into html tables,
Yes, that's your best bet. It will:
  • Follow all user preferences
  • Be readable by Text-to-Speech
  • Copy/Pastable
  • Searchable
  • [...]

But because of very huge font sizes + skinny devices (cell phones), you should minimize how many columns across your tables are (~5+ columns is about the soft limit, depending on data).

You may have to display your data in a very different way:

1. "Transposing" or "verticalizing" the tables:

Change a wide 3x13 table and flipping it to a tall 13x3.

See example I posted in 2013, where I also went into more detail on HTML tables: "Tables in an EPUB?".

2. Converting from a table into actual text:

For example, this table:

Code:
------------------------------
First   |   Last  |  Votes
------------------------------
A1      |   A2    |   A3
B1      |   B2    |   B3
------------------------------
could be converted to text as:

Spoiler:


Code:
First: A1
Last: A2
Votes: A3

First: B1
Last: B2
Votes: B3


3. Split into X amount of skinnier tables:

Spoiler:
Code:
-------------------
First   |   A1    |
-------------------
Last    |   A2    |
-------------------
Votes   |   A3    |
-------------------

-------------------
First   |   B1    |
-------------------
Last    |   B2    |
-------------------
Votes   |   B3    |
-------------------


Quote:
Originally Posted by 1v4n0 View Post
I guess turning them into images would make them more cross-compatible, but it would also make the books heavier.
Images of tables can't be spoken via Text-to-Speech. And depending on the resolution of your images, they may not age well at all. (With higher DPI/resolution devices, some of those old tables-as-images became ant-sized.)

If you want to read more of the pros/cons of all different methods of displaying tables, there's also the discussion in "How to Control Fonts in SVG Images of Charts and Tables?".

Quote:
Originally Posted by Turtle91 View Post
image "weight" can be minimized by choosing the correct format (.gif, .png, .jpg).
And if you do have to save the table as an image... use PNG (Indexed if you want really small filesize).

Do not use that crappy JPG. :P
Tex2002ans is offline   Reply With Quote
Old 12-19-2019, 02:04 AM   #13
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
i have had library book loans where tables were used and some text got cropped, either at the sides or at the bottom. I think that was independent of the device being used
I know that it was a tables issue as I got into the code and looked
I don't think the device renderers have a solution for stuff that does not fit the screen, except to crop and discard
stumped is offline   Reply With Quote
Old 12-19-2019, 01:29 PM   #14
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
I haven't tried this after the last update but on the kobo using nth-child to make a column right aligned doesn't work, for example

Code:
td {
    text-align: left;
}

table.twodigits td:nth-child(2) {
    text-align: right;
}
hobnail is offline   Reply With Quote
Old 12-19-2019, 01:40 PM   #15
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: 74,504
Karma: 129668758
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 hobnail View Post
I haven't tried this after the last update but on the kobo using nth-child to make a column right aligned doesn't work, for example

Code:
td {
    text-align: left;
}

table.twodigits td:nth-child(2) {
    text-align: right;
}
You have to create your eBook such that it works with ADE 2.0.1 or ADE 3.x. I'm not sure what ADE version the RMSDK that Kobo is using is equivalent to. I do wish Kobo would update to the latest version RMSDK.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do different books render differently in the viewer? GarryB123 Calibre 33 11-14-2019 12:08 PM
Do <u> tags render on your device or app? DiapDealer Sigil 16 07-26-2019 10:26 AM
Italics don't render in NOOK app Ballory Devices 10 03-27-2019 11:03 PM
An algorithm to render PDF in small devices caritas PDF 111 05-18-2010 10:50 AM
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 07:28 PM.


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