[libvoikko] Relation between spelling and grammar checkers
Francis Tyers
ftyers at prompsit.com
Tue Sep 24 15:49:47 EEST 2013
El dl 23 de 09 de 2013 a les 20:11 +0300, en/na Harri Pitkänen va
escriure:
> On Monday 23 September 2013 20:01:46 Harri Pitkänen wrote:
> > Now you can add a new dictionary loader quite easily. Create a class
> > setup::V4DictionaryLoader.
>
> After you have created this class you will of course need to use it somewhere.
> The correct place is in setup/DictionaryFactory.cpp. There you will find
>
> void DictionaryFactory::addAllVersionVariantsFromPath(const string ...
> list<DictionaryLoader*> loaders;
> #ifdef HAVE_HFST
> loaders.push_back(new V3DictionaryLoader());
> #endif
> loaders.push_back(new V2DictionaryLoader());
>
> Just add an instance of your loader at the beginning of this list:
>
> #ifdef HAVE_VISLCG3
> loaders.push_back(new V4DictionaryLoader());
> #endif
I've done this, thanks :)
F.
More information about the Libvoikko
mailing list