Learn R Programming

Unicode (version 15.1.0-1)

u_scripts: Unicode Scripts

Description

Unicode scripts.

Usage

u_scripts(x)

Value

If x is missing, a list of the Unicode scripts given as

u_char_range Unicode character ranges, with the (full) block names as names.

If x is given, a (sub)list of the specific Unicode scripts.

Arguments

x

a character vector with the names of Unicode scripts.

References

Unicode Character Database (https://www.unicode.org/ucd/)

See Also

u_char_property to find the script (property) of Unicode characters.

Examples

Run this code
scripts <- u_scripts()
names(scripts)
## Total number of code points assigned to the scripts:
sort(vapply(scripts, function(s) sum(n_of_u_chars(s)), 0),
     decreasing = TRUE)

Run the code above in your browser using DataLab