View Single Post
Old 12-01-2009, 06:49 PM   #5
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by Ralph Sir Edward View Post
Please let me get this straight.

I'm looking at a HTML with an internal link of --- <A HREF="unique identifier">...</A>.

The receiving link is <A name=unique identifier></A>

I can see plugging the A and the HREF but what do you do with the unique indentifier? (Each internal link has a different tag...)



Sorry for the ignorant questions, but you can't learn without asking....
You can't, calbire did allow wild characters to create a TOC but MobiCreator does not.

You would have to create a class for all the <A> that you wanted to be a TOC.

Add the syntax in red
Code:
<A class="TOC" id="unique">
Then in the text box put

Code:
A   CLASS    TOC


This would be the syntax you would pass for calibre
Code:
<A class="TOC" id="unique">
<A class="TOC_LEVEL1" id="unique">
<A class="TOC_LEVEL1" id="unique">

--level1-toc="//h:a[re:test(@class, 'TOC', 'i')]"
--level2-toc="//h:a[re:test(@class, 'TOC_LEVEL1', 'i')]"
--level3-toc="//h:a[re:test(@class, 'TOC_LEVEL2', 'i')]"
I think the wild card is a "*" or a "?" but I can't remember.
Code:
--level1-toc="//h:a[re:test(@class, 'TOC*', 'i')]"
=X=

Last edited by =X=; 12-01-2009 at 06:51 PM. Reason: Added clarification
=X= is offline   Reply With Quote