Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Chinese and English mixed text wrapped untimely

Open wisenut2009 opened this issue 4 years ago • 2 comments
trafficstars

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!

wisenut2009 avatar Jan 17 '21 11:01 wisenut2009

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.

ProgerXP avatar Jan 17 '21 11:01 ProgerXP

It seems the following modified version of Notepad2-mod solved the problem. Notepad2-mod is also based on Scintilla. https://github.com/zufuliu/notepad2

wisenut2009 avatar Jan 17 '21 11:01 wisenut2009