Functions | |
MPlist * | mlanguage_list (void) |
List 3-letter language codes. | |
MSymbol | mlanguage_code (MSymbol language, int len) |
Get a language code. | |
MPlist * | mlanguage_name_list (MSymbol language, MSymbol target, MSymbol script, MSymbol territory) |
Return the language names written in the specified language. | |
MText * | mlanguage_text (MSymbol language) |
Return the language name written in that language. | |
MPlist * | mscript_list (void) |
List script names. | |
MPlist * | mscript_language_list (MSymbol script) |
List languages that use a specified script. | |
Obsolete functions | |
Get an English language name. This function is obsolete. Use mlanguage_name_list() instead. The mlanguage_name() function returns a symbol whose name is an English name of language. language is a symbol whose name is an ISO639-2 3-letter language code, an ISO639-1 2-letter language codes, or an English word.
| |
MSymbol | mlanguage_name (MSymbol language) |
Variables | |
MSymbol | Miso639_1 |
MSymbol | Miso639_2 |
MPlist* mlanguage_list | ( | void | ) |
List 3-letter language codes.
The mlanguage_list() funciton returns a well-formed plist whose keys are Msymbol and values are symbols whose names are ISO639-2 3-letter language codes.
Get a language code.
The mlanguage_code() function returns a symbol whose name is the ISO639 language code of language. language is a symbol whose name is an ISO639-2 3-letter language code, an ISO639-1 2-letter language codes, or an English word.
len specifies the type of the returned language code. If it is 3, an ISO639-2 3-letter language code is returned. If it is 2, an ISO639-1 2-letter language code is returned when defined; otherwise Mnil is returned. If it is 0, a 2-letter code is returned when defined; otherwise a 3-letter code is returned.
Return the language names written in the specified language.
The mlanguage_name_list() function returns a plist of LANGUAGE's names written in TARGET language. SCRIPT and TERRITORY, if not Mnil, specifies which script and territory to concern at first.
LANGUAGE and TARGET must be a symbol whose name is an ISO639-2 3-letter language code or an ISO639-1 2-letter language codes. TARGET may be Mnil, in which case, the language of the current locale is used. If locale is not set or is C, English is used.
SCRIPT and TERRITORY must be a symbol whose name is a script and territory name of a locale (e.g. "TW", "SG") respectively.
NULL
is returned.The returned plist should not be modified nor freed.
Return the language name written in that language.
The mlanguage_text() function returns, in the form of M-text, the language name of language written in language. If the representative characters of the language are known, the characters of the returned M-text has a text property whose key is Mtext and whose value is an M-text that contains the representative characters.
NULL
.MPlist* mscript_list | ( | void | ) |
List script names.
The mscript_list() funciton returns a well-formed plist whose keys are Msymbol and values are symbols whose names are script names.
List languages that use a specified script.
The mscript_language_list() function lists languages that use script. script is a symbol whose name is the lower-cased version of a script name that appears in the Unicode Character Database.