How to handle footnote in XML Workflow like Non - XML workflow(InDesign Footnote feature) without disturbing xml structure. We are handling the books which are having more than 3000 footnotes. Placing at the bottom of the page as per the citation, resizing main and footnote textframe takes more time consuming and manual work.
How to add events to Textframe? Is there any documentation available for each Indesign elements eventTypes supported by InDesign.
TextFrame.addEventListener(eventType, handler, captures)
Indesign won't support XML tags in auto footnote stream.
You need to change all the footnote XML "<" ">" to a sequence name.
eg. <footnote> ---> *&*ang*&*footnote*&*angc*&*
The angle should be changed before importing it into indesign.
Then using script you can convert all the footnotes to auto footnotes and finally change *&* to angle.
Lots of base work involved for XML footnote automation.
1. XSLT to move all the footnotes to respective places
2. Scripts to convert all the footnotes to autofootnotes
1. Script to revert footnote to respective places
2. Pearl to convert the footnote as per DTD
I've been looking around and found the ReFoot script which is a good starting point. The patterns need to be rewritten if you have tags inside your footnote tags (which I do) - but that's not a problem. I've found no way to get it to work with tags in inDesign though so the method you mentioned of changing "<" and "<" to another sequence is still my best option.
You need to create a script to convert the "<" to @@angopen@@ some thing like this. So that your refoot will work.
Then script a script to convert @@angopen@@ to "<" in the footnote stream.
While exporting you need to write a script to handle the "bold", "italics" etc..