[libvoikko] Strange bug in the interface between hfst-ospell and libvoikko

Sjur Moshagen sjurnm at mac.com
Fri Dec 20 09:41:04 EET 2013


19. des. 2013 kl. 21:27 skrev Harri Pitkänen <hatapitk at iki.fi>:

> The problem turned out to be that libarchive, when configured with the options 
> that disable all dependencies except zlib, no longer supports deflate 
> compression. I repacked sma-20130626.zhfst with
> 
>  zip -Z store test-store.zhfst *
> 
> and now I can successfully use both hfst-ospell.exe and voikkospell.exe under 
> Wine.

This is great news.

> I have not tried this under real Windows and with LibreOffice yet. But things 
> are looking quite good to me. Using "-Z store" here should not be much of a 
> problem. The LibreOffice .oxt package can still be compressed with maximum 
> compression.

Did you see Børre’s post to the list yesterday about replacing lib archive + zlib with lib zip? If it is a working solution under Windows, it will have two benefits:

1) reducing the library dependencies by one more (just libzip instead of libarchive + zlib)
2) allow compression of the zhfst file

Børre has refactored the code so that one could easily use both zip readers with just a configure option.

The last point is important if libvoikko (with zhfst support) becomes part of the LO core: this will allow people to just download zhfst files (and put them in the right folder), and allowing compression would reduce the download size considerably.

Sjur



More information about the Libvoikko mailing list