This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Spelling according to the keyboard layout

19

Votes
56
37
Tags: spell check, multiple languages spell check, multiple languages spell check, multiple languages
(comma "," separated)
braslau
Registered Member
Posts
12
Karma
0
xErath wrote:Using keyboard layout for spellchecking is just a really bad idea. I have portuguese or norwegian layout's enabled, but always type either portuguese or english.

Instead, the user should specify a set of languages commonly used in SystemSettings>Locale, and then the spellchecker should auto detect language (choose the language that causes less spelling errors). Also, there ought to be some options in the context menu, like in popular web browsers.




Automatic language detection may be one solution, but this often fails, and even if the algorithm is really good, one can always cook-up a situation that will make it fail.

A (trivial) solution would be to offer a choice of languages. Currently, one can select alternative languages in the spell-checking pop-up dialog, but one has to then close the pop-up and then re-select spell checking to re-start the process using the new choice. This is a `bug' that can be fixed. Perhaps an enhancement would be to offer the choice directly on the spell-checking button with a drop-down menu, by clicking and holding. This should be fairly easy to add...

Thanks

Alan
braslau
Registered Member
Posts
12
Karma
0
Olivier_CRR wrote:This can be convenient in some situations, but in my case I use a French keyboard, but I type exclusively in English ...it should not be mandatory or default.


Why in the world would you use a French keyboard?
It is the most inconvenient layout ever imagined,
especially for the unix world, TeX and programming
in general. :)
xErath
Registered Member
Posts
14
Karma
0
OS
braslau wrote:Automatic language detection may be one solution, but this often fails, and even if the algorithm is really good, one can always cook-up a situation that will make it fail.

The auto-detection algorithm is quite easy. just pass a chunk of text (say 100 words) to the spell-checker for each language, and language with the least errors will be the one. When there are too few words, then auto checking would be disabled. Or better, break the text into segments, like sentences and pass each one to the spellchecker, so it works for mixed language texts. Passing a segment of text to the spellchecker for two or three languages would be negligible performance wise when typing. Would probably be noticeable in big texts, but then spellchecking big texts could be done lazily.

braslau wrote:A (trivial) solution would be to offer a choice of languages. Currently, one can select alternative languages in the spell-checking pop-up dialog, but one has to then close the pop-up and then re-select spell checking to re-start the process using the new choice. This is a `bug' that can be fixed. Perhaps an enhancement would be to offer the choice directly on the spell-checking button with a drop-down menu, by clicking and holding. This should be fairly easy to add...
+1 ou in the right click menu of any text field where it should be.
braslau
Registered Member
Posts
12
Karma
0
braslau wrote:
Currently, one can select alternative languages in the spell-checking pop-up dialog, but one has to then close the pop-up and then re-select spell checking to re-start the process using the new choice. This is a `bug' that can be fixed.

Correction: this *was* a bug that has been fixed, perhaps for some time... I have be so conditioned to closing and restarting the spell-checker upon changing the choice of language that I had not noticed that a restart is no longer necessary.
Thabo Ibrahima
Registered Member
Posts
2
Karma
0
Hello,
Thabo here. That's cool. It will be more useful.

_____________________

canada pharmacycanadian pharmacies canadian pharmacyonline prescriptions
User avatar
hook
Registered Member
Posts
205
Karma
0
OS
What I would like to see is Sonnet2 getting into KDE as it was planned for KDE4, before its developer disappeared without any trace (sic!).

Sonnet2 was brilliant in the way that it would detect the language of each individual work and sentence and apply the correct spell checker to it automatically. I remember reading that the guy made it so good that it could guess the language of a word already after three letters.

Now if any of the code was publicly available and anyone would be willing to take over that project, it would be awesome! But alas, from what I know, it's lost.


It's time to prod some serious buttock! ;)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]