Package: pango

Function pango:language-includes-script

Lambda List

pango:language-includes-script (language script)

Arguments

language -- a pango:language instance
script -- a pango:script value

Return Value

True if script is one of the scripts used to write language or nil, if nothing is known about language, including the case that language is nil.

Details

Determines if script is one of the scripts used to write language. The returned value is conservative. If nothing is known about the language tag language, true will be returned, since, as far as Pango knows, script might be used to write language.

This routine is used in the itemization process of Pango when determining if a supplied language tag is relevant to a particular section of text. It probably is not useful for applications in most circumstances.

This function uses the pango:language-scripts function internally.
 

See also

2025-2-15