How to add Chinese Pinyin in the script?
I spent a day to search the way to add Chinese Pinyin in scripting. But found nothing.
I have a lot of words to set to topics. So I have to select the words, then make the words setting to topics. Topics are sorted by Chinese Pinyin. When I do it manually, the Chinese Pinyin of target words come out automatically. See the picture below.

There are too many words to set topics. So I write a Javascript.
Here is the code:
for(c1 = 0; c1 < myTargetWordsToInsertIndex.length; c1++){
app.select(myTargetWordsToInsertIndex[c1]);
app.activeDocument.indexes[0].topics.add(app.selection[0].contents, app.selection[0].contents's Chinese Pinyin);
}
It's just the app.selection[0].contents's Chinese Pinyin, I can't find any information about it in the Object Model Viewer.
Is there anyone knows some info about this?
Thanks for your attention.
