Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
/ DictionaryKit Public archive

An Objective-C Wrapper for Private Dictionary Services on Mac OS X

License

Notifications You must be signed in to change notification settings

NSHipster/DictionaryKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DictionaryKit

An Objective-C Wrapper for Private Dictionary Services on Mac OS X

This library accesses private OS X APIs, making it unsuitable for apps submitted to the App Store.

Usage

#import "DictionaryKit.h"

TTTDictionary *dictionary = [TTTDictionary dictionaryNamed:DCSOxfordDictionaryOfEnglish];
NSLog(@"%@\n", dictionary.name);

NSString *term = @"apple";
for (TTTDictionaryEntry *entry in [dictionary entriesForSearchTerm:term]) {
    NSLog(@"%@", entry.text);
}

Available Dictionaries

NSString * const DCSAppleDictionaryName = @"Apple Dictionary";
NSString * const DCSDutchDictionaryName = @"Prisma woordenboek Nederlands";
NSString * const DCSFrenchDictionaryName = @"Multidictionnaire de la langue française";
NSString * const DCSGermanDictionaryName = @"Duden-Wissensnetz deutsche Sprache";
NSString * const DCSItalianDictionaryName = @"Dizionario italiano da un affiliato di Oxford University Press";
NSString * const DCSJapaneseSupaDaijirinDictionaryName = @"スーパー大辞林";
NSString * const DCSJapanese_EnglishDictionaryName = @"ウィズダム英和辞典 / ウィズダム和英辞典";
NSString * const DCSKoreanDictionaryName = @"New Ace Korean Language Dictionary";
NSString * const DCSKorean_EnglishDictionaryName = @"New Ace English-Korean Dictionary and New Ace Korean-English Dictionary";
NSString * const DCSNewOxfordAmericanDictionaryName = @"New Oxford American Dictionary";
NSString * const DCSOxfordAmericanWritersThesaurus = @"Oxford American Writer's Thesaurus";
NSString * const DCSOxfordDictionaryOfEnglish = @"Oxford Dictionary of English";
NSString * const DCSOxfordThesaurusOfEnglish = @"Oxford Thesaurus of English";
NSString * const DCSSimplifiedChineseDictionaryName = @"现代汉语规范词典";
NSString * const DCSSimplifiedChinese_EnglishDictionaryName = @"Oxford Chinese Dictionary";
NSString * const DCSSpanishDictionaryName = @"Diccionario General de la Lengua Española Vox";
NSString * const DCSWikipediaDictionaryName = @"Wikipedia";

Author

Mattt (@mattt)

License

DictionaryKit is available under the MIT license. See the LICENSE file for more info.

About

An Objective-C Wrapper for Private Dictionary Services on Mac OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published