Quote:
Originally Posted by Ralph Sir Edward
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
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=