AMAttributedHighlightLabel icon indicating copy to clipboard operation
AMAttributedHighlightLabel copied to clipboard

support for chinese language

Open radhakrishnapai opened this issue 11 years ago • 1 comments

As an enhancement, is it possible to provide support for chinese language? Please do reply.

radhakrishnapai avatar Oct 13 '14 06:10 radhakrishnapai

Hi again!

I did this easily by adding the unicode character ranges

\u4e00-\u9fff\u3400-\u4dff\uf900-\ufaff\uac00-\ud7af

in the character set of the regex. The complete character set in regex would look like:

[A-Za-z0-9\u4e00-\u9fff\u3400-\u4dff\uf900-\ufaff\uac00-\ud7afé|ë|ê|è|à|â|ä|á|ù|ü|û|ú|ì|ï|î|í)_]

You may find all character ranges for Chinese in the following SO link: http://stackoverflow.com/a/1366113/2954866

radhakrishnapai avatar Oct 14 '14 20:10 radhakrishnapai