Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Run][New Plugin] Dictionary #3309

Open
aarish21 opened this issue May 20, 2020 · 32 comments
Open

[Run][New Plugin] Dictionary #3309

aarish21 opened this issue May 20, 2020 · 32 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface

Comments

@aarish21
Copy link

image
would help to search word meaning quickly a highly useful feature for everyone

@saahmedm saahmedm added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label May 20, 2020
@jyuwono jyuwono changed the title REQUEST : TO ADD DICTIONARY IN POWERTOYS RUN [Run] Add dictionary May 20, 2020
@jyuwono jyuwono added the Idea-Enhancement New feature or request on an existing product label Jun 3, 2020
@jyuwono jyuwono added this to the Suggested Enhancements milestone Jun 3, 2020
@saahmedm saahmedm added the Issue-Feature A planned feature addition to a product label Jun 26, 2020
@yosefbernal
Copy link

I would really love this feature. Often I find myself saving a file or writing the name of a class or property and wondered how to spell it. What I do right now is open a new google search and search for that single word. How nice would it be to be able to do this from Run. You could use the Oxford dictionaries API.

@sujoybyte
Copy link

I want this feature so much, would really be a handy feature.

@enricogior enricogior added Run-Plugin Things that relate with PowerToys Run's plugin interface and removed Issue-Feature A planned feature addition to a product labels Feb 27, 2021
@enricogior enricogior changed the title [Run] Add dictionary [Run][New Plugin] Dictionary Feb 27, 2021
@TobiasSekan
Copy link
Contributor

TobiasSekan commented Oct 8, 2021

Nice idea

but we need more than only a English dictionary, at minimum dictionaries for all supported languages
(cs, de, es, fr, hu, it, ja, ko, nl, pl, pt-BR, pt-PT, ru, sv, tr, zh-Hans, zh-Hant)

And all of these dictionaries must be open-source or free-usage (possible license problems)

@franky920920
Copy link
Contributor

Nice idea

but we need more than only a English dictionary, at minimum dictionaries for all supported languages (cs, de, es, fr, hu, it, ja, ko, nl, pl, pt-BR, pt-PT, ru, sv, tr, zh-Hans, zh-Hant)

And all of these dictionaries must be open-source or free-usage (possible license problems)

Bing dictionaries' API might work and has no license issues since it's "Microsoft Bing". :D

@octopushugger
Copy link

Highly desired feature. Came here to request this. Would be really nice to not have to web search for definitions anymore.

@TobiasSekan
Copy link
Contributor

Bing dictionaries' API might work and has no license issues since it's "Microsoft Bing". :D

@franky920920
Where can i find a API documentation for this?

@yosefbernal
Copy link

yosefbernal commented Nov 26, 2021

I have been looking around. The only solution I found that would meet the multilingual requirement that @TobiasSekan suggested is the Oxford Dictionaries API. It is not free but it dies offer a free tier which can be used for testing. I believe this are the same dictionaries use in macOS, as well as the Bing search engine:
image
Maybe someone can talk someone who knows someone at Microsoft :)

I did find that Microsoft offers the Microsoft®
Terminology Service API
, but the documentation is quite obscure.

@franky920920
Copy link
Contributor

I have been looking around. The only solution I found that would meet the multilingual requirement that @TobiasSekan suggested is the Oxford Dictionaries API. It is not free but it dies offer a free tier which can be used for testing. I believe this are the same dictionaries use in macOS, as well as the Bing search engine:

image

Maybe someone can talk someone who knows someone at Microsoft :)

I did find that Microsoft offers the [Microsoft®

Terminology Service API](https://www.microsoft.com/en-us/language/Microsoft-Terminology-API#:~:text=The%20Microsoft%20Terminology%20Service%20API%20allows%20you%20to,translate%20your%20Windows%20Store%20or%20Windows%20Phone%20apps.), but the documentation is quite obscure.

@crutkas for the API source and the licensing issues. :)

@komawoyo
Copy link

komawoyo commented Nov 30, 2021

instead of using an api or webattached dictionary, it would be nice to have an offline dictionary included. Something like https://github.com/wordset/wordset-dictionary so we dont have to ping to internet every time. Or if you need to search up a word while reading on the airplane.

@LemmusLemmus
Copy link

It might be worth looking into Wiktionary, a free dictionary that supports many languages. It does have an API, but I do not know how well it works.

@Jay-o-Way
Copy link
Collaborator

Jay-o-Way commented Jan 3, 2022

I made a bookmark for Wiktionary in my browser that has for url:

javascript:(function()
 {function se(d) {
    return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s==%27%27) s = prompt(%27Enter search terms for Wiktionary%27,%27%27); open(%27https://en.wiktionary.org%27 + (s ? %27/w/index.php?title=Special:Search&search=%27 + encodeURIComponent(s) : %27%27)).focus();
 })();

When I select a word in a browser, this link will open the (English) page for it. If no text is selected, it prompts.

Besides that,

  • What will be the source?
  • online or offline?
  • if offline: what size is needed for data?
  • if online: what if there is no connection?
  • which languages? How to select?
  • And most of all: why are existing sites/apps not good enough?

@LemmusLemmus
Copy link

LemmusLemmus commented Jan 5, 2022

@Jay-o-Way Excellent questions!

I'd like to attempt to answer, or at least expand on, some of the questions, if one assumes Wiktionary as the used source.

  • if offline: what size is needed for data?

All file sizes below are when stored in the ZIM file format, a compressed yet simultaneously readable on the fly file file format. I'm using the Kiwix app for reference.
The entirety of the English wiktionary is currently roughly 6 GB with pictures and 5.7 GB without pictures. In comparison, the entire German Wiktionary is roughly 1.4 GB (with pictures) and the Croatian Wiktionary is roughly 32.4 MB (with pictures). One could reduce the file size even further by stripping it of some information; one could for example remove all foreign languages from the English Wiktionary to drastically reduce its file size.

  • which languages? How to select?

This is actually a very relevant question. If I search for a word using Wiktionary, it could be in practically any language. The result I personally expect from Wiktionary is a definition provided in English* and some notes regarding its usage, etymology and pronunciation.

Example situations:
Sometimes one might want certain word definitions in a different language. Let's say I'm looking up the definition of a German word as a native Swedish speaker. Sometimes German word definitions make more sense when provided in Swedish, as there may be a better corresponding Swedish word than English to define the German word. Take for example the German word "Antlitz": English Wiktionary defines it as "countenance, visage, face" (a relatively broad meaning and not particularly easy to memorize), whereas the Swedish Wiktionary defines it as "anlete, nylle". "Anlete" is very similar to the German word "Antlitz" in both word structure and meaning.
Of course, if one were to be redirected to for example the English website it wouldn't be too much of a hassle to simply change the language, but it is also worth noting that a lot of words are only found in some language versions of Wiktionary, for example the Finnish word "metsämyyrä" can only be found on en.wiktionary and fi.wiktionary (although it can potentially be found indirectly elsewhere under the "translations" section of bank vole).

My point is only that one shouldn't always assume the usage of only one language at a time and that the dictionary function should be flexible at handling multiple languages.

  • And most of all: why are existing sites/apps not good enough?

That is possibly the most important question, for which I personally have no good answer.

@betamigo98
Copy link

Wish I could find synonyms and antonyms too.

@dfirat
Copy link

dfirat commented Nov 21, 2022

An offline dictionary including translations and synonyms as available in macOS via Spotlight would be a really great feature.

@cool-delete
Copy link

Is there any progress on this idea?

@Warrior-SG
Copy link

Would be really cool to have this feature. Existing apps are not good enough since having to open browser , looking up the word or opening a dictionary app and then searching the word on it really makes it distracting. I am not a developer so i don't know how this works, but here is something that i think would make sense. If y'all can't make it work like it works on mac, then an alternative method would be to open up a dictionary plugin each time the word "meaning" is used in the search and the dictionary would close after pressing a shortcut (Especially useful for people who read on full screen and hate to leave it to search the meaning of a single word). People can decide there default language in the powerToys dictionary menu, and if they want a word's meaning in a diff language then they can type "xyz meaning in [language]". It would also makes sense if the UI for the dictionary is clean and simple since it will open up as a small window, kinda like how quick notes work with OneNote.

@Ali-C-Ila
Copy link

+1

@StefanBloemheuvel
Copy link

would be amazing!

@wallflowerpaper
Copy link

wallflowerpaper commented May 29, 2023

https://play.google.com/store/apps/details?id=livio.pack.lang.en_US&hl=en&gl=US

Just wanted to add that Tolino Ebook readers allow you to download dictionairies with data from wikitionairy. And these aren't that big. [screenshot] #3309 (comment)

On the topic of smaller sized dictionaries, I just wanted to add that Livio's offline English Wiktionary app (linked above) is just under 60mb on my phone. I'm not sure what has been cutback or if there's stuff missing, and it's all offline as far as I know! It works fast and has synonyms, etymology, conjugations, pronunciation and even translations!!!

I think we have a winner if this can be replicated in a PowerToys Run add-on.

@Sving1024
Copy link

Sving1024 commented Jul 13, 2023

I just found a useful plug-in:
https://github.com/N0I0C0K/PowerTranslator
it can do the similar things but it seems the plugin can only translate into Chinese
It uses Youdao dictionary's API in China

@fr1g
Copy link

fr1g commented Jul 21, 2023

Me also hope this can be added into the Run. But what made me really confused is, since the needs of different plugins are huge and also different between each other, why not make a plugin market for the entire powertoys? I know quality of each plugin maybe not similar and some bad ones maybe cause experience ruined, and that is what you won't want happen. But here should be a choice for those "enhanced users"! not only someone need Everything's powerful search, but also here's someone need to use dictionaries they prefer! such as me, I prefer BKRS as my Chinese-Russian dictionary, and I also like Oxford dictionary for English and EN-ZH; more, I prefer Moji dictionary as ZH-JP dict. and more, I prefer Yandex as daily translator! I think all of these need something to make it easier to happen!

Perhaps allow users to create JS in Run in order to send customizable requests and wait powertoys to accept and display?

@Casshernsins
Copy link

There's still no update on this?

@abirpahlwan
Copy link

Bump

@Kiansjet
Copy link

Bump, this please; Appears to be quite neglected relative to consistent interest. Not sure if mentioned above, but additional providers for thesaurus and encyclopedic entries would be nice.

Barring hard custom implementations of lookup APIs, OpenSearch functionality allowing users to register their own search providers before jumping out into the default browser sounds a bit easier to implement, or at least for users to tailor to their needs.

@vcruzdesigns
Copy link

vcruzdesigns commented Feb 8, 2024

I would like to add my €0.02 here: I'm not a software developer so I unfortunately don't have the expertise but it seems that it's possible to install third party plug-ins for the PowerToys Run tool. Perhaps someone from the community could look into creating a plug-in for this?

Despite the usefulness of this feature, I don't think this is very high on the to-do list for anyone at Microsoft, hence why this issue is still open after so long.

@fr1g
Copy link

fr1g commented Feb 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface
Projects
None yet
Development

No branches or pull requests