ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.94k stars 176 forks source link

Bug: Spell checker not working in french on Windows #86

Open mycanaletto opened 2 years ago

mycanaletto commented 2 years ago

Avoid duplicates

Ferdium Version

v6.0.0-nightly.23

What Operating System are you using?

Windows

Operating System Version

10

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

Thanks for the review of this fabulous app!

There is a problem with spell checker that affects the French. On a Windows 10 OS installed in English, whether the spell checker is configured in automatic or in French, the French disctionary does not install and the spell checking does not work.

Merci beaucoup

Actual Behavior

It's ok in other languages

Steps to reproduce

*

Debug link

No response

Screenshots

image

Additional information

No response

vraravam commented 2 years ago

@mycanaletto - Ferdium is not going to automatically install any language. The language dictionary has to be present outside of Ferdium - in which case, Ferdium can use it for spellchecking.

mycanaletto commented 2 years ago

I'm not sure. Spellchecking works very well in French outside of Ferdi (Chrome, Firefox) but not in Fermium. But this bug already existed in Ferdi. But it works for other languages than french, you can try...

vraravam commented 2 years ago

no - my question was around your screenshot: were you expecting Ferdium to download any dictionary? I don't think that's how it works. The French dictionary is considered a system/OS dependency - and should already be present for Ferdium to use.

mycanaletto commented 2 years ago

I think I remember that it can work with or without dictionaries. In automatic mode it is without and in manual mode of choice of language it must download the dictionary of the chosen language (exchanges on the old github). But whatever the combination and even if I add it by hand it does not change anything, the correction in French does not happen.

A French word well detected as well or badly written, but in this last case a right click proposes only words in English...

vraravam commented 2 years ago
Screenshot 2022-05-03 at 9 42 36 AM

Right in this web page, I copy-pasted french text from translate.google.com - and it correctly recognized the word that was incorrectly spelt. But, this is on a mac - and if i remember correctly, for macos, Ferdium uses the in-built OS spellchecker.

mycanaletto commented 2 years ago

Yes, on the Mac it is the system checker, but not on Windows.

The fact is that it works in many languages, except French...

SpecialAro commented 2 years ago

image

If I understood this issue correctly, I'm unable to reproduce this issue on Windows 11 with 6.0.0-nightly.36

image

Maybe there is something wrong with your local @mycanaletto ?

mycanaletto commented 2 years ago

The word is marked as misspelled, but when you right click to choose a correction only words from the English dictionary are proposed.

This happens whether you are in automatic correction language detection or you choose French.

My Windows (10 or 11) are in English display language and the local FR.

This problem had already been reported on the githib ferdi by several people.

ps: I made a picture because if I make a screen shot I can't see the window opened by the right click. image

mycanaletto commented 2 years ago

No news on the beta 1, help !

SpecialAro commented 2 years ago

The word is marked as misspelled, but when you right click to choose a correction only words from the English dictionary are proposed.

Ok! I think I finally understood what exactly you are saying.

In Portuguese, the word "exastamente" is wrong and should be "exatamente". And, as you can see in the figure bellow, the only word which is portuguese is "exatamente" but it suggests other words in english and also in other languages I think.

image

We should probably look into it, but I don't have any idea how the dictionary is implemented in Ferdium neither if it is a Ferdium problem per se.

mycanaletto commented 2 years ago

Voilà ! Merci. I am of course ready to test when you start working for this problem ;-)

kwilczynski commented 2 years ago

Hello everyone!

Thank you for keeping the project alive!

I just moved over from Ferdi. Everything works fine aside of the spellchecking, where it does not work for me when I am using English. I am not sure why.

Ferdium was installed using Flatpak, as per:

Ferdium - Messenger for the desktop

          ID: org.ferdium.Ferdium
         Ref: app/org.ferdium.Ferdium/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 6.0.0b1
     License: Apache-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 342.0 MB
     Runtime: org.freedesktop.Platform/x86_64/21.08
         Sdk: org.freedesktop.Sdk/x86_64/21.08

      Commit: 1463c03fb8af3d110be40445cc0c98bc679ea8909b2f785769747eedcca2552e
     Subject: removed flathub.json (0f0f1b0f)
        Date: 2022-06-06 07:09:16 +0000

Thank you for help in advance!

StephanBe commented 2 years ago

I have to add, that there seems to be a bigger problem with the spell checker:

On my system (snap ferdium nightly 80 on Ubuntu 22.04) the spell checker is dead set on English and ignores all language settings.

(starting with e.g. LANG=de_DE.UTF-8 ferdium didn't help either)

alanodx2 commented 2 years ago

Same problem. I just installed the latest version from AUR. Pt-Br dictionary doesn't work Running on ArcoLinux

SpecialAro commented 2 years ago

Everyone that is facing this problem, can you please try setting a different language inside the recipe (Right click on the recipe icon, click Edit, scroll to Spell Checking Language) and change the "Use System Defaults"?

image

The problem can be the overall setting not being correctly parsed to the recipe OR the Use System Defaults is faulty as it is.

StephanBe commented 2 years ago

Everyone that is facing this problem, can you please try setting a different language inside the recipe (Right click on the recipe icon, click Edit, scroll to Spell Checking Language) and change the "Use System Defaults"?

The problem can be the overall setting not being correctly parsed to the recipe OR the Use System Defaults is faulty as it is.

Eureka! Setting the recipe spell checking language to the desired setting did solve the problem on my end. The global setting is indeed not mirrored to the recipe settings and more or less gets ignored completely.

Thanks for the workaround. @SpecialAro

mycanaletto commented 2 years ago

You are lucky, it still doesn't work... (v 6.2 Win10/64)

mycanaletto commented 2 years ago

I just installed the last night and this problem persists...

Darkein commented 1 year ago

I have the same problem and found a wonderful workaround: I just copied a french dictionary from an other app, and replaced the english one 😄

mycanaletto commented 1 year ago

I have the same problem and found a wonderful workaround: I just copied a french dictionary from an other app, and replaced the english one 😄

Yes, this way works. But it is not the most elegant one either ;-)