wtetsu / mouse-dictionary Goto Github PK
View Code? Open in Web Editor NEWðSuper fast browser dictionary
Home Page: https://mouse-dictionary.netlify.app
License: MIT License
ðSuper fast browser dictionary
Home Page: https://mouse-dictionary.netlify.app
License: MIT License
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)
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.
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.
From this(https://qiita.com/shiraki_s/items/d2c1a61c7db874173e69), we may run Mouse Dictionary on iOS.
But in the case of the article, the author coded the Extension. So he may understand the technology of the Extension and he can run the script.
I just would like to hear if you know if the Mouse Dictionary is in principle possible to run on iOS as in the article above.
"æããŸã"ã«ããŠã¹ãããŠãŠã"æãã"ãæ€çŽ¢ãããŸããã
å
·äœçã«ã¯ã/main/lookuper.js ã®é¢æ° entry.build("æããŸã")ã®è¿ãå€ã«"æãã"ãå«ãŸããŠããªãããšãåå ã§ãã
ãªããcreateLookupWordsJa("ããŸã")ã®è¿ãå€ã«ã¯"ãã"ãå«ãŸããã®ã§ããµå€åè©ã®æŽ»çšåŠçèªäœãèæ
®ãããŠããªãããã§ã¯ãªãããã§ãã
ãã€ã䟿å©ã«äœ¿ãããŠããã ããŠãããŸãïŒ
æ¯æ¥åŠæ ¡ã®èª²é¡ã®ããã«ãGoogle Docsäžã§Mouse dictionaryã䜿ãããŠããã ããŠããã®ã§ãããMouse dictionaryã®æ©èœãæ¥ã«ãã£ãŠããŠã¹ãè±èªã«hoverããéã«ãåå¿ããããããªãã£ããããŸãïŒ
ãã®ããšã¯ããªãèµ·ããã®ã§ããããïŒããŸããæ¹åç¹ããã£ããæããŠããã ãããã§ãïŒ
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.
As the icon is black-ish, it should be brighter and more prominent on the chrome-extension panel at the upper-right of the browser.
ãã€ãããããã䜿ãããŠããã ããŠããŸãïŒ
çŸåšã§ããïŒwin10ã»chrome(ver100.0.4896.75)ã«ãŠïŒããŠã¹ãªãŒããŒããŠããŠã£ã³ããŠå
ã«è¡šç€ºãããªãç¶æ
ã«ãªã£ãŠãããŸãïŒåèªãéžæãããšåŸæ¥ã©ãããŠã£ã³ããŠå
ã«è¡šç€ºãããŸãïŒfirefoxã§ã¯æ£åžžã«åäœããŠãããŸããïŒãŸãïŒå
é±ãããã¯æ£åžžã«åäœããŠãããšæããŸãïŒ
ãã©ãŠã¶ã®ãã£ãã·ã¥åé€ïŒåœãœãã以å€ã®æ¡åŒµæ©èœã®offïŒiframe supportã®ã€ã³ã¹ããŒã«ãªã©ãè©ŠããŸãããïŒããããæ¹åããŸããã§ããïŒ
ç³ãèš³ãããŸãããïŒç¢ºèªãé¡ãããããŸãïŒ
"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"ãè¿ããªãããã§ãã
ãã€ã䟿å©ã«äœ¿ãããŠããã ããŠãããŸãã
Funimation ãšãããµãã¹ã¯ãªãã·ã§ã³ååç»é ä¿¡ãµã€ãããããããã®åç»ã§ã¯è±èªã®CCã衚瀺ã§ããã®ã§ããããã®CCã«ããŠã¹ãªãŒããŒããŠãèŸæžã«æå³ãåºãŸããïŒ
YouTubeã®åå¹ã§ã¯ã¡ãããšæ©èœããã®ã§ãäœããéãã®ã§ããããããŠã§ãããã°ã©ãã³ã°ã®ç¥èããªãããããããããŸããã
ãã®çŸè±¡ã¯ãªããšããªãã®ã§ããããã
ãã€ã䟿å©ã«äœ¿ãããŠããã ããŠããŸãã
è±èªã®è¬åž«ããã£ãŠããŠãçåŸå
šå¡ã«Mouse Dictionary ããªã¹ã¹ã¡ããŠããŸãã
æ¬é¡ã§ããã
Youtubeåç»ãèŠèŽã®éã«ãåå¹ã®ããŒã¿ãèªã¿åããŠäŸ¿å©ãªã®ã§ããã
åå¹ã¯ããã«ã¯ãªãã¯çã§éžæããããšãã§ãããããŠã¹ã«ãŒãœã«ãå€ããšèŸæžã®è¡šç€ºãå¥ã®åèªã«ãªã£ãŠããŸããŸãã
ãã®æåã®å¯ŸåŠãšããŠãã·ã§ãŒãã«ããããŒãèšå®ããŠãç¹å®ã®ããŒãæŒãã°äžæçã«åèªã®æ€çŽ¢ãã¹ããããããæ©èœãããã°äŸ¿å©ããšèããã³ãŒããå°ãè¿œå ããŸããããã®åŸãã«ãªã¯ãéãããŠããã ããŸãããããããé¡ãããŸãã
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ãã§ãã
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.
Is there a way to delete the dictionary dataïŒ
ããã«ã¡ã¯ãçŽ æŽãããæ¡åŒµæ©èœãéçºããŠããã ãããããšãããããŸãã
ãã€ã䜿ãããŠããã£ãŠããŸãã
äŸãã°ã§ããããfanoutããšããåèªã«ã«ãŒãœã«ãåãããæãšããfan outããšããïŒã€ã®åèªã®çµã¿åããã«ã«ãŒãœã«ãåãããæã«è¡šç€ºããããã®ãç°ãªããŸãã
ããã§ããfanoutãã«ã«ãŒãœã«ãåœãŠãæã«ãfan outãã«ã«ãŒãœã«ãåœãŠãæã®æå³ã衚瀺ã§ããããã«ããããšã¯å¯èœã§ããããïŒ
ä»åã¯ãfanoutããšããå¥åè©ã«ã€ããŠèšåããŸããããä»ã®å¥åè©ã§ã床ã
åãçŸè±¡(ãhogefugaãã«ã«ãŒãœã«ãåœãŠãŠãå¥åè©ãhoge fugaãã®æå³ã¯è¡šç€ºãããªããã
ãhoge fugaãã«ã«ãŒãœã«ãåœãŠããšãã®å¥åè©ã®æå³ã衚瀺ããã)ãèµ·ãã£ãŠããŸãã
ã䜿çšããŠããèŸæžããŒã¿ã EIJIRO text data
ãæ¡åŒµæ©èœversionã 1.3.1
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?
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.
PCã§äŸ¿å©ã«äœ¿ãããŠããã£ãŠããŸãã
é»åããŒããŒããã£ã¹ãã¬ã€ãšããã¿ãã¬ããã§äœ¿ãããšã¹ããã ãšæãã
åäœãè©Šããã®ã§ããèŸæžæ€çŽ¢ã¯ã§ããŸããã§ããã
çŸç¶Androidã§äœ¿ãããšã¯ç¡çã§ããããã
è©Šããçµç·¯ã§ãã
ç°å¢
ã»Boox Max3 Android version 9
ã»Bluetoothæ¥ç¶ããŠã¹
PCã§ã¯ãwww.ted.comã§ã®æ€çŽ¢ã確èªããŠããŸãã
ãããã¿ãã¬ããã ãšmouseoverã€ãã³ããçºçããªãã®ããšæã£ãŠ
PCãšã¹ããã® Pointer Events æåãŸãšã
ã§èª¿ã¹ãããpointerover, mouseoverã¯çºçããŠããããã§ãã
Add PDF support
Support for Wiktionary would be great. There are different languages, here for example are Portuguese files: https://dumps.wikimedia.org/ptwiktionary/20200901/
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.
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.
Install the Calibre software on Windows: calibre - E-book management
Install a sample EPUB ebook, for instance: The Complete Works of William Shakespeare by William Shakespeare - Free Ebook
Load the downloaded epub file on the software interface
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)
Go to http://localhost:8083/ then find the book, open it, test if the extension works on your environment.
Is there a way to recognize characters other than Japanese and the alphabet?
æ®æ®µããMouse dictionaryã䜿çšããŠãããè€æ°åœ¢ã«ãªã£ãæã«è¡šç€ºããŠããã ãããšå¬ããã§ãã
sãšãesãšãã§è€éãªåŠçã絡ããããããŸããããã§ããã°ã§ããã®ã§å®çŸããŠããã ãããšãããããã§ãïœïŒã»ãã»ïŒïœ
Hi, lots of love for this add-on.
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?
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?
æ®æ®µããè±èªåŠç¿ã«scrapboxãå©çšããŠããã
scrapboxäžã®ã¯ãŒããããŠã¹ãªãŒããŒã§èŸæžãã²ãããšå¬ããã§ã
é©åœãªäŸã§ã
https://scrapbox.io/ompugao-public/Crater_(constellation)
èŠãŠé ããšãããã®ã§ãããäžæåãã€ã«<span>ã§å²ãŸããŠããŸãã
ãšã¯ãããæ¬äœã«scrapboxçšã®åŠçãå
¥ããŠé ãã®ã¯ãããããšã¯æããŸãã
scrapboxã«ã¯ãŠãŒã¶ãŒãjavascriptã§ã«ã¹ã¿ãã€ãºã§ããæ©èœãããã®ã§ã
mousedictionaryåŽãšããŸãé£æºããããšã§ããŠã¹ãªãŒããŒã«ããèŸæžæ€çŽ¢ãã§ãããšæãã®ã§ããâŠ
ãªã«ãå®çŸæ¹æ³ã¯ããããŸãã§ãããã
Chromeã®æ¡åŒµæ©èœãè¿œå ããŸãããããããã¢ããããŸãããã©ãããã°ããã§ããããïŒ
Windws10 homeã®ææ°ããŒãžã§ã³ã䜿ã£ãŠããŸãã
Chromeãææ°ã§ããããŒãžã§ã³: 90.0.4430.93ïŒOfficial BuildïŒ ïŒ64 ãããïŒ
è±èŸéã®ããã¹ãããŒã¿ãè³Œå ¥ããèšå®ã¯åé¡ãªãã§ããŸãã
æ¡åŒµæ©èœãOnã«ããŠããŸãã
Steps to Reproduce
Expected Result
Actual Result
Suggestion
åçŸæé
æåŸ ããçµæ
å®éã®çµæ
ææ¡
åå䜿çšæã«èŸæžãæªèšå®ã ãšãããŒãžå
ã«éãããããã¢ããã®äžã« åãã«èŸæžããŒã¿ãããŒãããŠãã ãã(æ¡åŒµã®ã¢ã€ã³ã³ãå³ã¯ãªãã¯âããªãã·ã§ã³ã)
ãšããæ¡å
ã®ã¡ãã»ãŒãžã衚瀺ãããŸãã
ããããªãããFirefoxã«ã¯ãã®ã¡ãã¥ãŒé
ç®ããããŸãããå®éã«ã¯ã
ãšããå¿ èŠããããŸãã
åå䜿çšæã«æžæã£ããããã¡ãã»ãŒãžãåå®è¡ç°å¢åãã«å€ããããšãæãŸãããšæãããŸãã
Like:
æ¥ã ã䟿å©ã«äœ¿ã£ãŠããŸããããããšãããããŸãã
resize/draggableæ©èœã®ããšãªã®ã§ããããªãµã€ãºã®æ¹ãç»é¢å
ã®ããã¹ãããã©ãã°ããæã«å¹²æžããŠããŸããŸãããŸããç»é¢ãåãããããªãæã«åãããŠããŸãããšããããŸãã
ãã®æ©èœãç¡å¹ã«ãããªãã·ã§ã³ãäœã£ãŠé ãããå¬ããã§ãã
ãããããé¡ãããŸãã
I'm glad if can scroll the window.
Are there any plans to implement keyboard shortcuts for scrolling?
The window closes when I change net pages. Is there a way to prevent the window from closing when I change net pages?
Mouse Dictionaryãå©çšãããŠããã ããŠãããã®ã§ãïŒè±èŸéã賌å
¥ããŸããïŒã
ãã®ãããªçéã®ããŒã«ãäœæããŠãã ããããããšãããããŸãã
1ç¹è³ªåãªã®ã§ãã
ããŠã£ã³ããŠã翻蚳äžã®ã¿äžéæã«ãªãããã以å€ã¯éæ床ãé«ãç¶æ
ã«ããã
ãšãã£ãããšã¯å¯èœã§ããããïŒ
ãªãã·ã§ã³ãã®ãããŠãããŸããšãStyle of each stateããšããé
ç®ããã£ãã®ã§ããã
ã©ããããã ãšèŠæãæºãããã
èŠæããçç±ãšããããŸããŠã¯Kaggleã§è±æãèªãã§ããã®ã§ããã
ã¬ã¹ãã³ã·ãã®ããå¹
ãåºããŠãäœçœã確ä¿ã§ããã
æ¬æãšMouse Dictionaryã®ãŠã£ã³ããŠãéãªã£ãŠããŸããŸããŠã»ã»ã»
ã·ã§ãŒãã«ããããŒã䜿ã£ãŠä»£æ¿ããããšã¯å¯èœã§ããã
äžè¿°ã®ãšããã ãšããã楜ã ãªãšæããŸããŠã»ã»ã»ã
ãçžè«ã®ã»ã©ãããããé¡ãããããŸãã
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.
#33 ã®æ€èšŒäžã«æ°ãä»ããã®ã§ãããå°ãªããšãåæèšå®ããªãããŠããªãç¶æ³ã«ãããŠãã¡ãã®æ¡åŒµæ©èœãå šãåäœããªãïŒååèµ·åæã®ã¡ãã»ãŒãžã衚瀺ãããªãïŒæ§åã§ããã
git clone https://github.com/wtetsu/mouse-dictionary.git
cd mouse-dictionary
npm install
npm run build-firefox
about:debugging
ãéãåæèšå®ãä¿ãã¡ãã»ãŒãžã衚瀺ãããã
settings is undefined
ãšããã¢ã©ãŒãã衚瀺ãããã
ãšã©ãŒã³ã³ãœãŒã«äžã®ãšã©ãŒã¡ãã»ãŒãžïŒ
TypeError: "settings is undefined"
createDialogElement view.js:14
create view.js:30
initialize main.js:71
processFirstLaunch main.js:38
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?
Chromeçã®æåå眮æã«ãŒã«ã®é©çšçµæããé²èŠ§äžã®ãŠã§ãããŒãžã®ã¹ã¿ã€ã«ã«ãã圱é¿ãåãããããããŸããã
ä»ã®ãšããTypeScriptå
¬åŒã®ããã¥ã¡ã³ã㧠<span>
é©çšã§ãã©ã³ããµã€ãºã倧ãããªãçŸè±¡ã確èªããã®ã¿ã§ããFirefoxçã§ã¯çºçããŸããã
åã«è¡šç€ºãŠã£ã³ããŠã倧ããããã°çšã¯è¶³ããŸãããé²èŠ§ããŒãžãã圱é¿ãåããã®ã¯(åãããšããã°ãã§ãã)ããããæãŸããªãåäœã§ãããšèããå ±åããŸãã
以äžã®ã¹ã¯ãªãŒã³ã·ã§ããã¯TypeScriptå ¬åŒã®ããã¥ã¡ã³ããéã㊠"Type" ã«ããŠã¹ã«ãŒãœã«ããããŒããããã®ã§ãã
åæèšå®: äžçªäžã® '(doing)' ãäžæ®µå€§ãããªããŸãã
æåå眮æã«ãŒã«ã® (\(.+?\))
ã« <span>
ã®å
¥ãåãè¿œå ããå Žå: æ¬åŒ§ã®éšåãäžæ®µé倧ãããªããŸãã
<span><span style="color:#008000;">$1</span></span>
Firefox(Developer Edition, 67.0b19)(ã¢ããªã³åæèšå®)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
ð Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ððð
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â€ïž Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.