Platforms to show: All Mac Windows Linux Cross-Platform
NSOrthographyMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Linguistic | MBS MacCocoa Plugin | 17.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
Blog Entries
Release notes
- Version 21.1
- Updated NSOrthographyMBS, NSLinguisticTaggerMBS, NSLinguisticValueMBS and NSTextCheckingResultMBS for iOS.
- Version 17.3
- Added NSLinguisticTaggerMBS, NSOrthographyMBS and NSLinguisticValueMBS 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()
- NSSpellCheckerMBS.checkString(text as string, range as NSRangeMBS = nil, checkingTypes as Int64 = -1, options as Dictionary = nil, byref orthography as NSOrthographyMBS, byref wordCount as Integer) as NSTextCheckingResultMBS()
- NSSpellCheckerMBS.languageForWordRange(range as NSRangeMBS, text as string, orthography as NSOrthographyMBS = nil) as string
- NSTextCheckingResultMBS.orthographyCheckingResult(Range as NSRangeMBS, orthography as NSOrthographyMBS) as NSTextCheckingResultMBS
Some properties using for this class:
- NSTextCheckingResultMBS.orthography as NSOrthographyMBS
Some events using this class:
- NSSpellCheckerMBS.requestCheckingOfStringCompleted(sequenceNumber as Integer, results() as NSTextCheckingResultMBS, orthography as NSOrthographyMBS, wordCount as Integer, stringToCheck as String, Range as NSRangeMBS, checkingTypes as Int64, options as Dictionary, tag as Variant)
Some related classes:
- class NSLinguisticTaggerMBS
- class NSLinguisticValueMBS
- class NSRangeMBS
- class NSSpellCheckerMBS
- class NSTextCheckingResultMBS
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSOperationQueueMBS - NSOutlineViewItemMBS
