Code Monkey home page Code Monkey logo

websterparser's Introduction

WebsterParser

Build

A better dictionary for your mac

In the a blog post named “You’re probably using the wrong dictionary”, James Somers proposes using Webster’s Unabridged Dictionary as it provides more evocative and accurate definitions than most modern dictionaries.

The text of the 1913 version has been digitized and can be found on Project GNU CIDE. Unfortunately the text files are in a very arcane format. Being created before UTF-8 was commonly used, it specifies a lot of non-standard entities to encode the all the various accents and special symbols.

This project parses these original text files and creates a reasonably clean UTF-8 XML version which can be converted into a mac dictionary file with Apple’s Dictionary Kit.

Screenshot of the dictionary

Download the Dictionary

Download the latest release here, or find older versions in the Releases section of this project.

Build from Source

Requirements

  • Node.js
  • Xcode
  • Apple’s Dictionary Developer Kit
    • Install instructions (as of 2020-02-08):
      1. Visit More Downloads for Apple Developers and log in
      2. Search for “dictionary”
      3. Download the “Additional Tools for Xcode” that corresponds to the version you have installed
      4. Open the DMG
      5. Drag the “Dictionary Developer Kit” to /Applications/Utilities
        • Recent versions of macOS will require you do this via the GUI to properly authenticate

Once you have the above installed, clone the project & its submodules, then install & build the dictionary:

git clone --recurse-submodules [email protected]:ponychicken/WebsterParser
cd WebsterParser
npm install
npm run build_and_install

Building the dictionary might take a while (around three minutes on my machine)

Using it on iOS?

You can use the dictionary file on your iDevice if it is jailbroken. SSH into your device and navigate to /private/var/mobile/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionary2.

On your iDevice dowload any new stock dictionary (Select a word → Define → Manage → Download) that you don't need.

In your SSH browser find out which folder was just added. Navigate to folderwithcrypticnumber/AssetData. Replace the .dictionary folder with the webster.dictionary folder, using the same name as the existing folder. You should now be able to look up words.

websterparser's People

Contributors

jeffbyrnes avatar ponychicken avatar dependabot[bot] avatar j-f1 avatar myobie avatar nickwynja avatar krackers avatar duetosymmetry avatar gingerbeardman avatar sjml avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.