Notepad2e
Notepad2e copied to clipboard
Chinese and English mixed text wrapped untimely
Notepad2e wraps Chinese and English mixed text untimely when the option “Wrap text between words” is selected. WrappingText.zip
Could you make some improvements? Thank you very much!
Wrapping is handled by Scintilla, not sure if we can influence it.
@cshnik This reminds me of a problem with HTML documents that have no language specified. With <html lang=en>, this text would be wrapped incorrectly (using word wrapping rules of English, i.e. breaking words on whitespace). With <html lang=zh>, it would use Chinese-specific rules. Scintilla probably has a similar setting or something for configuring locale-specific rules.
It seems the following modified version of Notepad2-mod solved the problem. Notepad2-mod is also based on Scintilla. https://github.com/zufuliu/notepad2