03-04-2014, 03:40 AM | #1 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Limitation in numbered lists?
I have formatted an epub that contains a numbered list, as follows:
Code:
<ol style="list-style-type: decimal;margin-top:0;margin-bottom:0;"> <li class="P_ListItem"> <p class="P_ListParagraph">Item 1</p> </li> <li class="P_ListItem"> <p class="P_ListParagraph">Item 2</p> </li> . . . <li class="P_ListItem"> <p class="P_ListParagraph">Item 12</p> </li> </ol> Is there some limitation in ADE keeping item numbers to one digit? I gather that would limit numbered lists to 9 items? Is there any way around this? Thanks for any suggestions. |
03-04-2014, 04:51 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Haven't noticed it yet to be honest. Then again, I usually avoid lists when I can since support on devices is limited.
|
Advert | |
|
03-04-2014, 04:58 AM | #3 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
What do you use as an alternative?
|
03-04-2014, 05:55 AM | #4 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
<div class="list">
<p>1. Item 1</p> <p>2. Item 3</p> <p>3. Item 2</p> </div> Maybe the numbers do line up so nicely, but that's often not so important. |
03-04-2014, 06:33 AM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You can't successfully define an ordered list to be automatically alphabetic nor can you stop the list and automatically restart it by defining the start number when you have made a new page. Those functions aren't provided by epub.
Sigil uses a browser type renderer which will display these functions, but they don't work in epub. Unless you are creating a document which requires frequent and automatic renumbering in editing, this is not much of a drawback. |
Advert | |
|
03-04-2014, 08:34 AM | #6 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Thanks for the replies.
Jellby, your system isn't so clear, and falls down when the items in the list are longer than a single line. The list then becomes a bit messy and indistinct. mrmikel, the list is working fine up until item 9, and then it numbers every subsequent item as 1. There's no coded page break within the list, so that's not a problem (unless I'm misunderstanding what you're saying). |
03-04-2014, 09:00 AM | #7 |
Grand Sorcerer
Posts: 27,464
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A bit messy but correctly numbered/lettered across a range of devices/apps; or beautifully formatted but inconsistently numbered/lettered across a range of devices/apps. Those are your two choices with lists in epubs.
|
03-04-2014, 09:06 AM | #8 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
So the coding I had originally doesn't work beyond single digits? That was my question, but no-one's actually answered it yet.
Edited to add: I've discovered from the Adobe forums that the problem is a bug in ADE, such that it only displays the first digit of the list item number, no matter how many digits there really are. The specific file I'm working on is for my own use, not for distribution, so in this instance I only need to get it working on my Kobo Touch and/or Aura HD. But of course it would be helpful to have a working solution beyond this one file. Last edited by MacEachaidh; 03-04-2014 at 09:39 AM. |
03-04-2014, 09:36 AM | #9 |
Grand Sorcerer
Posts: 27,464
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Because there IS no definitive answer. It may possibly work somewhere (on some devices/apps), but there's a good chance no one will be able to tell you which ones. That why most people just avoid them altogether.
|
03-04-2014, 09:41 AM | #10 | |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Well yes, there does seem to be an answer, at least to the question I actually asked. As I just noted, it seems ADE has a bug whereby it doesn't display list item numbers beyond the single first digit.
Quote:
Last edited by MacEachaidh; 03-04-2014 at 09:44 AM. |
|
03-04-2014, 09:44 AM | #11 |
The Grand Mouse 高貴的老鼠
Posts: 71,406
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
03-04-2014, 09:45 AM | #12 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
|
03-04-2014, 10:41 AM | #13 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
What is point of going through putting all the stuff for a HTML list when you can just type it anyway? You can inset the list items through CSS, if that is an issue. The reader will see absolutely the same thing.
|
03-04-2014, 10:55 AM | #14 |
Grand Sorcerer
Posts: 27,464
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There ARE some things that html lists do naturally that are very, very hard to completely replicate with css and block elements (consistently across a range of devices/apps anyway), but they're still purely cosmetic. Unless you're continually rebuilding a list where the number of elements and their contents are unknown and/or pulled from a database and built "on the fly" (such as on dynamic websites), then you're right; there's no real functional advantage to ordered lists in static documents.
|
03-04-2014, 10:56 AM | #15 | |
The Grand Mouse 高貴的老鼠
Posts: 71,406
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
Just complaining that things aren't perfect isn't constructive. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Numbered Lists on the Nook | Mark3 | Conversion | 1 | 09-07-2011 10:56 PM |
bullet and numbered lists | cel4145 | Writer2ePub | 4 | 05-07-2011 05:29 AM |
Continuing numbered lists (ol) in ADE | EricDP | ePub | 13 | 09-07-2010 08:30 AM |
numbered lists, but with a text break | soup | Sigil | 1 | 07-30-2010 04:27 AM |
Are the Reader's days numbered? | WilliamG | Sony Reader | 32 | 09-23-2007 02:56 PM |