Reverse-Engineering Apple Dictionary

摘要

For a while now I have wanted to write a simple dictionary app for the Apple Watch. The goal was to be able to quickly look up words from paper books, by storing the book on the watch to be able to do fuzzy matches against the text. While Apple ships amazing dictionaries with macOS and iOS, they only provide a very limited API. On iOS, all you get is a view into the dictionary via UIReferenceLibraryViewController, for the Watch, there is no API at all, and on OS X you get an antique DCSCopyTextDefinition that only returns a plain-text definition, which is not nice to display. The whole definition is returned as one blob of non-rich text, no newlines.

欢迎在评论区写下你对这篇文章的看法。

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.1. UTC+08:00, 2024-05-18 16:59
浙ICP备14020137号-1 $访客地图$