06-28-2012, 02:44 PM | #1 |
Connoisseur
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
ordered list numbering problem
Hi all
I have an ePUB file in which are several ordered lists and in the printed publication the list is interrupted several times and the numbering continues where it left off after the interruption (ie, not back at 1 again). I didn't expect that to be output correctly as ePUB but I thought I could use start="5" in the <ol> tag to fix that but it seems that is not valid xhtml (and it doesn't work in ADE). Having a look around it seems like there is no way round this with CSS! Is that right - are there really no workarounds? What are other people doing to get round this glaring omission in ePUB? thanks |
06-28-2012, 03:10 PM | #2 |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I get around it by basically not using <ol> <ul> at all. I hard-code my lists (numbered or bulleted). I've just never found html list elements to be very handy/useful/effective in ebook xhtml. If it were something that had to be constantly updated with new/changing info from a database, I could maybe find them useful. Otherwise they're a pain in the butt, hard to style with any consistency across a range of devices (as you're finding out), and don't really save me any time/effort when used in lieu of styled html paragraphs and manually typing the numbers (once).
Last edited by DiapDealer; 06-28-2012 at 03:19 PM. |
06-28-2012, 04:21 PM | #3 |
Connoisseur
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Oh god - I knew someone was going to say that! I'm sure we can do that but what a nuisance!
Anyone else have a cunning plan? |
06-28-2012, 04:29 PM | #4 | |
Berti
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
I make hard-coded list as follows: -------------------------------------------------------------- html: <p class="fn"><span class="no">1.</span>some text</p> css: p.fn { margin-left: 2em; text-indent: 0; } span.no { float: left; margin-left: -1.9em; } --------------------------------------------------------------- @DiapDealer: How do you code your lists ? |
|
06-28-2012, 04:50 PM | #5 | ||
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Last edited by DiapDealer; 06-28-2012 at 05:04 PM. |
||
06-29-2012, 02:47 AM | #6 |
Connoisseur
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Thanks both. The more time I spend looking at ePUBs (ours are exported from Adobe Indesign) the more I realise we should just code them by hand! By the time we're finished there won't be much Indesign code left!
|
06-29-2012, 04:29 AM | #7 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The "start" attribute does not work on most readers because it's not part of the ePub standard (neither of XHTML, I believe). As far as I know, there's no way to make a list start in anything but the first element in ePub. Follow DiapDealer's advice and forget about lists.
|
09-09-2012, 12:18 PM | #8 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Jun 2011
Device: Kindle
|
"ol start" is valid HTML5. Maybe try that?
|
09-09-2012, 01:47 PM | #9 |
Wizard
Posts: 1,558
Karma: 11250582
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
Just curious, which epub readers don't support lists?
I've been making some epubs for myself, using both ordered and unordered lists, they have worked fine on all my Sony readers, on my old Nook before I gave it away, fine in Aldiko, Mantano and several other reading apps I tried, they even converted to .mobi, albeit with ugly bullets, but they worked. Admittedly, I did NOT find a way to make interrupted lists work. And I guess for books that have those, I'll do lists as suggested above. I also have had issues with the old style Roman numbers in lists, when you enlarge the fonts, they tend to get cut off on the left side of the page. So I can see where a standard HTML list doesn't *always* work, but there do seem to be places where I've had no trouble at all. But maybe I should stop using them. I am new to book scanning and trying to learn. |
09-09-2012, 03:14 PM | #10 |
Berti
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
|
09-09-2012, 03:20 PM | #11 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
That might work in ePUB3, but definitely not in ePUB2. Since there are hardly any readers that support ePUB3, it is not really useful.
As long as they are simple, I use lists. If the layout is more demanding, I avoid lists. |
09-09-2012, 03:47 PM | #12 | |
Grand Sorcerer
Posts: 27,902
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I don't use them (lists) at all, myself, but that's just a personal decision. Mainly because I don't see the benefit (from a hand-coding standpoint) of using list elements for presenting static data. Last edited by DiapDealer; 09-10-2012 at 03:12 PM. Reason: typo |
|
09-10-2012, 03:08 PM | #13 | |
Wizard
Posts: 1,558
Karma: 11250582
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
Quote:
I think I'll continue using them where they are simple and useful. Where they aren't workable, I'll code differently. |
|
09-18-2012, 09:57 AM | #14 | |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
good to hear! despite almost never using it i think it's a cool feature - glad to be able to make use of it in the feature when epub3 becomes standard. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem/Suggestion on Bulk Numbering Series Like | Pinecone | Library Management | 14 | 04-27-2012 01:18 PM |
ordered list cut of after epub->mobi conversion | lela1031 | Conversion | 5 | 03-02-2012 12:29 PM |
Troubleshooting kindle touch problem, book list does not renew now | paix | Amazon Kindle | 5 | 01-08-2012 08:25 PM |
Ordered List issues on Nook Color | sbell | ePub | 7 | 10-07-2011 08:59 AM |
Dotpoint & Bulleted List problem | virtual_ink | ePub | 3 | 07-20-2011 06:53 AM |