Sublime Forum

CJK word detection and related issues

#1

The first thing is word wrapping. Currently sublime treats continuous CJK words as one english word. This is awful when it comes to long CJK sentences with english and numbers in it.

Refer


to get some example screenshots.

There is Word wrapping for CJK characters giving some way to fix this behavior by manually adding things to sublime-syntax file like this:
https://gist.github.com/hyrious/6d4182a2928a39e6533f60c68806c0b2

Its problem is matching every CJK word may be slow and it can not address the issue shown by

Here are the features I’m requesting:

  1. The word wrapping issue is (maybe) easy to achieve by treating every CJK word a single word at some low level instead of doing this work in syntax highlighting.
  2. As we know, chrome knows word boundary. Maybe we could do something like that. (This is a low priority request.)
0 Likes

#2

The best place to report bugs like this, or comment on existing issues, is at https://github.com/SublimeTextIssues/Core/issues. Bug reports like this on the forum tend to get lost in the shuffle over time.

0 Likes

#3

Thank you for your advice! I’ve raised an issue there!

0 Likes