Giter Club home page Giter Club logo

mouse-dictionary's Introduction

Mouse Dictionary logo

Test Code Climate codecov

Mouse Dictionary is a super fast browser dictionary.

Features:

  • ⚡ Super quick response time (1/60 second)
  • 💡 Smart phrase detection
  • 🔍 Automatic word separation (e.g. camelCase -> camel case)
  • 📝 Option to add your own data
  • 🎨 Customizable view

Available for various documents:

Install

See also Getting started

Screenshots

English-Japanese

ss02.gif

Japanese-English

ss03.gif

German

Want to use for the German language? Take a look these great articles!

How to develop

Preparation

Use Node.js 16+.

npm install

Generate static resources.

npm run res

Build

For Chrome:

npm run build-chrome   # Debug build
npm run release-chrome # Release build

For Firefox:

npm run build-firefox   # Debug build
npm run release-firefox # Release build

For Safari:

npm run build-safari   # Debug build
npm run release-safari # Release build

see package.json for other commands.

Contribution

For the moment, Mouse Dictionary project doesn't have any strict rule about contribution. Feel free to create any issues and pull requests.

Some guides:

  • Editor: the main developer uses VSCode
  • Before you commit: try running npm run test and npm run lint

Cross-extension messaging

Mouse Dictionary supports receiving cross-extension messages. Mouse Dictionary iframe support is a good example that implements message sending to this extension.

Here is a code example for sending a message to Mouse Dictionary. You can make Mouse Dictionary look up words/expressions from other extensions.

const MD_EXTENSION_ID = "dnclbikcihnpjohihfcmmldgkjnebgnj";

chrome.runtime.sendMessage(MD_EXTENSION_ID, {
  type: "text",
  text: "rained cats and dogs",
});

Parameters:

name type value
type string must be "text"
text string text you want to look up

License

Mouse Dictionary is published under the MIT license.

Third-party data

This project includes some third-party data:

Dictionary data

Images

Built-in PDF viewer

Great JavaScript libraries

See also

Chrome 拡張の高速な英語辞書ツールをつくりました(a Japanese tutorial)

mouse-dictionary's People

Contributors

wtetsu avatar piroor avatar michinarinukazawa avatar whtsht avatar suiheilibe avatar ken-matsui avatar louisgv avatar tksugimoto avatar hdykokd 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.