Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
67 user(s) are online (56 user(s) are browsing Forums)

Members: 0
Guests: 67

more...
Support us!
Recent OS4 Files
OS4Depot.net





Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
It seems that english spellcheck is built in in Abiword.


How can Abiword be made to spellcheck on other languages? (dutch, french, . would be great )

   Report Go to top

Re: Spellcheck in abiword
Not too shy to talk
Joined:
2006/12/24 12:23
Posts: 466
@ JosDuchIt

Several language catalogs are available on OS4-depot too. Look at the packages starting with "aspell-". A french catalog is there, a dutch catalog is missing. If there is a dutch catalog for aspell, I can create a package and upload it too.

If you want to change the language in AbiWord, you must choose the menu item "Tools/Set Language...", choose the desired language in the window, activate "Make default for document" and click on "Close".

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
Thanks for the info. I downloaded a number of catalogs.

There is no duitch aspell dictionnary available. however on th aspell download page.


Searching a bit more i noticed a dutch Tex based initiative Opentaal.org which have developed a spell checker. I did contact them and waiting for a response


   Report Go to top

Re: Spellcheck in abiword
Just popping in
Joined:
2006/12/6 21:24
From Barcelona, Spain
Posts: 159
@cygnusEd

Maybe this can be useful?

   Report Go to top

Re: Spellcheck in abiword
Not too shy to talk
Joined:
2006/12/24 12:23
Posts: 466
@emeck & JosDuchIt

This package need hunspell, but my port of AbiWord only supports aspell, hspell and ispell. I've already found a dutch package on Gnu.org and compiled it here with success. I can upload it in the next days.


   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@CygnusEd
Grand· Thank you.

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
I have tried to use aspell from the command line. (OS4 shell)
I get
> aspell check -l en aspellch.txt
> error: standardinput is not a terminal

Is something wrong with this command line ?


   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1029
Maybe aspell expects the input file through standard inut, not as a parameter. Try either "type aspellch.txt | aspell check -l en" or "aspell check -l en < aspellch.txt".

Just guessing from the error message, don't really know aspell.

Best regards,

Niels

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@nbache, thanks for the suggestions
I do get
7.Datas:Teksten/BareED> aspell check -l en Fout: U dient een bestandsnaam op te geven.
(error you should provide a file name)
7.Datas:Teksten/BareED> type aspellch | aspell check -l en
Fout: U dient een bestandsnaam op te geven.
aspell failed returncode 20
aspell check -l en: file not executable



Now there is moe to the langage problem here:
my OS4 system can be changed easily to english or dutch.
The lines above were when OS4 language is set to english.


So the dutch text is more than probably generated by aspell.
I have not found yet how to make aspell aware ths system language is english or some other language .

Abiword is set up in Dutch , and whereas i can change the language it has to spellcheck, eg in Englissh USA i still get the behavior above.

I think AmiCygnix is set up in Dutch (at last i see some dropdown menus in dutch) and Abiword certaibly us.

Maybe i get better result if i do set ZAmiCygnix language to english?
Can this be done without a reinstall?

   Report Go to top

Re: Spellcheck in abiword
Not too shy to talk
Joined:
2006/12/24 12:23
Posts: 466
@ JosDuchIt

There is a bug in my port of aspell, sorry. If you like to get a fixed binary, send me a mail (see profile).

If you like to change the language of AmiCygnix, please refer to "Cygnix:Docs/README-language".

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@CygnusEd

Thanks for the aspell executable.

The command line

>aspell check -l en aspellch

is accepted but the behavior is not straightforward under OS4


I wanted to test it under an unix shell under Cygnix but using "run sh" does not start up a shell

Wasn't there a shell icon on the lower start bar some version ago?


   Report Go to top

Re: Spellcheck in abiword
Not too shy to talk
Joined:
2006/12/24 12:23
Posts: 466
Quote:

JosDuchIt wrote:
@CygnusEd

Thanks for the aspell executable.

The command line

>aspell check -l en aspellch

is accepted but the behavior is not straightforward under OS4


I wanted to test it under an unix shell under Cygnix but using "run sh" does not start up a shell

Wasn't there a shell icon on the lower start bar some version ago?


My implementation of ncurses is very basic, so you migth have problems with the interface. I was able to correct a file with it though.

There is no shell available for AmiCygnix and ther wasn't one before.

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@ CygnisEd
Quote:
I was able to correct a file with it though.


Me too: my first test was on a one line file and there was some mixing up of the lines aspell proposed.

U did not understand the working very weel. It'd simple after all.


Thanks a lot

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@CygnusEd

thanks a lot for loading up the dutch aspell dictionnary to OS4Depot.

aspell works fine with it.

I am using aspell from the command line now for checking a lot of older texts (mostly wriiten with Notepad or BareEd) that i did never spellcheck.
Really usefull is the 'list' option printing the list of all errors

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
I am not sure what happened, (maybe latest update of abiword) but i have more problems checking a document against the dutch aspell (or french)
- Creating a document under Abiword and setting the language as default for checking the document works OK
- Creating a dutch or french .txt file with an other textprocessor and then importing it in Abiword, setting the language as default for checking the document works OK too
- Saving such a document as an .rtf document will retain the document's default checking language.
- For a dutch or french .rtf document created with Wordworth and loaded in Abiword, the spellchecker does not react to the proper settings and continues to check against english

I then tried to start a short or empty document inder Abiword and selecting dutch or french as default language for the document, this works ok. But then i imported a not Abiword created .txt or .rtf document (in dutch or french) , now this importing always resets the default language of the page to English (US)

Formerly i did not have any problem (never tried the import file trick though)

   Report Go to top

Re: Spellcheck in abiword
Just popping in
Joined:
2006/11/29 6:42
From Geneva CH
Posts: 227
select all, then set the language as appropriate. It should work.

   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
Grand,

thanks a lot


   Report Go to top

Re: Spellcheck in abiword
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
aspell is available for OS4.1 thanks to the cygnix effort.

It is a CLI program as well as a library.

I am improving a Gui4Cli written spellchecker usable with any editor (Notepad notably) using the CLI commands.

For sure there must be a command that gives you the list of suggestions for an erroneously written word.

I found info about it here http://www.omegahat.org/Aspell/aspell.html

However the commands proposed don't work here

8.Amiga OS 4:> aspell ("icii") -l fr
Erreur : Action inconnue : ("icii")
8.Amiga OS 4:> aspell ("icii",TRUE) -l fr
Erreur : Action inconnue : ("icii",TRUE)
8.Amiga OS 4:>
the french dictionary is installed and works well with eg the list command

I am using SAM460ex OS4.1 update 6

Can anybody confirm the results ?
or knows what would work to generate the suggestion list?



   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project