If you can use Microsoft Word dictionary to check the text?

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

If you can use Microsoft Word dictionary to check the text?

Post by sexy96 »

W Scripts-Eng znalazłem takie coś:
SpellCheck.js-spell check using Microsoft Word.
Czy to znaczy, że można wykorzystać słownik Word'a zamiast SpellCheck?

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

sexy96
You can try: select text and call SpellCheck.js.

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

It does not work in AkelPad 64

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

sexy96
x32 too and without error message?

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

In the x32 works, but not as well as in Word

I have a Windows 64 bit and I should use x64

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

sexy96
I tried used AkelPad x64 and Word x32: works fine.

SpellCheck.js uses COM-object "Word.application", if creat object is not possible then script show error message "You must first install Microsoft Word 97 or higher". Have you seen him?

Try this: find cmd.exe, run him as administrator and find MS Office folder ("Office12" for Word 2007, "Office14" for 2010), and now:

Code: Select all

cd C:\Program Files (x86)\Microsoft Office\OfficeNN
WINWORD.EXE -regserver
Reboot OS and try call SpellCheck.js again.

word.application+x64

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

It was enough just to enter:
"Word Corrector" Call ("Scripts :: Main", 1 "SpellCheck.js") Icon ()
And it works.

Thank you very much.

PS:
When I run the Spell Check.js
I have info: "No text selected".

Can you run it without a selection of text
so how does Word?

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

sexy96 wrote:PS:
When I run the Spell Check.js
I have info: "No text selected".

Can you run it without a selection of text
so how does Word?
You can make copy SpellCheck.js to SpellCheck2.js, replace string

Code: Select all

var pSelText=AkelPad.GetSelText();
on

Code: Select all

var pSelText=AkelPad.GetTextRange(0, -1);
and use SpellCheck2.js, but I don't know what will happen if the text will be very large. (I think text selection is more conveniently.)

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

It works great, thank you very much.

PS.
"Spell" +Call("SpellCheck::Background") Icon("%a\AkelFiles\Plugs\SpellCheck.dll", 0)

It does not work in x64

You can not open
"D:\WinCMD\AkelPad64\AkelFiles\Plugs\SpellCheck.dll"

SpellCheck.js do not move the text to the top
and I do not see the check word in the text.

Offline
Posts: 2247
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

sexy96
PS.
"Spell" +Call("SpellCheck::Background") Icon("%a\AkelFiles\Plugs\SpellCheck.dll", 0)

It does not work in x64

You can not open
"D:\WinCMD\AkelPad64\AkelFiles\Plugs\SpellCheck.dll"
It is by design. Unfortunately core spell checking component not supported in Windows anymore(let alone Windows x64), and I have no resources even to try test it. For 32 bit windows used pretty old version(works good nevertheless)

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

OK. Thanks.

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

How to make the correction window not hide under the text,
Always before the text (FormOnTop)?

Przy sprawdzaniu tekstu kursor atomatycznie ustawia się na końcu tekstu
i uruchamia się okienko, w którym dokonuję korekcji.

Gdy na chwilę opuszczę AkelPad z otwartym tym okienkiem (np. w tym czasie uruchomię Chrome)
to wracając do edytora okienko to jest przykryte tekstem.
Próba przywrócenia tego na pierwszy plan powoduje zmianą położenia kursora
i dalsze sprawdzanie nie ma sensu, ponieważ po zakończeniu,
cała korekta zostanie zapisana w przypadkowym miejscu.
Post Reply