项目作者: techouse

项目描述 :
Termania.net Lookup Opera Extension
高级语言: JavaScript
项目地址: git://github.com/techouse/termania-opera-extension.git
创建时间: 2020-01-16T10:42:32Z
项目社区:https://github.com/techouse/termania-opera-extension

开源协议:GNU General Public License v3.0

下载


Termania.net Lookup Opera Extension

GitHub license
Codacy Badge
GitHub manifest.json dynamic

This Opera extension enables foreigners as well as Slovenian native speakers to search the extensive Slovenian
dictionary search engine Termania.net with the click of a single button.

Why yet another Opera Extension

I wanted to build something that actually solves a problem and helps people, especially foreigners
who are trying to learn the Slovenian language.

How do I install it? :rocket:

TBA …

Is there a Chrome version? :crystal_ball:

Yes and it can be accessed here.

Is there a Firefox version? :fox_face:

Yes and it can be accessed here.

How does it work?

The user first needs to select a Slovenian word and right-click it to open Opera’s context menu:

Context menu

In order to query only the lemmas of each word form the extension makes use of the
Morphological lexicon Sloleks 2.0 indexed in an IndexedDB database
which holds over 100.000 lemmas.
In order to get the 1.5 GB lexicon from XML to SQLite and
then finally into IndexedDB I wrote parser in Python.

Once the correct lemma is identified an API call gets sent to Termania.net
which in turn supplies all the information that is then presented to the user in a popup window.

Results

You also have the option to change the default dictionary to any dictionary provided by Termania.net! All you have
to do is open the popup menu in Opera’s Menu bar and make your choice!

Dictionaries

Why is the installation of the extension taking so long?

Unfortunately the Sloleks database housing all those 100.000 lemmas is quite large (approx. 50MB)
and importing it into IndexedDB takes about 5 minutes to complete during which time you wou’t be
able to use the extension.

The extension also supports dark mode :sunglasses:

Dark mode

Dark mode

How do I build it from source?

The extension uses a lot of different JavaScript libraries and has to be compiled with npm
and Webpack. Ensure you have Node.js and npm installed and run these commands:

  1. npm install
  2. npm run build

The finished extension will present itself in a directory called build. From there you can
load it as an unpacked extension.