![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
![]()
Working on a EPUB2 document (not kepub) with a table spanning multiple pages (on my kobo), I figured it would be nice to have the table header repeating itself for the benefit of the reader. Well, I used the obvious setting below, which did not work of course (on my kobo, but also other devices).
Code:
thead { display: table-header-group; } |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,386
Karma: 102739835
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Does anything on this work?
https://www.w3schools.com/html//html_table_headers.asp It's maybe one of many things that works on websites and not in ebooks. I don't do text books or similar, really just novels, so I've only experience with tables on websites and that not for years due to using CMS and plugins. Last edited by Quoth; 02-23-2024 at 11:40 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,541
Karma: 9250680
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
I've tried to get repeating table headings working on the Libra 2 and never could. I guess the Libra 2 software ignores repeating table headers along with the <tfoot> tag.
I tried with the following... Code:
<thead> <tr> <th></th> <th></th> </tr> </thead> |
![]() |
![]() |
![]() |
#5 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 599
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
I don't suspect it will work but worth a try.
Perhaps it is supported by epub3, convert the file to epub3. I would also suggest to test the epub3 file with the kepub renderer by changing the file extension from .epub to kepub.epub If this does work you can at least convert the final epub2 to epub3. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
Code:
thead tr td { border-bottom: solid 2px; background: #eee; } What is not working is the "zebra" setting (alternate row coloring): Code:
tbody tr:nth-child(even) { background: #eee; } Oh well. Last edited by DrChiper; 02-23-2024 at 03:09 PM. |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,365
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
EPUB2 >> EPUB3 might work, but I have no clue yet how Kobo's support is for EPUB3 (I suspect very minimal at the moment), but I can give it a shot. |
|
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,314
Karma: 165170674
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
ePub 3 support by the RMSDK renderer on Kobo ereaders is better but the WebKit renderer used to kepub is still more feature complete. I'd give it a try but would not get overly optimistic. |
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,365
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ePub 3 support on version of RMSDK used by Kobo is quite poor. Access (ued by KePub) is much better for ePub 3. For example, small-caps does not work with RMSDK but does with Access. small-caps does work with the current version of RMSDK but Kobo uses some version 10 instead of the current version 11.xx
|
![]() |
![]() |
![]() |
#11 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,314
Karma: 165170674
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#12 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
EPUB2 >> EPUB3 does not work for repeating headers and selector "nth-child": I would say kobo Libra 2 behaves further the same.
Now trying the kepub, but first unfreezing Libra 2 as it stopped working (happens from time to time). Update: KEPUB does honor selector "nth-child", but does not show repeating headers. So I guess that like most implementations the display: table-header-group; is regarded for printing only, hence not supported. Update 2: Kobo's EPUB uses just CSS 2.01: nothing more. Kobo's KEPUB seems to use CSS 3.x: the selectors I tested (mind not all!) work. Repeating headers are still a pleasant dream, though. Last edited by DrChiper; 02-27-2024 at 05:33 AM. |
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,365
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=347972 |
|
![]() |
![]() |
![]() |
#14 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Interesting, but it does not work for me.
I found this which explained some. Kobo has problems with detecting page-breaks, which is the trigger for the repeating table headers. Other devices seem to have the same issue. Last edited by DrChiper; 02-27-2024 at 05:38 AM. |
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,365
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text repeating every few pages | sushiboy21 | Kobo Reader | 10 | 10-04-2018 03:13 AM |
Repeating crash issue 0.9.8-0.9.9 | Orphiex | Sigil | 23 | 04-27-2018 08:54 AM |
RegEx question about repeating | phossler | Editor | 15 | 03-18-2015 09:01 AM |
How do I find a repeating bug ? | Giuseppe Chillem | Calibre | 8 | 02-02-2013 04:46 PM |
issue with table headers in ADE | iain robinson | ePub | 2 | 07-08-2011 02:55 AM |