12-02-2021, 07:01 PM | #1 |
Member
Posts: 16
Karma: 10
Join Date: Jun 2021
Device: Kindle Voyage
|
Tables in ePub
Hello, I kindly ask if it is possible to have tables in an ePub file.
Year 2021. Many thanks! |
12-02-2021, 07:16 PM | #2 |
Wizard
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Yes, you can.
What sort of table design do you prefer? Something to get you started... https://www.w3schools.com/tags/tag_table.asp Last edited by Karellen; 12-02-2021 at 07:17 PM. Reason: fix wrong url |
12-02-2021, 07:20 PM | #3 |
Member
Posts: 16
Karma: 10
Join Date: Jun 2021
Device: Kindle Voyage
|
I would like to generate a paper with simple tables, and export to EPUB. No more than four or five columns with numbers, and some merged cells.
I am only capable to handle the document in Google Drive. It exports .EPUB, but I cannot control the table. Sometimes they act weirdly. Which software do you recommend? How can HTML tables be exported to EPUB? Many thanks. |
12-02-2021, 08:04 PM | #4 |
Wizard
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
@Artie
Personally, I use Calibre which has its own section in this forum. You can download the software here... https://calibre-ebook.com/download It allows you to manage your library as well as having a built in ereader and an ebook editor. If you haven't worked with css and html before plus learning the ins and outs of a new software package, it will initially be an uphill battle (from personal experience), but once you realise how html and css work together, it fall together quite quickly. The software is pretty easy to understand, but there is a small learning curve. You create the tables in epub files, so there is no exporting involved. Once you have created your epub file, added css code to the stylesheet, you can create the table. Best to take it a step at a time. Install the software, add a couple of books, open one of the books in the editor and become familiar with it. I am sure there are plenty of members here that can help guide you. It will also help if you have a screenshot of how you want the table to look. Post it here by clicking on the paperclip icon in the editors bar above. |
12-02-2021, 08:07 PM | #5 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
While yes you can have tables, some e-readers (and no... I can't cite examples) do have issues.
Remember you are dealing with a view that is quite narrow. Some folks prefer embedding a picture of a table Sent from my Pixel 4a using Tapatalk |
12-02-2021, 10:35 PM | #6 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
"Formatting tables best practices" Quote:
Probably because Google Docs creates absolutely atrocious HTML. But there's no reason you can't open the EPUB up in Sigil (or Calibre's Editor) and clean up the crud. HTML Tables pretty much just boil down to these simple parts:
Code:
<table> <tr> <th>First</th> <th>Last</th> </tr> <tr> <td>John</td> <td>Smith</td> </tr> <tr> <td>Joanne</td> <td>Laster</td> </tr> </table> Quote:
You'd have to use this stuff called:
Code:
<table> <tr> <th colspan="2">FullNames</th> </tr> <tr> <td>John</td> <td>Smith</td> </tr> [...] </table> (Google Docs should already be fine for this!) Side Note: Most tools don't export Accessible HTML though, so you'll have to do manual tweaking anyway. They do dumb stuff like use "<td> + bold it" for headings... instead of using the actual HTML <th>. The reason why proper HTML is so important is when devices like Text-to-Speech try to read the table:
Last edited by Tex2002ans; 12-02-2021 at 10:42 PM. |
|||
12-04-2021, 03:33 PM | #7 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
As a strong believer in Keep It Simple, I've never used a table in an ebook, and if I had to, I'd provide an image.
Happy Christmas! -- NJ |
12-04-2021, 06:14 PM | #8 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
12-05-2021, 12:32 AM | #9 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
12-06-2021, 03:41 AM | #10 |
Member
Posts: 16
Karma: 10
Join Date: Jun 2021
Device: Kindle Voyage
|
Table workflow for ePub
Hi all,
Many thanks for your answers, I really appreciate them. I've been working with HTML and CSS for years, so this is not an issue. Image/HTML debate is old for me. And I think this GIF is brilliant! Super! https://old.reddit.com/r/gifs/commen...less_terrible/ I started this thread to figure out which is the best workflow for tables inside an EPUB file. If the EPUB format supports tables, I do really believe there should be a straightforward way to generate a document with tables that can be translated into an EPUB, in a clean way. Right now, I use Ulysses for writing. When I need to write the table, I switch to Google Drive, create and populate the table, export as an image, and embed into Ulysses. Of course, when exporting to EPUB, the table shows. But if I have to switch to a text editor to create the table, this is exactly what I do with Google Docs right now. I have tried Typora, Zettlr, iA Writer and TableFlip to replace Drive, but if they support tables, they aren't able to export and vice versa. Vellum neither Ulysses understand tables. TableFlip and Marked understand tables, but they don't export to EPUB. I don't want to use Google Drive, Word or OpenOffice. I don't want to use images for tables (and maths formulas). I want my EPUB file to have the lowest file size possible, as it is extended and contains lots of data. I use Calibre to transfer the EPUB that generates Ulysses to my Kindle device. Sigil is new for me, but it seems a text editor. Likewise, I'm confused about how Calibre and Sigil may help me, can you please elaborate a little more on that @Kalleen? Many thanks! |
12-06-2021, 12:09 PM | #11 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
How is it you expect to 'create a table' if not with an HTML editor like Sigil or Calibre? I'm unclear on what you're expecting. If you did use Word and exported to HTML, yes, you'd get an HTML table. Apparently, you don't wish to do that. Word, for all its alleged issues (which are non-existent if you clean the file properly and use Styles and headings, I might add) is a perfectly straightforward way to make HTML tables. I don't know if Libre Office does the same thing, but others here will know. In Word, you (simply) export to HTML; remove some of the CSS cruft at the top of the HTML file, or all of it, depending upon your experience, open the HTML in Sigil, and make your ePUB. Badda-bing. If you want an ePUB with the smallest file size, then you will use HTML tables, not images. So, in short--you want/need HTML tables, but you seem to not want to use the tool that will export that, in HTML, to a file format that you can then use to make an ePUB. Is that right? Hitch |
|
12-06-2021, 12:15 PM | #12 |
Connoisseur
Posts: 88
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
|
I'm over-simplifying and maybe you already know this, but an epub is just a bunch of html/xhtml/xml files in a zip file with the extension ".epub". Rename an epub so it has an extension of ".zip" and open it with your preferred zip tool.
Edit the appropriate html file and insert a HTML table. Zip it back up and you've editted an epub. Rename it back to .epub. Calibre has a book editor that allows you to directly edit the content of an epub without manually renaming and unzipping, etc. Sigil is a program that essentially does the same as the Calibre editor tool. It can be run as a stand-alone program, or you can use it from inside Calibre if you prefer the Sigil editor to the Calibre editor, but still want to use Calibre for its other functionality. |
12-06-2021, 12:18 PM | #13 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Yup. I clearly don't understand the issue here. Hitch |
|
12-06-2021, 12:48 PM | #14 | ||
Member
Posts: 16
Karma: 10
Join Date: Jun 2021
Device: Kindle Voyage
|
Quote:
Apps like Ulysses, iA Writer, Obsidian, Typora or Zettlr allow me to get really focused when writing, divide my texts in short segments and reorder or connect them as I figure out. None of them support both table and EPUB export. Now, I have chosen Ulysses because it is the more mature app of the ones I have mentioned. Quote:
In fact, I have tried exporting the EPUB format from Ulysses to Calibre, selected the file, clicked T and voilà! I have seen the editor. Only two apps involved. Finally, my table is visible in my Kindle :-) Very grateful, indeed. And then just another question . Where can I get a very simple CSS for formatting tables for EPUB? Many thanks! |
||
12-06-2021, 01:48 PM | #15 | |
Wizard
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Like @Hitch, I am still a bit confused about what you are after and your workflow seems overly-complicated by using numerous editors to try and create an ebook. Sometimes you just need to get your hands dirty and create the table from scratch. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moon Reader, ePub, and Tables | RobFreundlich | ePub | 4 | 08-14-2015 07:58 AM |
Weird tables in epub | Psymon | ePub | 29 | 11-19-2014 01:40 PM |
Tables in an epub? | Section8 | ePub | 12 | 10-17-2013 06:53 AM |
Tables in ePub: CSS | virtual_ink | ePub | 5 | 02-23-2012 02:51 PM |
ePub to Mobi issues with tables | apastuszak | Conversion | 11 | 06-20-2011 09:19 PM |