Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
NSOrthographyMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | Linguistic | MBS MacFrameworks Plugin | 17.3 | Yes | No | No | Yes, macOS only | No |
Notes:
An NSOrthography instance describes:
- Which scripts the text contains.
- A dominant language and possibly other languages for each of these scripts.
- A dominant script and language for the text as a whole.
Scripts are uniformly described by standard four-letter tags (Latn, Grek, Cyrl, etc.) with the supertags Jpan and Kore typically used for Japanese and Korean text, Hans and Hant for Chinese text; the tag Zyyy is used if a specific script cannot be identified. See Internationalization and Localization Guide for more information on internationalization.
Languages are uniformly described by BCP-47 tags , preferably in canonical form; the tag und is used if a specific language cannot be determined.
- 4 properties
- property dominantLanguage as String
- property dominantScript as String
- property Handle as Integer
- property languageMap as Dictionary
- 6 methods
- method allLanguages as String()
- method allScripts as String()
- method Constructor(script as string, map as dictionary)
- method copy as NSOrthographyMBS
- method dominantLanguageForScript(script as string) as String
- method languagesForScript(script as string) as String()
- 2 shared methods
- shared method defaultOrthographyForLanguage(language as string) as NSOrthographyMBS
- shared method orthographyWithDominantScript(script as string, map as dictionary) as NSOrthographyMBS
This class has no sub classes.
Some methods using this class:
- NSLinguisticTaggerMBS.orthographyAtIndex(charIndex as integer, byref effectiveRange as NSRangeMBS) as NSOrthographyMBS
- NSLinguisticTaggerMBS.setOrthography(orthography as NSOrthographyMBS, range as NSRangeMBS)
- NSLinguisticTaggerMBS.tagForString(text as string, charIndex as Integer, unit as Integer, Scheme as String, orthography as NSOrthographyMBS, byref tokenRange as NSRangeMBS) as String
- NSLinguisticTaggerMBS.TagsForString(text as string, range as NSRangeMBS, unit as Integer, Scheme as String, options as Integer, orthography as NSOrthographyMBS) as NSLinguisticValueMBS()
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSOperationQueueMBS - NSOutlineViewItemMBS
Links
MBS Xojo Plugins