[libvoikko] Relation between spelling and grammar checkers
Harri Pitkänen
hatapitk at iki.fi
Mon Sep 23 20:11:46 EEST 2013
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
Harri
More information about the Libvoikko
mailing list