Skip to main content

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

  1. swe -s ord - Print all words containing the specified substring ("ord" in this example).
  2. swe ord - Print the translation for the specified word
  3. swe - 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

swe-0.3.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

swe-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file swe-0.3.0.tar.gz.

File metadata

  • Download URL: swe-0.3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for swe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c4ef17d35863296a5777c96b227dc86703c5bc150e2e573eeff12db56f0d4e0d
MD5 c97ed1c4cb72025ff48ca7638cb8cd74
BLAKE2b-256 443e0f32bd359e77227d8de690c7f149c3ba469761dfa9aeba2b72971977180f

See more details on using hashes here.

File details

Details for the file swe-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: swe-0.3.0-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

Hashes for swe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3da52aa33ee15b39f8f363d6b083a4dbc0c37b6de821fff3176d212f34fadb87
MD5 74bdbe49783a925ff22647a56a1e6a8f
BLAKE2b-256 5ead9ddb5437f87401af1edc34c762dbfd712c5cac1c96664c67762fde69ec70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page