Highlight other language texts
HI,
I have document which contains Chinese and English languages. For both we have separate fonts to be used. I am trying to find if any Chinese language texts applied with English language font or not. If anything present i need to apply some specific color.
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = '[a-zA-Z0-9]';
app.findGrepPreferences.appliedFont="ITC Avant Garde Gothic Std";
found = app.documents[0].findGrep();
for (i=0;i<found.length;i++) {
if(found.contents){
myarray.push(found.contents);
app.changeGrepPreferences.fillColor = "Chinese";
found.changeGrep();
}
}
alert(myarray)
How I can found the other languages like how i found english character in my find and replace above coding.
Thanks,
K
