1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

; Improve documentation of 'char-script-table'

* doc/lispref/nonascii.texi (Character Properties): Improve
indexing and document how to produce the list of all scripts.
This commit is contained in:
Eli Zaretskii 2025-12-04 13:09:05 +02:00
parent 3e489ed804
commit fae83f1eb8

View file

@ -733,16 +733,25 @@ specifies, for each character, its Unicode @code{General_Category}
property as a symbol. property as a symbol.
@end defvar @end defvar
@defvar char-script-table
@cindex script symbols @cindex script symbols
@cindex list of scripts
@defvar char-script-table
The value of this variable is a char-table that specifies, for each The value of this variable is a char-table that specifies, for each
character, a symbol whose name is the script to which the character character, a symbol whose name is the script to which the character
belongs, according to the Unicode Standard classification of the belongs, according to the Unicode Standard classification of the
Unicode code space into script-specific blocks. This char-table has a Unicode code space into script-specific blocks. This char-table has a
single extra slot whose value is the list of all script symbols. Note single extra slot whose value is the list of all script symbols, so you
that Emacs's classification of characters into scripts is not a 1-for-1 can evaluate
reflection of the Unicode standard, for example there is no @samp{symbol}
script in Unicode. @lisp
(char-table-extra-slot char-script-table 0)
@end lisp
@noindent
to obtain the list of all the scripts known to Emacs. Note that Emacs's
classification of characters into scripts is not a 1-for-1 reflection of
the Unicode standard, for example there is no @samp{symbol} script in
Unicode.
@end defvar @end defvar
@defvar char-width-table @defvar char-width-table