From 94a138d905be4bea537d216550c6449d424e0ddc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 15 Mar 2025 13:58:44 +0200 Subject: [PATCH] Improve conversion between half-width and full-width characters * lisp/textmodes/text-mode.el (text-mode--get-fullwidth-table): Add conversion of SPC to IDEOGRAPHIC SPACE. (Bug#71822) (cherry picked from commit ea49eb4752a0632d8d0dfd4215821ab21bbd5a99) --- lisp/textmodes/text-mode.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index 3b27efbcf87..2d9bb9fb784 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el @@ -286,6 +286,9 @@ The argument NLINES says how many lines to center." (aset tbl ch (+ ch #xFEE0)) (aset rev-tbl (+ ch #xFEE0) ch) (setq ch (1+ ch))) + ;; SPC -> U+3000 IDEOGRAPHIC SPACE + (aset tbl ?\ #x3000) + (aset rev-tbl #x3000 ?\ ) (set-char-table-extra-slot tbl 0 rev-tbl) (set-char-table-extra-slot tbl 1 1) (set-char-table-extra-slot rev-tbl 1 1) -- 2.39.5