07-09-2014, 05:23 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2014
Device: sony reader
|
ePub with quite long table
I'm trying to create an ePub file using Sigil/Calibre epub editor.
The content I want to put in my file includes some table and content in these table are quite long (honestly, sometimes in one row). It's longer than "1 page" in my ebook reader (Sony PRS-T2) The problem is once the table is long, I won't be able to read the content in the table that is below the lower edge of the screen (Turning to the next page skip all the remaining parts of the table) Is there anyway to force pagebreak within a table (even within a table row) in ePub? Or is there anyway to create a multiple-column-like epub? (I've tried <div> + stylesheet but vertical alignment not seem to be working) |
07-09-2014, 06:05 AM | #2 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Please find attached the .xpgt file from the ADE Best Practices Guide ePub file, which many publishers include in their ePub books. |
|
07-09-2014, 06:15 AM | #3 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Of course you can make a multi column epub! the problems are:
1. multi column is a css3 feature which means that is only supported in epub 3, which means very few devices will be able to show it correctly. 2. eReaders screens are usually quite small so multi column data output is not a good idea. Did you try to create a div inside that row and force a page break using page-break-after rule? There is no great solution for this unfortunately, you can also use an image that contains the entire image instead of an actual table, split it to fit most screens. though you will lose searching capabilities. Doitsu gave you a solution that will work for some devices as well. It really depends which epub version you're making and to which target devices. |
07-09-2014, 06:26 AM | #4 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Unfortunately, the only real solution is to change the content so it doesn't spill out over the end of the page. This might be done by making more than one table with a summary table and a breakdown of detail in a following table, or might be handled through endnotes, or if it is about various regions, break it into regions.
If you are trying to do a book that already has tables that are like this, images are probably the only solution, but the type will be small. Tables are a real sore spot in epubs with problems you have encountered in layout, but also in support by various devices. |
07-09-2014, 10:12 AM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2014
Device: sony reader
|
Thank you all you guys,
The table I'm trying to insert is the comparison between translated language so I'd like them to be compared side-by-side. Now I try using <div> + #column1-3 { width: 33%; margin-left: 0%; top: 5em; position:absolute } #column2-3 { width: 33%; margin-left: 33%; top: 5em; position:absolute } #column3-3 { width: 33%; margin-left: 66%; top: 5em; position:absolute } In computer it look like this, (which is perfect) [Click to enlarge.] But when it comes to Reader (Sony PRS-T2), it turns to be So I try, <div> + #column1-3 {float: left; width: 33%;} #column2-3 {float: right; width: 33%} #column3-3 { float: right; width: 30%; right-margin: 33%;} The column seems to be all right, but I can't scroll to the content below the screen (just like what happened when using <table>, and I wonder why the <div> tag change their behavior) [Click to enlarge.] Anyway thanks all you guys: Doitsu, odedta, mrmikel Last edited by WT Sharpe; 07-09-2014 at 06:39 PM. Reason: Changed oversized graphics to thumbnail attachments. |
07-09-2014, 11:14 AM | #6 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Of course you can't scroll. E-ink readers are page based. It is not continuous like other devices. It will reformat based on text size, etc., but it still by the page.
Maybe I don't understand what is going on so well, but don't you have 130% of the screen width allocated? |
07-09-2014, 11:24 AM | #7 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Wouldn't it make more sense to break up the table into <divs> containing three paragraphs (one paragraph each for Romaji, Japanese and English)?
I'd simply copy the table as a tab-delimited text file to the clipboard, paste it into a RegEx-capable editor (e.g. Notepad++) and use the following parameters to transform it: Find what:^(.*?)\t(.*?)\t(.*?)$ Replace with:<div><p>\1</p><p>\2</p><p>\3</p></div> Last edited by Doitsu; 07-09-2014 at 11:33 AM. |
07-09-2014, 11:55 AM | #8 | ||
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Quote:
This comes as a question: I know that a able is reflowable so all you need is the cells width, in that case what is the point of the Quote:
|
||
07-09-2014, 01:25 PM | #9 | |||
Junior Member
Posts: 5
Karma: 10
Join Date: May 2014
Device: sony reader
|
Quote:
Quote:
Last edited by jouslain; 07-09-2014 at 01:27 PM. |
|||
07-09-2014, 02:07 PM | #10 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
07-09-2014, 03:26 PM | #11 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
Couldn't you make each line a separate table with one row and three cells?
In html it would be like <div align="center"><center> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%"><p>itsuno hi ka....</p></td> <td width="33%"><p>1 2 3 4...</p></td> <td width="33%"><p>One of these days ....</p></td> </tr> </table> </center></div> <div align="center"><center> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%"><p>furu</p></td> <td width="33%">3 4 5 6 ...</p></td> <td width="33%">meet again I will..</p></td> </tr> </table> </center></div> <div align="center"><center> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%"><p>kimi no egao ...</p></td> <td width="33%"><p>4 5 6 ...</p></td> <td width="33%"><p>your smiling face...</p></td> </tr> </table> </center></div> and so on. But the code would increase enormously. George |
07-09-2014, 05:09 PM | #12 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If you have tables you have lots of code, which is one reason I am not over fond of them.
|
07-09-2014, 07:43 PM | #13 |
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
|
What works best is to make each line a separate row and it will split at a row to flow onto the next screen page.
|
Tags |
column, epub, table |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2 Table of contents in one EPub? | holdit | Sigil | 3 | 01-28-2014 01:33 PM |
table centering in ePub | liinak | ePub | 1 | 05-24-2013 05:41 PM |
Touch no table of contents of epub 3.0 | tshering | Kobo Reader | 6 | 10-27-2012 01:09 PM |
How to do a HTML like TABLE in ePub? | flameproof | ePub | 2 | 03-18-2012 06:49 AM |
Sideway Table in ePub (Rotate table/text) | Lapiz | ePub | 3 | 01-29-2010 01:11 PM |