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'm in the process of working with big XML-files with a lot of footnotes. Are these scripts that you speak of available for download somewhere?
No, this script is not available anywhere, you need to develop.
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..