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

You can install swe using pipx install swe

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swe-0.4.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swe-0.4.0.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for swe-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a47c9064213115c1752e8c578f92a60557cc32f95d242a1ed644b6987b96e655
MD5 55f8b68452642736d6ad028aab373275
BLAKE2b-256 c8f7d5e8d74449a0605273366b434df1ad03bc60ea3668c5afbd522cb2157791

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swe-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for swe-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff51c5b1bf798514aecb011a97612b402cbc30028f1060ae3ebfe2440f492863
MD5 cb00f85df886df86348b7b8a08ff8987
BLAKE2b-256 3691cef879b568bb30cfe78fd78b43d945df2da49c7e7b57a7c2ab336d20346a

See more details on using hashes here.

Supported by

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