GNU bug report logs -
#47856
auto-fill-mode vs. oriental languages: no respect
Previous Next
Full log
View this message in rfc822 format
> From: Eli Zaretskii <eliz <at> gnu.org>
> Date: Tue, 20 Apr 2021 01:20:02 -0400
> Cc: 47856 <at> debbugs.gnu.org
>
> Please help me understand the issue by answering those questions,
> and please provide any additional information that could be of
> relevance, so that we could make some progress here. TIA.
Never mind, I've managed to figure this out on my own. So, back to
the TIL department:
. For CJK scripts, Emacs's filling commands are allowed to break a
line at _any_ character, not just at whitespace. This is not just
Emacs's invention: the Unicode Line-Breaking Algorithm mandates the
same, albeit via special properties it assigns to CJK characters.
. If you load 'kinsoku', Emacs will additionally refrain from
breaking lines between some CJK characters, where there are special
rules which prohibit that. But still, line can be broken almost at
any place in CJK text, even under the kinsoku rules.
. Conclusion: this is the intended behavior, a feature.
So yeah, it's a documentation issue, to be fixed soon enough.
> "Well browsers will break your oriental lines arbitrarily anyway. Bug closed."
>
> Yes, but they do that a the ends of lines they render.
If this is what you want, it's a different feature: you need to turn
on word-wrap (M-x visual-line-mode RET), not auto-fill. In Emacs 28,
there will be an additional option, word-wrap-by-category, which will
obey kinsoku rules in visual-line-mode.
This bug report was last modified 4 years and 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.