Quote:
Originally Posted by Doitsu
I also did some quick tests and everything looks OK. For footnotes and endnotes it would be helpful, if the clip would replace _N_ with a number if a number was selected before the clip was applied.
For example, if I enter a 1, select it and apply an Endnote LI clip the result should be:
Code:
<li id="en1" epub:type="endnote">
<p>
<a href="HREF_FOR_RETURN_FROM_ENDNOTE#en1" epub:type="backlink" role="doc-backlink">[1]</a>
TEXT_OF_ENDNOTE_HERE
</p>
</li>
|
If I replace the footnote/endnote text with \\1 and assume the initial selection is in this format:
"[1] The remainder of text here."
We could extract the footnote number from the text and insert it into the template. We could look for [d+] or d+ at the beginning of the selection and use regex to extract the number.
I think that would be doable.
The same approach could be used for the references to footnotes.
If nothing is selected it would add in the templates.
How does that sound? Sort of a smart footnote clip.