Function: textsec-scripts

textsec-scripts is a byte-compiled function defined in textsec.el.gz.

Signature

(textsec-scripts STRING)

Documentation

Return a list of Unicode scripts used by characters in STRING.

The return value is a list where for each character in STRING, there is a list of script symbols for that character. Thus, each script's symbol can appear more than once; use textsec-covering-scripts to obtain a list in which each script appears at most once. The script symbols returned by this function follow the Unicode Script property of characters as defined by the Unicode Standard Annex 24 (UAX#24). See the Unicode UCD file Scripts.txt for the scripts defined by Unicode.

Source Code

;; Defined in /usr/src/emacs/lisp/international/textsec.el.gz
(defun textsec-scripts (string)
  "Return a list of Unicode scripts used by characters in STRING.
The return value is a list where for each character in STRING,
there is a list of script symbols for that character.  Thus, each
script's symbol can appear more than once; use `textsec-covering-scripts'
to obtain a list in which each script appears at most once.
The script symbols returned by this function follow the Unicode Script
property of characters as defined by the Unicode Standard Annex 24 (UAX#24).
See the Unicode UCD file Scripts.txt for the scripts defined by Unicode."
  (seq-map (lambda (char)
             (elt textsec--char-scripts char))
           string))