]> git.eshelyaron.com Git - emacs.git/commit
Allow user control on char-width of "ambiguous" characters
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 Aug 2023 14:55:56 +0000 (17:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 Aug 2023 14:55:56 +0000 (17:55 +0300)
commita06a2950e168dddcbf1c3cd14697875d93a4f9ff
treeaf9e6fc2c54a97ce6996eb731f5abae810e93770
parent60e5f212182ca2f41f89a4315075e38433bc8ac0
Allow user control on char-width of "ambiguous" characters

* src/character.c (syms_of_character) <ambiguous-width-chars>: New
char-table.

* lisp/international/characters.el (ambiguous-width-chars): Fill
the table.
(update-cjk-ambiguous-char-widths): New function.
(cjk-ambiguous-chars-are-wide): New defcustom, uses
'update-cjk-ambiguous-char-widths' as its :set function.
(use-cjk-char-width-table): Obey 'cjk-ambiguous-chars-are-wide' by
adding another child char-table for ambiguous-width characters,
where the width is set according to the option.

* lisp/language/chinese.el ("Chinese-GB", "Chinese-BIG5")
("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"):
* lisp/language/japanese.el ("Japanese"):
* lisp/language/korean.el ("Korean"): Add new language-info slot
'cjk-locale-symbol'.

Bug#64420
lisp/international/characters.el
lisp/language/chinese.el
lisp/language/japanese.el
lisp/language/korean.el
src/character.c