orthographyWithDominantScript:languageMap:
Creates and returns an orthography object with the specified dominant script and language map.
Declaration
+ (instancetype) orthographyWithDominantScript:(NSString *) script languageMap:(NSDictionary<NSString *,NSArray<NSString *> *> *) map;Parameters
- script:
The dominant script.
- map:
A dictionary mapping ISO 15924 script codes to arrays of BCP-47 language tags.
Return Value
An orthography object initialized with the specified script and language map.
Discussion
You typically use the defaultOrthography(forLanguage:) method to create orthography objects with automatic language mapping. Use this initializer only if you need to override the script associated with one or more languages.