Research project of builtin spellchecker
Posted by: mark307
Date: November 19, 2007 02:26PM

This topic is forked from luamacro topic.

spelltest-0.0.1.zip (27k)

@JujuLand

1) Accent issue is a matter of spelltest. But I have not seen it. Well, I made little changes, please test the 0.0.1.
2) Menus is shown by spelltest. But currently strings are embed, then they are not translatable. I don't know well localization of k-meleon.

Thanks.

Re: Research project of builtin spellchecker
Date: November 19, 2007 04:59PM
Re: Research project of builtin spellchecker
Posted by: kko
Date: November 19, 2007 06:38PM

Quote
simpleinventor
Why not use GNU Aspell for Windows?

Why reinvent the wheel? Km is based on Mozilla, so it suggests itself to use the Mozilla spellchecker...

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 19, 2007 08:41PM

I think the Mozilla spellchecker is good, and its use in K-Meleon is simplest. No need of complicate macros to make it works.

The point ennoying, for me, is this problem of accent display in the list of purposed words.

And, but also, but less ennoying the non-translation of the strings, but it's only a 0.0.1 version ...

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 20, 2007 10:46AM

The problem of accents in the list is now solved. :-)

Just, now is the menu translation feature.

Really good ...it works like a charm.

Thanks

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 11/20/2007 10:47AM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 20, 2007 08:07PM

@mark307,

Just an improvement if possible, obviously, add a menu entry to ignore the fault as with Thunderbird.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: November 21, 2007 02:47PM

Translation may work. But, as usual, this isn't tested well. :-)
spelltest-0.0.2.zip (28k)

@simpleinventor
Mozilla's spellchecker is integrated with browser.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 21, 2007 06:39PM

@mark307,

Translation works correctly, some strings are missing:

Spell Checker (first menu entry)

Spellchecker is disabled.
Enable?

For these two last strings, it's perhaps due to \n. Try to separate the string in two.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 11/21/2007 08:24PM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 21, 2007 10:14PM

@mark307,

I forgot to say that I use spell checker 1.1.6 instead of 1.1.4, and it works ok. From your address, just go up some folders and down under 1.1.6

Also, instead of what is said in txt file, the dictionaries for Spell checker aren't found in langpack xpi files, but can be found on Mozilla extension sites. You can also use OpenOffice dictionaries.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: November 23, 2007 04:49PM

The string is defined as

Spellchecker is disabled.\r\nEnable?

These strings are defined at head of spelltest.cpp.

And place of dictionaries is different on which langpack.
I made sure with these packs.

seamonkey-1.1.4.de-AT.langpack.xpi dictionaries
seamonkey-1.1.4.fr-FR.langpack.xpi bin\components\myspell

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 23, 2007 09:08PM

@mark307,

That's ok for the string. Just one yet, 'Spell Checker' menu entry

For dictionary, I think that xpi dictionaries for Thunderbird for example are easier to find, and smallest to download, but there is no problem, the principal is to find it when we need.

No solution to ignore a correction, like in Thunderbird ?

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: November 25, 2007 02:19PM

I still can't understand 'Spell Checker' menu entry. Did you mean a menu entry defined in spelltest.kmm? If yes, you have to edit the kmm.

before:
setmenu("TextPopup",macro,"spell","Spelltest");

after:
setmenu("TextPopup",macro,_("spell"),"Spelltest");

About dictionary, I found dictionaries.mozdev.org too. This is nice, I will put this url instead of langpack on the readme.

Then I don't know about Thunderbird's spellchecker, but 'Ignore this word' has been implemented since 0.0.2.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: November 27, 2007 10:46AM

@mark307,

That's ok with the menu entry, without needing _()

ok for 'Ignore this word'

@all

Warning: The 1.1.3 setup (and older) have a bug when updating a previous install. It clears components and macros folders, and broke extensions already installed. Backup these folders before updating, or install again these extensions.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 3 time(s). Last edit at 11/27/2007 11:01AM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: December 26, 2007 11:49AM

@mark307,

spelltest works no more with K-Meleon 1.5.x.
the mozilla spell checker works (I see the colored underlines under miss spelled words, but if the right-click menu is present, under it, no more spelltest menu, and accel key doesn't work too.

I don't know if it's due to K'Meleon or spelltest.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: December 28, 2007 03:23PM

@JujuLand

I ensured spelltest works fine with K-Meleon 1.5a1 W9x. But the 1.5a1 NT causes crush on mine.

I guessed this issue is due to spelltest.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: December 28, 2007 04:56PM

@mark307,

I was talking about NT version. I haven't tested W9x version.

For me, no crash, but doesn't work.

Thanks

[edit]
Same problem with w9x version.
I'm using b21 version.
[/edit]

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 12/28/2007 06:05PM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: mark307
Date: December 30, 2007 02:41PM

@JujuLand
Sorry, I had tested only calling from lua. Menu and accel registered by spelltest.kmm didn't work. And I found ad-hoc solution, you need to edit spelltest.kmm.

Spelltest{
id("spelltest()");
#plugin("spelltest","");
}

I don't know why spelltest.kmm stops working, because I don't know well standard macros.
Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: December 30, 2007 03:35PM

@mark307,

I can't believe id() can work like that !!!

You're right, it works.

If kko or Dorian can explain it, for me, there were just the KM commands which can be used with id().

Thanks

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: January 27, 2008 02:18PM

I finally shipped new version.

spelltest-0.0.3.zip (32k)

Add: show menu near the word.
Fix: unkind document.

@JujuLand
Thank you so much for your support in general forum.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: January 27, 2008 06:18PM

@mark307,

Thank you for your good job.

I have asked on Mozillazine forum if it would be possible to change the default dictionaries folder.

A guy has answered, but the answer he made me is too hard for me, i thought it was possible by using a prefs. It seems, in the source he send, that it's possible, but it's too hard for me.

If you have time to look for, you're probably able to see.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: January 28, 2008 11:28AM

@mark307,

I have tested the last version, and the menu position isn't correct when using the shortkey instead of the mouse right-click. spelltest always locate the menu near the mouse position, not near the word.

I haven't understood what was the other modification.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 01/28/2008 11:29AM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: mark307
Date: January 30, 2008 02:13PM

Thanks to Phil.

spelltest-0.0.4.zip

* Add: Can change dictionaries path. "spelltest.dictDir" preference is added.
* Add: Can change default menu position. "spelltest.position" preference is added.
* Add: Some id, spelltest(word), spelltest(mouse), to show menu on specified position.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: January 30, 2008 09:28PM

@mark307,

Happy that the infos given by Phil have allowed to choose other folder.

I'll test for the menu position.

If I understant right, by setting spelltest.position to 1 we choose 'near the word' and setting to 0 we choose 'near the mouse'.

And we can also, independantly of this pref, choose word or mouse by adding the param.

Right ?

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: January 30, 2008 10:05PM

@mark307,

First tests:

I have crashes each time I use spelltest(mouse).

So, as it doesn't crash without parameters, when the spellchecker is called with mouse, we use no parameter, and the menu is located near the mouse, and it's what we want.

When using shortkey, we use spelltest(word), and the menu is located near the word, and it's what we want too.

All is ok, and it seems there is no need of the location pref.

For the folder, I haven't had time now to test it ... To-morrow

Thanks

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: March 09, 2008 09:35PM

@mark307,

I have tested the possibility to change folder, but I can't make it work, it seems that the folder is always rootfolder\dictionaries

I have tried with the following prefs:

spelltest.dictDir
kmeleon.plugins.spelltest.<name>
spellchecker.dictdir

it's not ok

I think that all the prefs name of spelltest ought to have the same structure:

kmeleon.plugins.spelltest.dictDir

to be coherent with the others kplugins.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 3 time(s). Last edit at 03/09/2008 09:40PM by JujuLand.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: March 16, 2008 03:44PM

@mark307,

I have tried to send you a message with your guessbook, but it failed...

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: March 17, 2008 01:53PM

I couldn't reproduce the issue. This code was in pref.js when I tested.

user_pref("spelltest.dictDir", "C:\\usr\\share\\dict");

About preference name is agree.

Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: March 17, 2008 07:01PM

@mark307,

Would you say that for you, it works ?

Can you download my package to see if I have done an error?

Thanks

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Re: Research project of builtin spellchecker
Posted by: mark307
Date: March 18, 2008 02:42PM

I have downloaded "KMES202_SpellCheck.zip", "K-Meleon1.1 Extension - SpellChecker.nsi" has time stamp 2008/3/12.
I found old spelltest.dll in the archive. It has time stamp 2007/11/21, I guess it is version 0.0.2. The version that has dictionaries path preference is 0.0.4.
Thanks.

Re: Research project of builtin spellchecker
Posted by: JujuLand
Date: March 18, 2008 05:29PM

@mark 307,

I don't understand how I have made a so stupid error.

It works great.

The only last thing I ought like to have is just to alphabetically order the list.

Thanks

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 3 time(s). Last edit at 03/18/2008 05:39PM by JujuLand.

K-Meleon forum is powered by Phorum.