Need to find selected character unicode value and name in indesign
For example, How to get selected text unicode and their name same shown on glphs like as above.
There is no api that will give you the name that i know if, for the Unicode value i already provided you a method that should work, does it not?
i dont know how to use this, please share any sample lines.
and my requirement is need to find arabic letter in the group of multi language paragraph? is possible?
apart from appliedLanguage.
Yes you can find ARABIC letters with this:
Sumit's solution is the best way to go about looking for Arabic characters in a multilingual paragraph... assuming that Farsi doesn't appear in that paragraph, right? Or Pashto or Kurdish, depending on the glyph used. Somewhere I have JS that I wrote back in the CS4 era that searches multilingual paragraphs for such characters and then identifies language based on glyphs used in only one language - e.g. you usually won't find reh with dot below and dot abobe (ږ) in Arabic. I can dig that code up for you if you are interested.
But yes, specifying Unicode ranges in a regex, as Sumit suggests, is likely your best way to find Arabic glyphs in multilingual stories. To find the Unicode names of those glyphs feels like a multi-step process to me, and I would send you in the direction of this conversation at stackoverflow if you absolutely had to gin up some JS that would return the Unicode glyph names.
I have added more on this regex "HEBREW" and "ARABIC".