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)
This commit is contained in:
parent
52e49a5616
commit
ea49eb4752
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue