Type Method

defaultOrthography(forLanguage:)

Creates and returns an orthography object with the default language map for the specified language.

Declaration

class func defaultOrthography(forLanguage language: String) -> Self

Parameters

language

A BCP-47 tag identifying the language.

Discussion

This method automatically determines the script for the specified language. For example, the default orthography for the Hindi language has a language map with a single key, "Deva" (the ISO 15924 script code for Devanagari), that has a corresponding value of an array containing the element "hi" (the BCP-47 identifier for Hindi).

See Also

Creating Orthography Objects

init(dominantScript: String, languageMap: [String : [String]])

Creates an orthography object with the specified dominant script and language map.