Skip to content

Latest commit

 

History

History
56 lines (50 loc) · 2.68 KB

README.md

File metadata and controls

56 lines (50 loc) · 2.68 KB

Dictionary

A web dictionary reader

image

🔗 Offline Mode

If you have already downloaded these files, you could use this dictionary offline.

  1. Press upload
  2. Select your dictionary files. It should consist of more than 3 files. See here for more information
  3. Search words to know!

🌐 Online Mode

It is also possible to store dictionaries on your server and download them when loaded. To install custom dictionaries:

  1. Install a web server, I recommend XAMPP which includes Apache
  2. Clone this project and extract to web root
  3. Sort your dictionary files like this
dictionary
├── YourDict1
│   ├── YourDict1.dict.dz
│   ├── YourDict1.idx
│   └── YourDict1.ifo
└── YourDict2
    ├── YourDict2.dict.dz
    ├── YourDict2.idx
    └── YourDict2.ifo
    └── YourDict2.syn
  1. Open data.js. It contains a single object called "languages". Change the key to your language, and the dictionary name (i.e. YourDict1) to its value so it looks like this:
const languages = {
    English: "YourDict1",
    French: "YourDict2",
}
  1. Add "?lang=English" or whatever language name you put in data.js at the end of the URL. If you are hosting the file locally, the URL should be something like
http://localhost/dictionary/?lang=English
  1. It might take a while to load as dictionaries can get pretty big

🕮 StarDict

We use the StarDict format to parse dictionaries. The StarDict format is an open source format created by StarDict, and consists of 3 or 4 files: dictionary.dict.dz, dictionary.idx, dictionary.ifo and optionally dictionary.syn. I have included some dictionaries but it wouldn't be of much use unless you study classics

  • English: Oxford Advanced Learner's Dictionary
  • Latin: A Latin Dictionary, Lewis & Short
  • Ancient Greek: A Greek–English Lexicon, Liddell & Scott

Credits

Many thanks for those who made the following libraries. This project wouldn't be possible without their hard work.