I have to verify the language strings for localization, looking for a way to know the written language script (characters) of the string in application. Not sure how to automate this task.
What I need is to check the script of the string e.g. If its Cyrillic, or Devanagari or Chinese or Latin.
E.g.
If I check 'आपका स्वागत है' string, it should return that its a Devanagari script
Or '欢迎' should return that its a Chinese script
I was thinking of using/maintaining a predefined set of characters to test against, but wondering if there is any sophisticated way of doing this and make it more generalized.
I have to verify the language strings for localization, looking for a way to know the written language script (characters) of the string in application. Not sure how to automate this task.
What I need is to check the script of the string e.g. If its Cyrillic, or Devanagari or Chinese or Latin.
E.g.
If I check 'आपका स्वागत है' string, it should return that its a Devanagari script
Or '欢迎' should return that its a Chinese script
I was thinking of using/maintaining a predefined set of characters to test against, but wondering if there is any sophisticated way of doing this and make it more generalized.
0 commentaires:
Enregistrer un commentaire