kimsey0 / FirefoxAutoDict

An extension for Firefox which automatically selects the correct dictionary for spell checking based on the language of the text you're writing
MIT License
39 stars 2 forks source link

Doesn't work at all on email programs #4

Open jeanrajotte opened 5 years ago

jeanrajotte commented 5 years ago

e.g. Zoho mail. It doesn't work in gmail either I guess because of this "content preference" you write about. How to clear that on macOS?

I constantly go back and forth writing in English or French. I've opened the Languages menu and picked one a hundred times on so many sites.

Couldn't there be a hotkey to trigger the add-on to analyze and act instead of hoping the automagical behaviour will kick in if there's no pre-established preference.

kimsey0 commented 5 years ago

Hi jeanrajotte,

I don't use a Mac daily, and haven't had to delete the content preferences file there, but I believe it can be found in the profile folder under ~/Library/Caches/Firefox/Profiles/

There could be a hot key to trigger the language detection, and I might implement one if I don't get the typing detection working more reliably. However, this won't solve the problem where content preferences override the spelling language the extension sets. The problem isn't that the extension doesn't detect the text language, it's that Firefox doesn't include a bulletproof way for the extension to change the spell checking language.

I intend to suggest such a feature for Firefox, but have been on summer holiday until recently, so I'm planning on getting to that.

jeanrajotte commented 5 years ago

Hi Kimsey0,

thanks for the response and the explanation. Enjoy your holiday!!

There's no content-prefs.sqlite in that folder and its subfolders:

Screen Shot 2019-07-27 at 23 32 57

serj-kzv commented 5 years ago

You can consider that as a self advertising. (: But what I suggest is install some multi language dictionary from here https://addons.mozilla.org/en-US/firefox/language-tools/ and then use this extension https://addons.mozilla.org/en-US/firefox/addon/dictionary-configurer/ to set a default dictionary. If there are no multi language dictionary for your language then you can create your own with this program https://github.com/arty-name/hunspell-merge (this program is quite old and can have errors)

I meant you can merge English and French dictionaries into one dictionary.

If you want to find dictionaries that you need to join then search them by "hunspell dictionary my-language" query.

jeanrajotte commented 5 years ago

Thanks for the suggestion, but it doesn't handle my issue at all. There are several Spelling Dictionary available to me in my installation of FF. What I need is a way to wire hotkeys so I can switch quickly between French and English, say, instead of having to click click click through the popup menus.

CodingMarkus commented 3 years ago

It can be found in

~/Library/Application Support/Firefox/Profiles/<profileID>

Caches is only where cache data (non-persistent data) is stored, persistent data is always found in a sub folder of "Application Support", except for preferences (those are in ~/Library/Preferences).

A quick way to get there:

Note that you must restart Firefox for file deletion to have any effect. I would quit Firefox first, then delete the file, and then start it again.