-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature - Local macOS dictionary as a source #1
Comments
An offline copy of the entirety of a language dictionary? Not that I know of. If it was possible, it'd likely be expensive (API calls), or massive. |
On my computer, if I load The first dictionary is one I installed myself. Looking at the next one:
Poking around online, it seems like these dictionaries were originally plain XML, and then at some point Apple changed it to being a custom compressed format. Some put an old version of Apple's Dictionary Development Kit on Github: https://github.com/SebastianSzturo/Dictionary-Development-Kit Maybe looking a that would tell you how to open the .data files. |
Yeah it would be cool if local dictionaries were accessible |
Currently, define uses all remote (online) sources. A local, expandable dictionary is available on macOS, which would be a great source if it was accessible.
Unfortunately, it seems that the only way to access the dictionary's data is through Core Services, which would require Cocoa bindings to Go and native-compilation (think
cgo
). There may be another way around this, though.Also, the only public APIs that exist return the definition in a formatted string format, not in a structured model, which would be a nightmare (if not potentially impossible) to consistently parse.
More information here (for later reference):
The text was updated successfully, but these errors were encountered: