Dictionary interface of stardict, support regular expression (regex) search and colored output.
Project description
# py_sdvb
## Description
Vocabulary builder by generating word lists from stardict dictionaries. Allow regular expression search. Written in python.
Command-line dictionary searching tool with colored output.
## Features
### Regular expression support
See some regex search examples below:

### Colored output
Keywords are highlighted.
<img src=”/images/coloroutput.png” width=”800”>
### Jupyter/Ipython notebook (Experimental)
Interactively searching/translating in Jupyter notebooks.
<img src=”/images/ipynb_sdcv.gif” width=”600”>
## Prerequisites
This package is based on PyStarDict (https://github.com/lig/pystardict).
Programs are tested for python3 on Mac OS X.
## Usage
### Get the dictionaries
Put all the dictionaries in the directory ~/.stardict/. If you have been using tools like stardict or sdcv, you probably have already had the dictionaries stored there.
### sdvb.py
This is the primary program to help building your vocabulary, by generating a list of words together with their translations.
Run sdvb.py like this: `bash ./sdvb.py [-s] [-h] `
Use the [-h] option for help.
The -s option provides a mode to choose dictionary. Otherwise, all the dictionaries are used.
You will then be prompted with REGEX:, which askes you to input regular expressions for search.
### sdcv.py
This is an interactive command line dictionary tool, basically an analog of sdcv.
`bash ./sdcv.py `
### Add to $PATH
If not using pip to install, probably you need these commands: `bash ln -s /path/to/py_sdvb/sdvb.py /usr/local/bin/pysdvb ln -s /path/to/py_sdvb/sdcv.py /usr/local/bin/pysdcv `
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
File details
Details for the file py-sdvb-1.6.tar.gz.
File metadata
- Download URL: py-sdvb-1.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9e2bf081c416002ff2d8ed8aca5ac773482599470f9367d0f9b33cdb70212d4
|
|
| MD5 |
5f3cc09048e1a00f0725e0cc26542b59
|
|
| BLAKE2b-256 |
42ecb0b711290891d391523e778d7a76a32e55328e0aa586ab7ab1c4a6ba36c3
|