[libvoikko] Lttoolbox - libvoikko backend integration issues?

David Cheah chaoticefx at gmail.com
Fri Apr 2 18:34:12 EEST 2010

Hi again,

Have been working to build Voikko in MinGW as per the Windows instructions
on the Voikko page, sadly the Malaga installation isn't giving me any files
at all - currently looking into it. Think i should be able to find out whats
going wrong over the weekend.

Also, I've been looking at the spelling suggestions in
src/spellchecker/suggestions, and have a few questions.

Am I right in saying that the task at hand is basically to write additional
methods and new SuggestionGenerator(etc) files into the
src/spellchecker/suggestions folder, which would leave the methods involving
SuggestionStrategy and SuggestionStatus mostly unmodified?

Also, what additional features/new implementations would be good to have in
the suggestions algorithm? Or perhaps what is the current reason why there
is a need for a better suggestions algorithm?


On Wed, Mar 31, 2010 at 11:48 AM, David Cheah <chaoticefx at gmail.com> wrote:

> Hi,
> Oh, ok, thats very much clearer now.
> Thanks!
> 2010/3/30 Harri Pitkänen <hatapitk at iki.fi>
> Hi!
>> On Monday 29 March 2010, David Cheah wrote:
>> > So now, in order to get a  lttoolbox configured dll, I will need to add
>> a
>> > switch, and define the macro. When you say switch do you mean #ifdef?
>> The
>> > switch which immediately comes to mind for me would be a switch{case:}
>> > statement. Also, is there a specific file I should add this switch to?
>> > (perhaps voikko_defines?)
>> Sorry for being unclear. I used word "switch" because I don't know how it
>> is
>> called in MSVC. I meant some sort of a configuration option that you can
>> set
>> when you build the project. The option should be specify whether you want
>> to
>> have support for Lttoolbox compiled in.
>> The equivalent thing in our autotools build system is the options you pass
>> to
>> configure script:
>>  ./configure --enable-lttoolbox
>> The necessary #ifdef is already there, see
>> src/morphology/AnalyzerFactory.cpp.
>> What you need to do is to change the MSVC project files in such way that
>> by
>> default HAVE_LTTOOLBOX is not defined, but when support for Lttoolbox is
>> requested it gets defined.
>> > And, regarding the dll linking - when you say link libvoikko against
>> > lttoolbox, which dll imports into which? Or perhaps, what would be good
>> is
>> > which of the resulting dlls will then be used by the programs? So far, I
>> am
>> > reading it as lttoolbox is referenced in libvoikko, and then libvoikko
>> is
>> > used by other parts of voikko. Or will the 2 dlls be loaded separately?
>> You are right, Lttoolbox should be referenced in libvoikko. Applications
>> that
>> use libvoikko should not need to know that Lttoolbox is used in the
>> background
>> so they will just reference libvoikko.
>> Harri
>> _______________________________________________
>> Libvoikko mailing list
>> Libvoikko at lists.puimula.org
>> http://lists.puimula.org/listinfo/libvoikko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puimula.org/pipermail/libvoikko/attachments/20100402/3b8ddf62/attachment.html>

More information about the Libvoikko mailing list