Name
planguage:IncludesScript -- check if language includes script
Synopsis
ok = planguage:IncludesScript(script)
Function
Determines if script is one of the scripts used to write the language.

The returned value is conservative; if nothing is known about the language tag the language, True will be returned, since, as far as Pango knows, script might be used to write the language.

This routine is used in Pango's itemization process 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.

See planguage:GetScripts() for a list of supported scripts.

Inputs
script
a script identifier
Results
ok
True if script is one of the scripts used to write the language, False otherwise

Show TOC