rizonesoft / Notepad3

Notepad like text editor based on the Scintilla source code. Notepad3 based on code from Notepad2 and MiniPath on code from metapath. Download Notepad3:
https://www.rizonesoft.com/downloads/notepad3/
Other
4.94k stars 330 forks source link

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

Open 25minutes opened 1 year ago

25minutes commented 1 year ago

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 commented 1 year ago

Add screenshots to demonstrate the issue.

scr-1 scr-2 scr-3

25minutes commented 1 year ago

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

maboroshin commented 1 year ago

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:

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