Skip to content

A simple desktop app for dictionary lookups (with OCR functionality) that supports JMdict and EPWING dictionary files

License

Notifications You must be signed in to change notification settings

mhtchan/shiraberu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shiraberu

A simple desktop app for dictionary lookups (with OCR functionality) that supports JMdict and EPWING dictionary files

Installation

Dependencies

  1. Run poetry install to install dependencies (see https://python-poetry.org/docs/#installation for poetry installation)
  2. Run poetry run python main.py

Alternatively, install the required depdencies listed in pyproject.toml manually.

Dictioanary files

shiraberu only supports dictionary files that have been processed by the Yomichan Import tool (see https://foosoft.net/projects/yomichan-import/ for installation and usage). For example

If done correctly, these files should be in zip format, which can be imported through the config window.

Usage

Wildcards

The lookup functionality accepts the wildcard characters % (zero or more characters) and _ (exactly one character)

For example, 電% will match and also entries such as 電気, 電車 and 電子回路.

Optical Character Recognition

Images that are pasted into the lookup text box will be translated to text (courtesy of the manga_ocr package). For example, simply copy a portion of the screen (shift+win+s on Windows) and paste into the lookup text box.

Licensing

  • This application uses the PyQt library, which is released under the GPL v3. Hence, the code in this repository is also released under the same license (https://github.com/mhtchan/shiraberu/blob/main/LICENSE)
  • The files in the font directory are licensed under the SIL Open Font License.

About

A simple desktop app for dictionary lookups (with OCR functionality) that supports JMdict and EPWING dictionary files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages