07-13-2010, 09:42 PM | #1 |
Groupie
Posts: 165
Karma: 339490
Join Date: May 2010
Device: nook, BlackBerry
|
Continuing numbered lists (ol) in ADE
I have a list that has a break in it, and then continues. Using the (deprecated) "start" or "value" tags don't work in ADE, and neither does using CSS auto-content. For example, I tried the following sample, but it didn't work:
In stylesheet: Code:
OL#page_one { counter-reset: item } OL#page_two { counter-reset: item 5 } LI { display: block } LI:before { content: counter(item) ". "; counter-increment: item; display:block; } Code:
<ol id="page_one"> <li>Division Bell</li> <li>Atom Hearth Mother</li> <li>Relics</li> <li>Dark Side of the Moon</li> <li>Wish You Were Here</li> </ol><ol id="page_two"> <li>The Wall</li> <li>More</li> <li>Piper at the gates of Dawn</li> <li>Final Cut</li> <li>Meddle</li> </ol> Any thoughts on other alternatives that might work? |
07-14-2010, 02:36 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Does this really not work?
Code:
<ol> <li value="10">Line 10</li> <li value="20">Line 20</li> </ol> |
Advert | |
|
07-14-2010, 02:52 AM | #3 | |
Snooty Bestselling Author
Posts: 1,485
Karma: 1000000
Join Date: Aug 2009
Location: Ipswich, QLD, Australia
Device: PRS-650
|
Sorry if I'm chucking something into a discussion I don't understand as well as I think I do (HTML and XML background), but - are you basically trying to do this:
Quote:
Have you tried *wince* using the same ol id? ie: Code:
<ol id="page_one"> <li>Division Bell</li> <li>Atom Hearth Mother</li> <li>Relics</li> <li>Dark Side of the Moon</li> <li>Wish You Were Here</li> </ol><ol id="page_one"> <li>The Wall</li> <li>More</li> <li>Piper at the gates of Dawn</li> <li>Final Cut</li> <li>Meddle</li> </ol> |
|
07-14-2010, 03:01 AM | #4 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
On www.w3.org it specifically says:
Quote:
|
|
07-14-2010, 09:40 AM | #5 |
Groupie
Posts: 165
Karma: 339490
Join Date: May 2010
Device: nook, BlackBerry
|
|
Advert | |
|
07-14-2010, 09:49 AM | #6 | |
Groupie
Posts: 165
Karma: 339490
Join Date: May 2010
Device: nook, BlackBerry
|
Quote:
ADE is so broken it doesn't seem to implement the 'content' tag at all. For example, I changed Code:
content: counter(item) ". "; Code:
content: counter(item) ".x. "; Has anybody had any success with content in either ADE or Sigil? You should be able to do things like Code:
content: "Chapter " counter(item); |
|
07-14-2010, 10:45 AM | #7 | ||
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
Quote:
Quote:
OPS is not really geared to truly open-ended styling. You best bet is to have some sort of transformation step (e.g. XSLT) as a part of packaging process. That would also allow you to use custom markup that can capture more semantics, which is useful for books. |
||
07-14-2010, 11:38 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
What's the replacement for it, Peter? I'm really surprised that there's no way to implement numbered lists with numbers that you can choose yourself; it seems an extremely "retrograde" step to remove such a facility without providing a substitute.
|
07-14-2010, 02:01 PM | #9 | |
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
Quote:
The sad truth is that automatic list numbering and counters are not integrated in CSS2. Supposedly, CSS3 will fix it with list-item counter name, but the spec as it stands is still incomplete (it does not explain how to handle nested numbered lists). Also CSS numbering scheme is too simplistic does not match any real-world word processors, so its utility is very limited. It does work for simple things, but the moment you get into complex document transformations, the easiest thing to do is to simply insert all the generated content yourself. |
|
07-14-2010, 02:24 PM | #10 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Thank you for that explanation.
|
07-14-2010, 03:47 PM | #11 | |
Groupie
Posts: 165
Karma: 339490
Join Date: May 2010
Device: nook, BlackBerry
|
Quote:
For example, center this so it will a pivot around the "." (and, of course, the "." isn't centered, and it will still wrap pages so a centered 'inline-block' table can't be used). Argh! Code:
Part I I. A chapter II. Another III. Now we're getting somewhere Part II IV. And it continues XXIX. Getting exciting... XXXIV. Time to finish |
|
07-14-2010, 04:02 PM | #12 | |
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
Quote:
|
|
07-15-2010, 05:38 AM | #13 |
frumious Bandersnatch
Posts: 7,531
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
09-07-2010, 08:30 AM | #14 | ||
Wizard
Posts: 1,557
Karma: 11250580
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
Well, it's funny I found this thread, because I've been struggling with this exact same thing all night. Have a book with 6 parts, 54 chapters. In my case, the chapters had rather long titles in some instances, so I had to create a span class to make certain of those work and look nice.
I will first say that I am a TOTAL noob at CSS and equally a noob at epub. So don't laugh too hard. I'm trying to make sense of it all with my 53 year old brain and not doing so well! And I was trying to duplicate the style of my old print book. I came pretty close, actually! I used an unordered list, but then, to line up my decimals, I used as many non-breaking spaces as I needed to do it. And likewise to make my PART headings line up where I wanted. Quote:
Quote:
Just thought I'd post in case it helps anyone. Last edited by graycyn; 09-07-2010 at 08:32 AM. Reason: Added sentence |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
numbered lists, but with a text break | soup | Sigil | 1 | 07-30-2010 04:27 AM |
Numbered list continuation | bhuvana786 | ePub | 4 | 05-26-2010 01:17 AM |
Is this worth continuing? | Mare of Earth | Writers' Corner | 7 | 06-19-2009 09:55 AM |
Are Papers Days Numbered? | andyafro | News | 23 | 11-21-2008 02:58 PM |
Are the Reader's days numbered? | WilliamG | Sony Reader | 32 | 09-23-2007 02:56 PM |