Harpseal / LookUp-Dictionary-By-dict-URI-Scheme

A loop-up-dictionary addon for the more modernizing firefox 57+.
6 stars 1 forks source link

What to do next? No.5? #1

Open H-Sapien opened 6 years ago

H-Sapien commented 6 years ago

I have no idea whether this is the place to raise an issue as we do in forums, but it seems to be the only avenue of public contact.

Your Firefox addon looks interesting, but I see it as dead in the water: how to configure it is very obscure. Two points:

Please examine the photo with a link screenshot_launch_application.png What THEN ?!? What do we do with that pop-up? Why have you not explained? Please add a point 5. in your instructions.

The single example of editing the handlers.json file is very ambiguous, imprecise; more examples always help. Here's mine: {"defaultHandlersVersion":{"en-GB":4,"en-US":4},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"application/zip":{"action":0,"ask":true,"extensions":["zip"]},"audio/mpeg":{"action":0,"ask":true,"extensions":["mp3"]},"video/mp4":{"action":0,"ask":true,"extensions":["mp4"]},"image/gif":{"action":0,"ask":true,"extensions":["gif"]}},"schemes":{"webcal":{"action":4,"ask":true,"handlers":[null,{"name":"30 Boxes","uriTemplate":"https://30boxes.com/external/widget?refer=ff&url=%s"}]},"ircs":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"mailto":{"action":4,"handlers":[null,{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"},{"name":"Googlemail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"}]},"irc":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"dict":{"action":4,"ask":true}}}

It works. I consider myself lucky.

An answer to my 'What then?', please.

Harpseal commented 6 years ago

Sorry for bad how-to guide and thanks for your advise. I added more how-to details in README.

After the Launch Application window pop-up, you need to choose the wrapper script for Firefox. In my experience, preparing the wrapper script is the most important and hard step of all, so this is the first step in the new step-by-step guide.

If your dictionary software is GoldenDict or YodaoDict, the script should work after change the exe path in the script. But I recommend to double-check the script works properly or not by using the terminal/console after any modification. If there are something wrong, no message will show by using Firefox. Please check the step one in the README for more details.

If you are using the dictionary software but not in the examples, please trace the example scripts and try to write a custom script for your system. Or you can tell me which dictionary you are using, I can try to write the script for it and add it to example scripts. Thanks.