<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: Menlo-Regular;" class="">16. des. 2015 kl. 16:52 skrev Harri Pitkänen <</span><a href="mailto:hatapitk@iki.fi" style="font-family: Menlo-Regular;" class="">hatapitk@iki.fi</a><span style="font-family: Menlo-Regular;" class="">>:</span><br style="font-family: Menlo-Regular;" class=""><blockquote type="cite" style="font-family: Menlo-Regular;" class=""><br class="">On Wednesday 16 December 2015 10:16:56 Sjur Moshagen wrote:<br class=""><blockquote type="cite" class="">This is all fine except for one major drawback: you can’t install multiple<br class="">languages.<br class=""></blockquote><br class="">This should work just the same way as it has worked before.<br class=""><br class="">When you build libvoikko you need to use configuration option<br class=""><br class="">--with-dictionary-path=/usr/lib/voikko:/Library/Spelling/voikko<br class=""></blockquote><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">The main purpose of this is to allow users to install additional languages without installing multiple versions of whatever speller tool they have installed already. Installing multiple versions of e.g. LO-voikko is not working anyway, the new one will replace the old one.</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">Because of the above requirement, we need to define and stick to a common set of (platform specific) dictionary directories, which are always searched. End users should not have to fine-read the readme file to be able to install multiple languages or to find out that it is not possible in the first place. In this respect</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><a href="https://github.com/voikko/corevoikko/issues/13" style="font-family: Menlo-Regular;" class="">https://github.com/voikko/corevoikko/issues/13</a><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">is not a solution, since we now depend on each developer to remember to set the search path, and do it consistently for all platforms, and identically by all developers. This will be error prone, and will most likely create a frustrating user experience for multilingual users. While the old solution was not perfect, and made less and less sense (and was in some cases wrong), it would at least give a bare minimum of default locations you could trust. Now there is none.</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">I suggest that some default locations are reinstated in libvoikko, with the following minimum values:</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">Linux:</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- ~/.voikko</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class=""><please suggest more, I have too little knowledge></span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">OSX:</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- ~/Library/Spelling/voikko</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- /Library/Spelling/voikko</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- <whatever is suggested for Linux></span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">Windows:</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- %APPDATA%\voikko</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">- …possibly more</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">Given something like this, and given that we can always assume these to be searched, it will be much easier to provide a decent user experience for our multilingual users.</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">Sjur</span></body></html>