Fix display of LRI, RLI, and FSI by 'C-x ='.

This commit is contained in:
Eli Zaretskii 2014-10-13 15:27:19 +03:00
parent e5500a96a7
commit d6eeb62788
2 changed files with 8 additions and 0 deletions

View file

@ -448,6 +448,12 @@ relevant to POS."
(setq char-description
(concat char-description
(propertize (string ?\x202c ?\x200e) 'invisible t))))
;; Append a PDI character to directional isolate initiators, to
;; prevent potential messup of the following numerical text
((memq char '(?\x2066 ?\x2067 ?\x2068))
(setq char-description
(concat char-description
(propertize (string ?\x2069) 'invisible t))))
;; Append a LRM character to any strong character to avoid
;; messing up the numerical codepoint.
((memq (get-char-code-property char 'bidi-class) '(R AL))

View file

@ -1229,6 +1229,8 @@ in *Help* buffer. See also the command `describe-char'."
(propertize (string ?\x202c) 'invisible t))
((memq char '(?\x202b ?\x202e))
(propertize (string ?\x202c ?\x200e) 'invisible t))
((memq char '(?\x2066 ?\x2067 ?\x2068))
(propertize (string ?\x2069) 'invisible t))
;; Strong right-to-left characters cause reordering of
;; the following numerical characters which show the
;; codepoint, so append LRM to countermand that.