I'm making a dictionary for language A in language B and have difficulties with creating an index at the end (in language B).
Here's the format:
(word language A) (translation in language B) (other stuff)
But sometimes also:
(word language A) (translation language B--FIRST MEANING) (translation language B--SECOND MEANING) (other stuff)
What I want at the end is an index of the form:
(translation in language B) (word language A)
(word language A) and (translation language B) have their own character styles.
I have a script (http://indesign.hilfdirselbst.ch/text/indexeintrage-auf-der-basis-von- zeichenformaten.html) that creates index tags from all words in a certain character style (say, of word language A). But so far, I see no way to associate word and translation, so that I get the desired index entries at the end. Though this may require to much manual editing at the end, because of the entries with two meanings.
So one other idea I have is to use the tag-function:
(word language A) and (translation language B--FIRST MEANING) would both receive tag X
(word language A) and (translation language B--SECOND MEANING) would both receive tag Y
(that is, (word language A) would have two tags, one shared with first meaning and one shared with second meaning)
To generate the index at the end, I would then however need to be able to read out the content of tag X (word1 + meaning 1), tag Y (word1 + meaning 2), etc.
I assume that something like that should be possible. But I do not have much competencies in scripting. So if anyone knows of some such script (or of course also any better ideas), that would be great. (If it does not do exactly that, but something similar, I may be able to modify it, but I cannot do it from the scratch.)
[This question was originally asked in another forum, from where I was redirected to this one. So please excuse the double posting.]