Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

[BUG] Column Wrap doesn't work on Chinese text

Open 25minutes opened this issue 2 years ago • 3 comments

In latest stable version 6.23.203.2, Edit -> Lines -> Column Wrap works fine on English text. However, it doesn't work on Chinese text, no matter if the file is encoded in GB18030 or in UTF-8. Any chance this can be fixed?

25minutes avatar Jul 19 '23 12:07 25minutes

Add screenshots to demonstrate the issue.

scr-1 scr-2 scr-3

25minutes avatar Jul 20 '23 10:07 25minutes

This is how EmEditor handles the column wraps. One full-width Chinese char equals 2 English chars, to make sure the text is aligned properly.

scr-1 scr-2

25minutes avatar Jul 20 '23 11:07 25minutes

This divides the string based on the space after the string. At this time, it doesn't appear to support languages that don't use whitespace as word divider.

The following languages seem to have this problem:

  • Chinese, Japanese, Thai, Lao, (& Ancient Egypt) (from Word divider on Wikipedia)

Related: https://github.com/rizonesoft/Notepad3/issues/4029 Autocomplete feature

maboroshin avatar Jul 24 '23 09:07 maboroshin