To develop in EPIC editor
Hi,
Is there some one have the experience to develop in Arbortext EPIC editor?
I am trying to write a function to translate terms in the xml file being edited in EPIC editor.Our document is about the transportation field, we need translate text from English to Chinese, in last project many same terms are translated into different expression. So I try to use the function to control the terms (if it's possible), once run it, all terms be found should be translated into the specified expression.
My idea is as below:
1) Create a word dictionary in XML which is used to store terms and their translation.
2) Write code to go through the file to check each word whether is the terms is in dictionary. Once found, replace the term by translated expression, add a comment, move the origin text in it.
3) Once translator to click the comment contain origin text, pop a list to list all the others options.
Step 1 is easy. My question is in step 2 and 3.
In step 2 my question is at the last, when found term and found the translation how to output the translation into the corresponding position in the corresponding node.
In step 3 the question is I used a javascript function to create the option list, how can I transfer the index selected by user back. I cannot find the function in ACL to return value from javascript function to console. Most function can only return the 0 or 1 to show whether the script run well.
EPIC is really a good software to meet our most requirement. But I find it's quite difficult to find the related articles from net even in its forum.
Thanks in advance.