Sublime Forum

Word wrapping for CJK characters

#1

I just started trying Sublime Text 3 to edit codes containing a lot of CJK (Chinese, Japanese, Korean) texts. The word wrap function fails to recognise that these texts do not use whitespace to separate words, thus breaks lines at awkward positions, leaving large trailing white space. I went around the Internet and couldn’t find a solution. Is there perhaps a way to add all CJK characters to the list of “word separators”?

The code at http://typeof.net/m/sublime-text-2-chinese-wrap-fix.html may help, but I do not know how to use it.

The thread https://forum.sublimetext.com/t/word-wrapping-goes-wrong-on-chinese-japanese-characters/4390/1 was not concluded with an answer.

0 Likes

CJK word detection and related issues