Skip to main content
Balaji Murugesan
Known Participant
June 26, 2020
Question

How to find character unicode and name in indesign using javascript.

  • June 26, 2020
  • 2 replies
  • 2300 views

Need to find selected character unicode value and name in indesign

This topic has been closed for replies.

2 replies

Community Expert
June 26, 2020

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?

 

-Manan

-Manan
Balaji Murugesan
Known Participant
June 26, 2020

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.

SumitKumar
Inspiring
July 26, 2021

Yes you can find ARABIC letters with this:

 

 

[\x{0591}-\x{05F4}\x{FB1D}-\x{FB4F}\x{0600}-\x{060A}\x{060C}-\x{06EF}\x{06F0}-\x{06F9}\x{06FA}-\x{06FF}\x{0750}-\x{077F}\x{08A0}-\x{08FF}\x{206C}-\x{206D}\x{FB50}-\x{FD3D}\x{FD50}-\x{FDFB}\x{FDFD}\x{FE70}-\x{FEFC}\x{1EE00}-\x{1EEF1}]

 


-Sumit

-Sumit
Community Expert
June 26, 2020

You can use the method charCodeAt defined on the string class

See the documentation for details

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#String.html

 

-Manan

-Manan
Balaji Murugesan
Known Participant
June 26, 2020

 

For example, How to get selected text unicode and their name same shown on glphs like as above.