Command line interface for Folkets lexikon, the Swedish-English dictionary
Project description
swe - Swedish-English Dictionary
swe
is a command-line interface to the great Swedish-English dictionary "Folkets lexikon". It works 100% offline. Users can explore translations, idioms, synonoms and more. It can also be used for finding words containing specific substrings, and for listening to the pronunciations of words.
Installation
swe
is a Python script with zero dependecies. Place the swe.py somewhere in your $PATH and you should be good to go. For example:
$ git clone https://github.com/bjesus/swe.git
$ sudo cp swe/swe.py /usr/bin/swe
$ chmod +x /usr/bin/swe
$ swe ord
Zsh Completion
The repository includes a Zsh completion file _swe to enhance the user experience by enabling word auto-completion.
To enable Zsh completion, do the following:
$ cp swe/_swe ~/.zsh/completion/_swe
$ chmod +x ~/.zsh/completion/_swe
You will need to restart Zsh for the changes to take effect.
Usage
swe -s ord
- Print all words containing the specified substring ("ord" in this example).swe ord
- Print the translation for the specified wordswe
- Play the sound of the latest translated word
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file swe-0.2.1.tar.gz
.
File metadata
- Download URL: swe-0.2.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a45472ed560c3e1ce8132637bc534899cda2985d377d7564fb9b9eb41d1aa7 |
|
MD5 | ee4efdf581de24d936628751abc3bf18 |
|
BLAKE2b-256 | f47925dc20d4385455383cbe987e634524a3250e81d78e2b3abf89c4bb1f2434 |
File details
Details for the file swe-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: swe-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3410a66a89acbf997d085e90153c9e79b6fb19e2f08c8d7cae3066b3c7b76921 |
|
MD5 | c3632ed8ee51bd4c070a674d9ae79645 |
|
BLAKE2b-256 | 787b1dc948c5edff562bf6ad151ba80ddd6dd42a3a030f14163dc214c0505b15 |