Code Monkey home page Code Monkey logo

quick-lookup's Introduction

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.52)
  • webkit2gtk

To install, run sudo ./install.sh

To uninstall, run sudo ./uninstall.sh

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.

quick-lookup's People

Contributors

johnfactotum avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.