Dictionary Lookup
A desktop application for searching English-Polish and Polish-English dictionaries.
Features
- Dual Dictionary Support: Switch between English-Polish (angpol.tab) and Polish-English (polang.tab) dictionaries
- Normal Search: Search for words in dictionary keywords/headwords
- Reverse Search: Search within definitions to find words by their meaning
- Adjustable Font Size: Use Ctrl++ / Ctrl+- to resize text for better readability
- Search Term Highlighting: Matched terms are highlighted in red during reverse search
- Phonetic Character Support: Uses DejaVu Sans font for proper display of IPA and special characters
Requirements
- Python 3.x
- PySide6
Installation
Install the required dependency:
pip install PySide6
You may also need to install the Qt6 framework, if not installed already
Dictionary Files
Place the following tab-delimited dictionary files in the same directory as the script:
angpol.tab- English-Polish dictionarypolang.tab- Polish-English dictionary
File format: Each line should contain keyword<TAB>definition
Usage
Run the application:
python lookup2.py
Controls
| Action | Method |
|---|---|
| Search | Enter keyword and press Enter or click Search |
| Clear | Click Clear button |
| Increase font | Ctrl++ or Ctrl+= |
| Decrease font | Ctrl+- |
Search Modes
- Normal mode: Searches in headwords/keywords (left column of dictionary)
- Reverse mode: Check "Reverse search" to search within definitions (right column)
How to obtain this code:
You can get this code, if you buy me a coffe here.
I cannot provide you with the dictionary files, because even though the PWN publishing house does not give two hoots about the buyers of the Great English Polish and Polish English dictionaries and the accompanying CD media about twenty years later, I do not support piracy. If you ever bought the dictionaries, you already have the files. And you can use the conversion utility available here, to convert them to the *.tab format used by my dictionary lookup utility. As you can see, Python 3.x is required in running the dictionary lookup utility, and in converting the dictionary files from PWN format to something more open. And Python does not bite! :-)
Please also check out the video presentation.
License
This project is provided as-is for personal dictionary lookup use.
Comments
Post a Comment