Function: textsec-unconfuse-string
textsec-unconfuse-string is a byte-compiled function defined in
textsec.el.gz.
Signature
(textsec-unconfuse-string STRING)
Documentation
Return a de-confused version of STRING.
This algorithm is described in:
https://www.unicode.org/reports/tr39/#Confusable_Detection
Source Code
;; Defined in /usr/src/emacs/lisp/international/textsec.el.gz
(defun textsec-unconfuse-string (string)
"Return a de-confused version of STRING.
This algorithm is described in:
https://www.unicode.org/reports/tr39/#Confusable_Detection"
(ucs-normalize-NFD-string
(apply #'concat
(seq-map (lambda (char)
(or (gethash char uni-confusable-table)
(string char)))
(ucs-normalize-NFD-string string)))))