Hi All,
I took a shot at making Aria Clips be a bit smarted about the _N_ and with \\1.
Now if I want a footnote div with _N_ being 3 and I was marking up existing text I could do the following, assume this is my existing text (or that I added it by hand)
Code:
[3] The text of my footnote goes here.
Then highlight that footnote including its leading number in CV and Insert a Aria Clip with footnote div.
It should now produce the following:
Code:
<div id="fn3" epub:type="footnote" role="doc-footnote">
<p>
<a href="#ref_fn3" epub:type="backlink" role="doc-backlink">[3]</a>
This is the text of my footnote.
</p>
</div>
Hopefully this will help speed things up when handling markup of existing text.
It works similarly for footnote with aside, footnote with div, and endnote in li.
It also works just on the _N_ field in footnote ref, footnote backlink, endnote ref, endnote_backlink, and pagebreak_span
I am still working on positioning the cursor into the empty section and aside tags. I have not figured out a way to do that easily (yet).
I have pushed all of this to Sigil master with deploy and will post new Beta-3 builds shortly.