Package: pango

Function pango-language-from-string

Lambda List

pango-language-from-string (language)

Arguments

language -- a string representing a language tag

Return Value

A pango-language structure.

Details

Takes a RFC-3066 format language tag as a string and convert it to a pango-language structure that can be efficiently copied and compared with other language tags. This function first canonicalizes the string by converting it to lowercase, mapping '_' to '-', and stripping all characters other than letters and '-'.

Use the function pango-language-default if you want to get the pango-language structure for the current locale of the process.

Examples

(pango-language-from-string "de-de") => #<PANGO-LANGUAGE {1006D76393}>
(pango-language-to-string *) => "de-de"    
 

See also

2020-12-4