pangoScriptGetSampleLanguage {RGtk2}R Documentation

pangoScriptGetSampleLanguage

Description

Given a script, finds a language tag that is reasonably representative of that script. This will usually be the most widely spoken or used language written in that script: for instance, the sample language for PANGO_SCRIPT_CYRILLIC is ru (Russian), the sample language for PANGO_SCRIPT_ARABIC is ar.

Usage

pangoScriptGetSampleLanguage(script)

Arguments

script [PangoScript] a PangoScript

Details

For some scripts, no sample language will be returned because there is no language that is sufficiently representative. The best example of this is PANGO_SCRIPT_HAN, where various different variants of written Chinese, Japanese, and Korean all use significantly different sets of Han characters and forms of shared characters. No sample language can be provided for many historical scripts as well.

Since 1.4

Value

[PangoLanguage] a PangoLanguage that is representative of the script, or NULL if no such language exists.

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]