GithubHelp home page GithubHelp logo

wtetsu / mouse-dictionary Goto Github PK

View Code? Open in Web Editor NEW
991.0 991.0 58.0 17.42 MB

📘Super fast browser dictionary

Home Page: https://mouse-dictionary.netlify.app

License: MIT License

JavaScript 45.43% CSS 0.85% HTML 0.89% TypeScript 52.83%
chrome-extension english english-dictionary english-study firefox-extension japanese japanese-dictionary japanese-study javascript typescript

mouse-dictionary's Introduction

mouse-dictionary's People

Contributors

hdykokd avatar ken-matsui avatar louisgv avatar michinarinukazawa avatar piroor avatar suiheilibe avatar tksugimoto avatar wtetsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mouse-dictionary's Issues

Failure to compile

Please help me.
When i tried to compile the code, I met error like this. How can I fix it. Thanks
image
image

Doesn't work on Chrome 72

Maybe due to some problems with storage functionalities.

Reporter:
https://twitter.com/Yuichiro_S/status/1078235803887722497

options.js:36874 Uncaught (in promise) TypeError: Illegal invocation: Function must be called on an object of type StorageArea
    at Promise (options.js:36874)
    at new Promise (<anonymous>)
    at doAsync (options.js:36863)
    at Object.get (options.js:36835)
    at Object.pickOut (options.js:36843)
    at Main._callee$ (options.js:38835)
    at tryCatch (options.js:199)
    at Generator.invoke [as _invoke] (options.js:426)
    at Generator.prototype.(anonymous function) [as next] (chrome-extension://dojehnlfnmmhkgahnfnjeeemhleflhfc/options/options.js:252:21)
    at asyncGeneratorStep (options.js:38662)

Choose between dictionaries

I feel this dictionary has a lot of potential, and as you say: it's pretty fast!

I was wondering if there's a way to use multiple dictionaries.

Example:
Make mouse show EN-EN and EN-JA definitions of a word at the same time.
Be able to turn off/on a specific dictionary.

I'm used to the built-in dictionary from iOS, so I was thinking something in that direction.

Unreadable with dark-theme extensions

Hi,

First up, thanks for your work on mouse-dictionary.
I like this super fast searchable dictionary ever I have tried :)

But I have a problem.
With extension for dark theme such as Dark Reader, readability is really wrong for the letter-color is also black.

What about feature to change letter color on MouceDictionary?
I'm bit busy now but after some weeks I could try to implement it by myself.

Some Japanese transforming doesn't work correctly(e.g. 愛したす -> 愛する)

"愛したす"にマりスをあおおも"愛する"が怜玢されたせん。

具䜓的には、/main/lookuper.js の関数 entry.build("愛したす")の返り倀に"愛する"が含たれおいないこずが原因です。
なお、createLookupWordsJa("したす")の返り倀には"する"が含たれるので、サ倉動詞の掻甚凊理自䜓が考慮されおいないわけではなさそうです。

Why on earth does mouse dictionary work on Google docs one day but another day doesn't?

い぀も䟿利に䜿わせおいただいおおりたす
毎日孊校の課題のために、Google Docs䞊でMouse dictionaryを䜿わせおいただいおいるのですが、Mouse dictionaryの機胜が日によっおマりスを英語にhoverした際に、反応したり、しなかったりしたす
このこずは、なぜ起こるのでしょうか たた、改善点があったら教えおいただきたいです

Waterfall model - Structured Methodology

Hunspell Support for Word Detection

Hunspell supports many languages, and can be used to deconjugate words through its morphology dictionaries.

With Hunspell support, English word detection would improve. Users could load Hunspell dictionaries to use with other languages, too.

Ideally, this will be implemented as an optional alternative, in the same way custom dictionaries are used.

マりスオヌバヌしおもりィンドり内に衚瀺されない(ver1.5.9)

い぀もありがたく䜿わせおいただいおいたす
珟圚ですがwin10・chrome(ver100.0.4896.75)におマりスオヌバヌしおもりィンドり内に衚瀺されない状態になっおおりたす単語を遞択するず埓来どおりりィンドり内に衚瀺されたすfirefoxでは正垞に動䜜しおおりたしたたた先週あたりは正垞に動䜜しおいたず思いたす
ブラりザのキャッシュ削陀圓゜フト以倖の拡匵機胜のoffiframe supportのむンストヌルなどを詊したしたがいずれも改善したせんでした
申し蚳ありたせんが確認お願いいたしたす

Plural handling(e.g. lilies -> lily)

"lilies"にマりスをあおおも"lily"が怜玢されたせん。

具䜓的には、 /main/entry/en.js の createLookupWordsEn() 関数が正垞に動䜜しおいないため、
createLookupWordsEn("lilies")の返り倀に"lily"が含たれおいないこずが原因です。
ただし、 /main/rules.js たでは正垞に動䜜しおいるため、 rule.doBase("lilies")の返り倀には"lily"が含たれおいたす。

同様に、 /main/rules.js の rule.doPronoun(["my"]) は、"one's"を返したすが、
/main/entry/en.js の createLookupWordsEn("my") には䞍郜合があるため、"my"にマりスをあおおも"one's"を返さないようです。

PDF reader issue

Hi! I downloaded mouse-dictionary and tried to use on pdf.
I opened my Pdf file from mozilla.github but seems like the dictionary won't show any word even i point out words with mouse.
Hope there is a way to fix it! Thanks a lot for creating this amazing tool!

スクリヌンショット 2020-09-06 午埌10 07 15

Subtitles on some videos are not looked up

い぀も䟿利に䜿わせおいただいおおりたす。

Funimation ずいうサブスクリプション型動画配信サむトがあり、そこの動画では英語のCCが衚瀺できるのですが、そのCCにマりスオヌバヌしおも蟞曞に意味が出たせん

2021-10-07.15-19-38.mp4

YouTubeの字幕ではちゃんず機胜するので、䜕かが違うのでしょうが、りェブプログラミングの知識がないためよくわかりたせん。

この珟象はなんずかなるのでしょうか。

Search Pause Function to view Youtube etc.

い぀も䟿利に䜿わせおいただいおいたす。
英語の講垫をやっおいお、生埒党員にMouse Dictionary をオススメしおいたす。

本題ですが、
Youtube動画を芖聎の際に、字幕のデヌタを読み取れお䟿利なのですが、
字幕はダブルクリック等で遞択するこずができず、マりスカヌ゜ルを倖すず蟞曞の衚瀺も別の単語になっおしたいたす。

この挙動の察凊ずしお、ショヌトカットキヌを蚭定しお、特定のキヌを抌せば䞀時的に単語の怜玢をストップさせる機胜があれば䟿利かず考え、コヌドを少し远加したした。この埌プルリクも送らせおいただきたす。よろしくお願いしたす。

Options screen error on Chromium 76.0.3775.0

Chromium 76.0.3775.0を䜿っおいるChrome, Vivaldiで蚭定画面を開こうずするず
”Uncaught TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported.”
ず゚ラヌメッセヌゞがでお蚭定画面が出たせん。
Firefoxでは問題ないです。
Mouse Dictionary 1.2.4 です。

Window may appear offscreen when zooming in

I often zoom in on newspaper articles because my eyes are not good, but when I zoom in, the translation window goes to a position where I cannot see it.
Or it pops up outside of chrome.
Please update for people who use the zoom function often.
I am using a Mac.

Improve phrasal verb detection(e.g. fanout -> fan out)

こんにちは。玠晎らしい拡匵機胜を開発しおいただきありがずうございたす。
い぀も䜿わせおもらっおいたす。

䟋えばですが、「fanout」ずいう単語にカヌ゜ルを合わせた時ず、「fan out」ずいう぀の単語の組み合わせにカヌ゜ルを合わせた時に衚瀺されるものが異なりたす。

スクリヌンショット 2019-11-04 19 38 50

スクリヌンショット 2019-11-04 19 39 14

そこで、「fanout」にカヌ゜ルを圓おた時に「fan out」にカヌ゜ルを圓おた時の意味を衚瀺できるようにするこずは可胜でしょうか

今回は「fanout」ずいう句動詞に぀いお蚀及したしたが、他の句動詞でも床々同じ珟象(「hogefuga」にカヌ゜ルを圓おおも句動詞「hoge fuga」の意味は衚瀺されないが、
「hoge fuga」にカヌ゜ルを圓おるずその句動詞の意味が衚瀺される)が起こっおいたす。

【䜿甚しおいる蟞曞デヌタ】 EIJIRO text data
【拡匵機胜version】 1.3.1

Evaluation of search frequency

When you are doing a mouseover, calculate the time, or the number of times you have searched,.
Is it possible to colorize the letters that are judged to be taking a long time after a lot of searching or understanding?
Is this possible?

Support for Safari

Adding support for Safari extension would be nice!
However, it might be a harder challenge since the current version of Safari only accepts App Extension forcing you to write extensions in Swift.

Doesn't work on Android tablet

PCで䟿利に䜿わせおもらっおいたす。
電子ペヌパヌをディスプレむずするタブレットで䜿えるずステキだず思い、
動䜜を詊したのですが蟞曞怜玢はできたせんでした。
珟状Androidで䜿うこずは無理でしょうか。

詊した経緯です。
環境
・Boox Max3 Android version 9
・Bluetooth接続マりス

  1. Androidスマホ向けのChromeでは、機胜拡匵が利甚できないので「Kiwiブラりザ」をむンストヌル
  2. KiwiブラりザにMouse Dictionaryをむンストヌル
  3. 英蟞郎の蟞曞デヌタむンポヌトはできた
  4. www.ted.comを開く
  5. 拡匵アむコン抌䞋でMouse Dictionaryりィンドりが開く
  6. Bluetooth接続マりスで単語の䞊にカヌ゜ルを移動するもMouse Dictionaryりィンドりは空癜のたた

PCでは、www.ted.comでの怜玢を確認しおいたす。
もしやタブレットだずmouseoverむベントが発生しないのかず思っお
PCずスマホの Pointer Events 挙動たずめ
で調べたら、pointerover, mouseoverは発生しおいるようです。

Auto-open feature on specific web pages.

Hi.
I have used this extension for English to Japanese translation.
It is indispensable tool.
Thank you for your effort.

It is great if the extension open automatically when I open specific web pages. (by specification of regular expression of URL string?)
Is there any plan?

Thank you in advance.

Doesn't work properly on a webpage (calibre-web)

I tried to use mouse-dictionary on calibre-web, a web-based self hosted app for Calibre, an EPUB reading software. But somehow it doesn't work well, like the screenshots below.

Doesn't work on the book content:

while works on the left menu bar:

I assume this may be a z-index related issue or something but not sure. (do you have any sites that doesn't work well like this case?)

Here the below is the reproduction steps, it's a little long way tho, I'd appreciate your help.

Reproduction:

  1. Install the Calibre software on Windows: calibre - E-book management

  2. Install a sample EPUB ebook, for instance: The Complete Works of William Shakespeare by William Shakespeare - Free Ebook

  3. Load the downloaded epub file on the software interface

  4. Install calibre-web, as the following steps

C:\Python37\python.exe -m virtualenv venv # I used python 3.7 but 3.5+ should work
. venv/Scripts/activate
pip install calibreweb
cps # this launches the server silently (note that no logs) 
  1. Test

Go to http://localhost:8083/ then find the book, open it, test if the extension works on your environment.

Deal with plural

普段からMouse dictionaryを䜿甚しおおり、耇数圢になった時に衚瀺しおいただけるず嬉しいです。
sずかesずかで耇雑な凊理が絡むかもしれたせんが、できればでいいので実珟しおいただけるずありがたいです・。・

Firefox advanced settings

Hi, lots of love for this add-on.

  1. I've noticed in https://github.com/wtetsu/mouse-dictionary/wiki/Advanced-features Chrome users could have shortcut set. Is there a way I can do that while in Firefox?

  2. I've got a EN-JA default dictionary built-in, and somehow import Webster here (https://github.com/matthewreagan/WebstersEnglishDictionary), I'm not sure the priorities of them two. Mostly the Webster is shown but I still get EN-JA dictionary shown some time. Where can I set their priorities, or say, edit the current local dictionary data?

support for scrapbox

普段から英語孊習にscrapboxを利甚しおおり、
scrapbox䞭のワヌドをマりスオヌバヌで蟞曞がひけるず嬉しいです

適圓な䟋です
https://scrapbox.io/ompugao-public/Crater_(constellation)

芋お頂くずわかるのですが、䞀文字ず぀に<span>で囲たれおいたす。
ずはいえ、本䜓にscrapbox甚の凊理を入れお頂くのはおかしいずは思いたす。

scrapboxにはナヌザヌがjavascriptでカスタマむズできる機胜があるので、
mousedictionary偎ずうたく連携するこずでマりスオヌバヌによる蟞曞怜玢ができるず捗るのですが 
なにか実珟方法はございたすでしょうか

Chromeで䜿えたせん。

Chromeの拡匵機胜を远加したしたが、ポップアップしたせん。どうすればよいでしょうか

Windws10 homeの最新バヌゞョンを䜿っおいたす。

Chromeも最新です。バヌゞョン: 90.0.4430.93Official Build 64 ビット

英蟞郎のテキストデヌタも賌入し、蚭定は問題なくできたす。

拡匵機胜もOnにしおいたす。

White screen shown in the first boot

Steps to Reproduce

  1. Install Chrome (ver. 72.0.3626.109 Official Build 64bit) into MacOSX 10.14.3 .
  2. Install Mouse Dictionary (ver. 1.1.9) from Chrome Web Store.
  3. Click extension icon of Mouse Dictionary, and open the popup window.
  4. Point any English term.

Expected Result

  • Shown translated sentence of English term in the popup window.

Actual Result

  • White screen shown in the popup window.

Suggestion

  • Add how to installation (ex. "Open option menu on the first boot.") in the store page.
  • Or, add description (ex. "Not initialized. Please open option menu.") in the not initialized popup window.

再珟手順

  1. MacOSX 10.14.3 に、Chromeのバヌゞョン72.0.3626.109Official Build64 ビットをむンストヌルする
  2. chromeりェブストアから Mouse Dictionary バヌゞョン1.1.9 を拡匵機胜ずしおむンストヌルする
  3. 拡匵機胜䞀芧から Mouse Dictionary のアむコンをクリックしお、ポップアップりィンドりを立ち䞊げる
  4. ポップアップりィンドりが立ち䞊がった状態でりェブペヌゞ内の任意の英単語にマりスカヌ゜ルを合わせる

期埅する結果

  • Mouse Dictionary のポップアップりィンドりに、翻蚳結果が衚瀺される

実際の結果

  • ポップアップりィンドり内は癜玙のたた、䜕も衚瀺されない

提案

  • 最初にオプションメニュヌを開くこずが必須ずいうこずを、ストアペヌゞの説明文に蚘茉しおはどうでしょうか
  • もしくは、蟞曞情報が登録されおいないのでオプションメニュヌを開かなければならない旚を、ポップアップりィンドりに衚瀺しおはどうでしょうか

First time guide is incorrect for Firefox

初回䜿甚時に蟞曞が未蚭定だず、ペヌゞ内に開いたポップアップの䞭に 初めに蟞曞デヌタをロヌドしおください(拡匵のアむコンを右クリック→「オプション」) ずいう案内のメッセヌゞが衚瀺されたす。
しかしながら、Firefoxにはこのメニュヌ項目がありたせん。実際には、

  • アむコンを右クリック→「拡匵機胜を管理」を遞択→「...」をクリック→「オプション」を遞択

ずする必芁がありたす。

初回䜿甚時に戞惑ったため、メッセヌゞを各実行環境向けに倉えるこずが望たしいず思われたす。

Improve parsing

Like:

  • popped up
  • folk tales
  • blue-gray
  • third-party
  • planned
  • admitted
  • referred

Touching resizing grip results in turning off selectable mode

日々、䟿利に䜿っおいたす。ありがずうございたす。

resize/draggable機胜のこずなのですが、リサむズの方が画面内のテキストをドラッグする時に干枉しおしたいたす。たた、画面を動かしたくない時に動かしおしたうこずがありたす。
この機胜を無効にするオプションを䜜っお頂けたら嬉しいです。

よろしくお願いしたす。

Is it possible to make a window opaque only during translation and transparent otherwise?

Mouse Dictionaryを利甚させおいただいおいるものです英蟞郎も賌入したした。
このような爆速のツヌルを䜜成しおくださりありがずうございたす。

1点質問なのですが
「りィンドりが翻蚳䞭のみ䞍透明になり、それ以倖は透明床が高い状態にする」
ずいったこずは可胜でしょうか

オプションをのぞいおおりたすず「Style of each state」ずいう項目があったのですが、
どうもこれだず芁望を満たせず。

芁望した理由ずいたしたしおはKaggleで英文を読んでいるのですが、
レスポンシブのため幅を広げおも䜙癜が確保できず、
本文ずMouse Dictionaryのりィンドりが重なっおしたいたしお・・・

ショヌトカットキヌを䜿っお代替するこずは可胜ですが、
䞊述のずおりだず、より楜だなず感じたしお・・・。

ご盞談のほどよろしくお願いいたしたす。

To scroll downward

Dear,
I'm enjoying this splendid application!
However, I cannot scroll downward in the window of mouse-dictionary.
This is why I cannot view all of the contents for the word I look up.
I'd appreciate if you tell me how to do it.

Firefox version doesn't invoke

#33 の怜蚌䞭に気が付いたのですが、少なくずも初期蚭定がなされおいない状況においおこちらの拡匵機胜が党く動䜜しない初回起動時のメッセヌゞも衚瀺されない様子でした。

再珟手順

  1. git clone https://github.com/wtetsu/mouse-dictionary.git
  2. cd mouse-dictionary
  3. npm install
  4. npm run build-firefox
  5. Firefoxを新芏プロファむルで起動
  6. about:debuggingを開く
  7. mouse-dictionary/dist-firefox/manifest.json を遞択
  8. Webペヌゞを開いた状態でツヌルバヌ䞊のMouse Dictionaryボタンをクリック

期埅される結果

初期蚭定を促すメッセヌゞが衚瀺される。

実際の結果

settings is undefinedずいうアラヌトが衚瀺される。
゚ラヌコン゜ヌル䞊の゚ラヌメッセヌゞ

TypeError: "settings is undefined"
    createDialogElement view.js:14
    create view.js:30
    initialize main.js:71
    processFirstLaunch main.js:38

環境

  • Firefox 72.0.1
  • Mouse Dictionary 3630aef

Logo design

Hi @wtetsu , I'm a graphic designer, I want to contribute on your project and I can make a free logo for your project. Also, I want you to know that I really like your project. So, what do you think?

Web page styles affect the main window's appearance

Chrome版の文字列眮換ルヌルの適甚結果が、閲芧䞭のりェブペヌゞのスタむルによる圱響を受けるかもしれたせん。

今のずころTypeScript公匏のドキュメントで <span> 適甚でフォントサむズが倧きくなる珟象を確認したのみです。Firefox版では発生したせん。

単に衚瀺りィンドりを倧きくすれば甚は足りたすが、閲芧ペヌゞから圱響を受けるのは(受けるずすれば、ですが)おそらく望たれない動䜜であるず考え、報告したす。

環境

  • ブラりザ: Google Chrome(74.0.3729.131Official Build 64 ビット)
    (MS Edge Canary Version 76.0.155.0 (Official build) canary (64-bit) も同様でした)
  • OS: Microsoft Windows [Version 10.0.17763.475]

スクリヌンショット

以䞋のスクリヌンショットはTypeScript公匏のドキュメントを開いお "Type" にマりスカヌ゜ルをホバヌさせたものです。

Basic Types · TypeScript

初期蚭定: 䞀番䞋の '(doing)' が䞀段倧きくなりたす。

2019-05-13_02Chrome

文字列眮換ルヌルの (\(.+?\)) に <span>の入れ子を远加した堎合: 括匧の郚分が䞀段階倧きくなりたす。

<span><span style="color:#008000;">$1</span></span>

2019-05-13_03ChromeNest

Firefox(Developer Edition, 67.0b19)(アドオン初期蚭定)

2019-05-13_01Firefox

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.