Long line wrap problem for chinese characters #332
Replies: 1 comment 1 reply
-
Are you sure about your `view.wrap_mode` setting? I copy-pasted your
test text and used the command entry to set `wrap_mode = WRAP_CHAR` and
I appear to get proper wrapping. Any other wrap mode (WRAP_WORD or
WRAP_WHITESPACE) gives me the same wrapping as in your screenshot (">"
is on its own line). Note that Textadept's "Buffer > Toggle Wrap Mode"
uses WRAP_WHITESPACE by default, so you'll get the same behavior as in
your screenshot.
Wrapping has handled by Scintilla, Textadept's editing component, so any
bugs would need to be reported upstream (either by you or me).
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
amitbha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
view.wrap_mode = view.WRAP_CHAR
is set.But TA seems not able to recognize the chinese character boundaries.
I highlight the problem line, which is wraped after a blank space, leaving very long blanks.
If the punctuations can be used as boundaries, the problem will be partially solved.
Text for test:
> 以是之故,须生智慧,彼因亦于清净之经典,与心之能力相称而为听闻。《摄度论》云:“寡闻盲汉不知修,无闻彼当何所思,故当勤闻从彼因,如思以修广生慧。”至尊慈氏亦云:“三轮诸分别,许彼所知障。悭等诸分别,许彼烦恼障。远离彼诸障,除慧更无余。胜慧闻为本,是故闻为胜。”《集学论》亦云:“应忍当求闻,次应住林薮,当精进等引。”
Beta Was this translation helpful? Give feedback.
All reactions