[libvoikko] VoikkoSpellService + hfst questions

Sjur Moshagen sjurnm at mac.com
Thu Sep 8 16:32:31 EEST 2011


Den 8. sep. 2011 kl. 16.00 skrev Sjur Moshagen:

> This is getting more and more strange. I have found two voikko dirs in possible search locations for libvoikko:
> 
> /usr/local/lib/voikko/
> ~/.voikko/
> 
> In both locations there where malaga dictionaries, but only in the last one where there hfst-based languages as well. I have tried the following:
> 
> - copied all sami languages to /usr/local/lib/voikko/2/ - nothing
> - moved all languages away from ~/.voikko - nothing
> - moved the whole voikko dir away from /usr/local/lib/ - no response
> - completely removed all traces of these files from the hard disk - no change at all
> 
> Between each change I logged out and back in again to ensure that the system would stop the speller service, and reload the settings again.
> 
> In ALL these cases the system preferences (Language & text > Text > Speller langauges > Setup) did display one and only one language - Suomi - which I assume is the Malaga-based ones. This is true also in the case where I deleted ALL languages. It STILL listed Suomi (Voikko) (in parallel to Suomi (Soikko)) as the one and only Voikko language, even thoug there should be no such language to my knowledge.
> 
> Are there other possible places where voikko could be searching?
> Are there other explanations for the behaviour I am seeing?

Answering myself: yes.

I had to delete the VoikkoSpellService to stop Voikko from appearing in the system.

After some more testing it seems that the only valid dictionary location for VoikkoSpellService is /usr/local/lib/voikko/. But adding hfst-based speller dicts there (with files that works with voikkospeller) did not make them available in the speller service. So something is still not working as it should for hfst-based spellers in the speller service plugin.

> What kind of logging should I expect if I compile a debug version of VoikkoSpellService?

Definitely time to look into this:)

Sjur




More information about the Libvoikko mailing list