AMAttributedHighlightLabel
AMAttributedHighlightLabel copied to clipboard
support for chinese language
As an enhancement, is it possible to provide support for chinese language? Please do reply.
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