Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2012, 12:54 PM   #1
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
XHTML: Attributes "start" at <ol> and "value" at <li>

These attributes are deprecated within xhtml.

But how can I do it without violation of the yhtml standard ? Is there any css equivalent ??
mmat1 is offline   Reply With Quote
Old 02-18-2012, 02:58 PM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
No, unfortunately not. These attributes are not supported in the ePUB specifications and will not work on most readers.
Toxaris is offline   Reply With Quote
Old 02-18-2012, 05:25 PM   #3
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Toxaris View Post
No, unfortunately not. These attributes are not supported in the ePUB specifications and will not work on most readers.
Thanks, I see i didn't ask clearly enough.

What are the (valid) css-replacements for those attributs ??
mmat1 is offline   Reply With Quote
Old 02-19-2012, 03:59 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
There aren't any in the current CSS specs, so also not in the ePUB specs.
Toxaris is offline   Reply With Quote
Old 02-20-2012, 07:42 AM   #5
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
Quote:
Originally Posted by Toxaris View Post
There aren't any in the current CSS specs, so also not in the ePUB specs.
You're right, but you could simulate it using a style for each list item:

Code:
ol { list-style-type: none; }
li.one:before { content: "One: "; }
li.two:before { content: "Two: "; }

<ol>
  <li class="one">Hello</li>
  <li class="two">Hello</li>
</ol>
etc.

That would be really tedious to maintain in anything apart from a trivial test document.

You could do it using CSS counters as well, but they are not widely supported.
chrisridd is offline   Reply With Quote
Old 02-20-2012, 01:34 PM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by chrisridd View Post
You're right, but you could simulate it using a style for each list item:

Code:
ol { list-style-type: none; }
li.one:before { content: "One: "; }
li.two:before { content: "Two: "; }

<ol>
  <li class="one">Hello</li>
  <li class="two">Hello</li>
</ol>
etc.
Except that the ePub spec says of the "content" property:

Must not be used within a style sheet whose @media value is other than aural.

I'm not sure why, though.
Jellby is offline   Reply With Quote
Old 02-20-2012, 02:03 PM   #7
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
Quote:
Originally Posted by Jellby View Post
Except that the ePub spec says of the "content" property:

Must not be used within a style sheet whose @media value is other than aural.

I'm not sure why, though.
That's a bit bizarre. They add a custom way of doing columns that no HTML/CSS rendering engine supports, and then prevent the use of something that works. Hm.
chrisridd is offline   Reply With Quote
Old 02-20-2012, 02:07 PM   #8
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by chrisridd View Post
ol { list-style-type: none; }
li.one:before { content: "One: "; }
li.two:before { content: "Two: "; }
Thanks for your answer, but i fear that will not work as supposed. The idea of a numbered list is to have always the text started in the same "tab-stop-position", no matter how long the number is. Unfortuantely, html does not support tabs....

Btw. the book, i'm thinking about has 400 List entries, the first Chapter-Break is after no. 67.

@Jellby: the "ePub spec" ?? sounds that there's something i should read. If possible, can you give me a link? Yes I know, Google ... but it's always bettet to get a tip to a good source of information.
mmat1 is offline   Reply With Quote
Old 02-20-2012, 02:12 PM   #9
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 927
Karma: 2143512
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
Quote:
Originally Posted by mmat1 View Post
Thanks for your answer, but i fear that will not work as supposed. The idea of a numbered list is to have always the text started in the same "tab-stop-position", no matter how long the number is. Unfortuantely, html does not support tabs....
There are spacing options for list markers, but I'm not sure how robust they are. But forget this approach - if the epub specs forbid it then it is a waste of time.

Quote:
Originally Posted by mmat1 View Post
@Jellby: the "ePub spec" ?? sounds that there's something i should read. If possible, can you give me a link? Yes I know, Google ... but it's always bettet to get a tip to a good source of information.
Start at http://idpf.org/epub and use the "EPUB" menu to find version 3 and 2.0.1 of the specs.
chrisridd is offline   Reply With Quote
Old 02-23-2012, 11:03 AM   #10
KLUTCH
Enthusiast
KLUTCH began at the beginning.
 
KLUTCH's Avatar
 
Posts: 29
Karma: 22
Join Date: Oct 2010
Location: London
Device: Kindle, iPad, iPhone 4, HTC Desire
Kindle and iBooks will display ol/li ul/li without any major issues if you don't add classes.
The only issue you might get into would be with nested list, it's best to take these as they come.
KLUTCH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM
SONY pocket edition: "Device locked" + "charge battery" obstacles? hermes Devices 3 06-02-2011 03:32 AM
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? bitschnau Erste Hilfe 3 11-01-2010 01:22 PM


All times are GMT -4. The time now is 07:36 PM.


MobileRead.com is a privately owned, operated and funded community.