View Single Post
Old 11-02-2008, 02:08 PM   #2
AZed
Connoisseur
AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.
 
Posts: 57
Karma: 307
Join Date: Oct 2008
Device: PalmOS PDA
I'm considering writing a TOC generator for EBook::Tools v0.3, and the ability to strip <script> and <noscript> blocks already exists in v.02. Can you give me a few more details about exactly what you would want the TOC to link to for each case?

I'm going to make a few guesses about how I'd approach things, and you can tell me if it's what you're looking for.

1) Add IDs to every <h1> and <h2> element and link to those in the TOC? I have no idea what you mean by 'with illustration'.

2) I'm not sure what you would want the index page to point to. You want a way to extract all of the links from inside the messy HTML, and present a simple list of links on a clean page?

3) The TOC file would be one-level list of links to each file?

4) Again, not sure what you want your TOC to look like, or why the "internal toc" isn't working for you. How did you want the graphics to show up in the TOC (and why did you want graphics to show up in a TOC -- I don't think I've ever seen a TOC done that way).
AZed is offline   Reply With Quote