loresoft / NetSpell

Spell Checker for .NET
MIT License
55 stars 18 forks source link

Add pt_PT dictionary #2

Open pmraps opened 3 years ago

pmraps commented 3 years ago

Hi,

I would like to add pt_PT dictionary to your list, to make it available for Family Tree Maker (FTM).

I tried to find an executable for your DictionaryBuild tool, but no luck. Only found a bunch of files that I don´t understand.

Could you please indicate how to proceed to a non-developer? I could then fork and create a pull request, if it is how it's done...

Here is an OpenOffice dictionary I have on my repository, with the rest of my ongoing work on a translation memory/collection of tools for Portugal.

Best regards, Pedro

cristianst85 commented 3 years ago

Hello @pmraps

I'm not the maintainer of this repository, but I may be able to help you.

First, here's an archive containing the NetSpell.DictionaryBuild 2.2 (this was built from the fork branch of my fork of the NetSpell repository). My version of the tool contains some fixes that are not included upstream (e.g., improved handling of various encodings, striping the morphological descriptions from the affix files as NetSpell does not support them).

Here are the steps on how to build your dictionary: 1) Run NetSpell.DictionaryBuild.exe 2) File -> New 3) Go to Dictionary menu -> Add OpenOffice Word List and select the pt_PT.dic file from Hunspell directory (this file) 4) Go to Dictionary menu -> Add OpenOffice Affix Data and select the pt_PT.aff file from Hunspell directory (this file) 5) Go to File -> Save (choose a name for your NetSpell dictionary, e.g., NetSpell pt-PT.dic)

This is the result I got NetSpell pt-PT.zip, but I did not test it (only visually inspected with Notepad++).

Hope this helps.

P.S. I am not familiar with Family Tree Maker software, but the NetSpell.DictionaryBuild only converts from Hunspell to NetSpell format.

Best regards, Cristian

pmraps commented 3 years ago

@cristianst85 thank you very much, that did it. I placed the file on the proper folder and I now have pt spell checking for FTM.

Best, Pedro

RomainSem commented 1 month ago

Hi, I know this is old but I can't really find any EASY working way to create a custom dictionary that works with NetSpell, could someone help me with that? I tried creating a custom OpenOffice one but it didn't seem to work, even with the DictionaryBuild @cristianst85 dropped on this thread. Perhaps @cristianst85 is still out there? I'd be really thankful :)

RomainSem commented 1 month ago

Ok my bad, I just copied one of the dictionaries that are already given and erased all words in it and that worked as a new one

cristianst85 commented 1 month ago

I don't understand what you are attempting to do. You can use the DictionaryBuild tool to convert from Hunspell format to NetSpell format. OpenOffice dictionaries are in Hunspell format (dic + aff).