View Single Post
Old 06-19-2012, 03:03 AM   #107
mesquite
A tree.
mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.mesquite ought to be getting tired of karma fortunes by now.
 
mesquite's Avatar
 
Posts: 25
Karma: 445628
Join Date: Jun 2012
Location: The Library
Device: iPad
Quote:
Originally Posted by meme View Post
The issue is that Mobi does not support styles for list items. The Inline TOC HTML is using list items, but styling them so that no number is shown. Mobi ignores this and shows the numbers for the items.

There are a few ways around this:
  1. I modify the code that generates the inline TOC to just use indented paragraphs. This would make it work on both. I'm tempted to do this - its not difficult - but the only question is that EPUB3 uses a list item format for its TOC and the format was trying to emulate that. On the other hand, there aren't any other EPUB3 features yet so it could be dealt with later. And I think this is going to generate a lot of questions that could be avoided.
  2. If you are already using Calibre, then don't use the inline TOC. Just tell Calibre to create the inline TOC for you at the start of the book.
  3. Use Regex to remove the ol tags, and replace the li tags with p tags (with an indented style if you want).
Okay well as I stated my HTML is very minute so a bit more in depth explaining would help. Even looking at regex sticky I was in over my head. looking at your reply might have negated my plan which was to remove the <li></li> tags from each one and use </br> but that has been deprecated from XHTML hasn't it?

Last edited by mesquite; 06-19-2012 at 03:06 AM.
mesquite is offline