Quick Lookup is a simple GTK dictionary application powered by Wiktionaryâ„¢.
- Lookup definitions for words or phrases using the Wikimedia REST API of Wiktionary
- Choose language by entering language name or ISO-639-1 code (e.g., "English" or "en")
- Open internal links within the app
- Go back to previous page with the back button
- Look up selected text from any app by setting a keyboard shortcut to launch this app with the
--selection
command line option
Dependencies:
gjs (>= 1.70)
gtk4
libadwaita (>= 1.4)
webkitgtk-6.0
To install, run meson builddir && sudo meson install -C builddir
To uninstall, run sudo meson uninstall -C builddir
An AUR package is available for Arch Linux and derivatives.
gjs quick-lookup.js
Open Gnome Builder, choose "Clone Repository…", and follow the instructions. After cloning the project, hit Ctrl+F5 to build and run.
flatpak-builder --force-clean --install --user build com.github.johnfactotum.QuickLookup.json
This app only supports the English version of Wiktionary. This means that you can lookup all words of all languages and find their definitions and descriptions in English.
This is because Wiktionary's definition API is currently only available for English. Explanation from MediaWiki:
Wiktionary content is unstructured, and presenting a concise set of definitions requires parsing them from the page HTML. English Wiktionary has an entry layout guide which assisted in this for the current English-only implementation.
Because I'm lazy and I used the DOM APIs provided by WebKit to manipulate HTML markups.
Probably not, because I'm lazy.
Wiktionary is a trademark of the Wikimedia Foundation. This program is not endorsed by or affiliated with the Wikimedia Foundation.