Spell checking in multiple languages

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
UCyborg
Lunatic
Lunatic
Posts: 377
Joined: 2019-01-10, 09:37
Location: Slovenia

Spell checking in multiple languages

Unread post by UCyborg » 2024-04-03, 09:21

I've been' wondering for a while now if such feature would be possible in Pale Moon, or at least as an extension, so you could select multiple dictionaries for spell checking at once. The old hack seems to be merging the dictionary files, kinda ugly.

https://superuser.com/questions/108177/how-do-i-make-firefox-spellcheck-in-multiple-languages-simultaneously

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37756
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Spell checking in multiple languages

Unread post by Moonchild » 2024-04-03, 12:58

Merging is a dumb idea. if you merge dictionaries you'll end up with not catching spelling errors because "it happens to be a valid word in the other language".

We already support multiple dictionaries, though - just install them and it will be available in the context menu for spell checking (e.g. on text inputs) and should also automatically default to the appropriate language if the html markup is properly tagged with the language.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Spell checking in multiple languages

Unread post by Falna » 2024-04-03, 20:49

The Dictionary Switcher extension mentioned in your linked article still works in Pale Moon, making it easy to switch between languages. It's available on via the Classic Add-ons Archive, which you'll need to install first.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 774
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Spell checking in multiple languages

Unread post by Lucio Chiappetti » 2024-04-03, 21:32

Off-topic:
uh? I do not quite understand the usage of a spell checker in a browser. I can understand its usage in a word processing program (though personally I do not like to be coached while composing, and disable spell checker in libreoffice). But a browser reads (displays) text written by somebody else. Why would one wanto to spellcheck it ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37756
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Spell checking in multiple languages

Unread post by Moonchild » 2024-04-03, 22:28

Because if you use the browser for writing text, like making a forum post, you do want to find misspelled words...
Image1.jpg
You do not have the required permissions to view the files attached to this post.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 862
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: Spell checking in multiple languages

Unread post by RealityRipple » 2024-04-03, 22:51

That one question just explained the entire internet.

User avatar
UCyborg
Lunatic
Lunatic
Posts: 377
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: Spell checking in multiple languages

Unread post by UCyborg » 2024-04-03, 23:11

I was specifically asking if it would be possible to have it like it's done in Firefox/Edge, where I can have 2 languages selected and then it accepts words of both. I don't really type one thing in 2 languages simultaneously, but it's good enough to catch typos. I write mails at work through web app among other things, very monotone work and yeah, I hate having to switch languages...every click less counts...

Though the Dictionary Switcher extension, that I didn't come across before, seems to be even better option in theory, except "Detect dictionary as I type" doesn't seem to do anything. Can anyone confirm?

User avatar
UCyborg
Lunatic
Lunatic
Posts: 377
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: Spell checking in multiple languages

Unread post by UCyborg » 2024-04-04, 09:47

I'm suspecting auto-detection fails to look at what you're typing. It may look at the lang attribute in the site's html tag. I'm not sure, I'd have to test with Proxomitron and get it to replace that part, but the web app at work has English set there even though it's mostly translated to Slovenian, so auto-detection defaults to English. Perhaps this is actually "Auto-detect locales" kicking in, another auto-detect option. I turned the latter off and auto-detect as you type still fails. Oh well, can place the toggle to switch language on the toolbar or status bar, so that's progress.