Skip to content

johnfactotum/quick-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Lookup

Quick Lookup is a simple GTK dictionary application powered by Wiktionaryâ„¢.

Screenshot

Features

  • 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

Installation

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.

Run without installing

gjs quick-lookup.js

Flatpak

Download on Flathub

Building Flatpaks manually

Using Gnome Builder

Open Gnome Builder, choose "Clone Repository…", and follow the instructions. After cloning the project, hit Ctrl+F5 to build and run.

Using flatpak-builder
flatpak-builder --force-clean --install --user build com.github.johnfactotum.QuickLookup.json

FAQ

Why does it only support English Wiktionary?

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.

Why is WebKit a dependency?

Because I'm lazy and I used the DOM APIs provided by WebKit to manipulate HTML markups.

Will you add support for other online/offline dictionaries?

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.