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.2.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

swe-0.2.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for swe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af929503eeccdb5646683a0dd478eac9168993451dc91d100737b67886ad38f6
MD5 b4283c7c23755255f62de9a65d197d80
BLAKE2b-256 9bef64a33d01b63ff39a24281c5162a8f813a433368c4c433e12eff6bb3fb716

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b975bfaf42542a121840a965cedac47132e6fd0b9ef0ad69c4148dad9f5256b3
MD5 6f82e0b698bcb8ed27402f9dbcb3bffb
BLAKE2b-256 2db2a3efe76a5504c4667c928d8ab165102163e37425f9f006ba6f64152bbc34

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