On Sat, Apr 17, 2010 at 3:34 PM, Stephan Witt <st.w...@gmx.net> wrote:
> Am 17.04.2010 um 21:02 schrieb BH:
>
>> On Sat, Apr 17, 2010 at 1:45 PM, Stephan Witt <st.w...@gmx.net> wrote:
>>> Hi,
>>>
>>> thinking about the way to go with spell checkers and thesaurus...
>>>
>>> Currently the build on Mac is able to include aspell with a subset of 
>>> dictionaries.
>>
>> I've just downloaded your alpha2 build, and it seems to run fine for
>> me, at least mostly. Spellchecking is a bit weird, though: it seems
>> not to recognize any long words. For example, with the splash.lyx doc,
>> it doesn't like "documentation", "introduction", "characteristics",
>> etc. (It also doesn't like DVI or LaTeX, but that's to be expected.)
>
> I don't know what the problem is here. Is this a regression?

Yes -- I don't see this in the version of LyX I've compiled. The
problem arises for all words > 11 letters long. (Words <= 11 letters
are fine.)

By the way, when I run your version of LyX from gdb, I get the
following warning:

warning: Could not find object file
"/Users/stephan/cvs/lyx/aspell-0.60.6/common/.libs/cache.o" - no debug
information available for "common/cache.cpp".

repeating many times (for different files).

>>> I've prepared a patch to allow for searching dictionaries at different 
>>> locations.
>>> I'll attach it below. Now LyX/Mac is looking at runtime
>>> 1) in LYX_USERDIR,
>>> 2) included aspell framework and
>>> 3) systems macports installation
>>> until it finds any support for the requested language.
>>>
>>> There are some questions remaining:
>>> * Are the locations of the runtime lookup above sensible?
>>> * Is aspell the best spell checker available?
>>>  (At least its the one compiling out of the box on Mac, I failed with 
>>> enchant and hunspell)
>>
>> Both enchant and hunspell, installed via macports, work for me with
>> cmake. But what would be best is Apple's spellchecker. (Then we
>> wouldn't have to worry about dictionaries.)
>
> I'm having trouble using macports libraries. They are not working with 10.4 
> SDK and I failed
> to build LyX with configure because of link errors with iconv (some 
> incompatibility
> between iconv in /usr/lib and /opt/local/lib.
>
> So I'm using self-compiled qt4 and aspell libraries. But the current source 
> distributions
> of hunspell and enchant I couldn't build until now. (Basically I tried 
> ./configure ; make only)
>
> Apple's spellchecker provides an C-API as far as I knows. I'll try some 
> investigations in the future.
>
>>>
>>> * JMarc asked for some more general way for distributing bundled 
>>> dictionaries.
>>>  Is there any proposal how to proceed here?
>>> * How to give the user the option to install missing dictionaries on her 
>>> own?
>>>  The lookup in LYX_USERDIR is only the first step. Should there be some 
>>> build-in mechanism
>>>  to help installing (aspell)-dictionaries there?
>>> * What is the state of thesaurus support? Can anyone give me some pointer 
>>> to documentation
>>>  how it should be enabled for Mac?
>>
>> I'm not sure what the problem is. In your alpha2 build, it is enabled
>> (though it is broken at the moment, as was pointed out in another
>> thread). Just point LyX > Preferences > Paths > Thesaurus to the
>> location of the mythes dictionaries (which I have at
>> LYX_USERDIR/thesaurus), and it should work.
>
> The problem is: I don't know how to install and use the mythes dictionaries, 
> exactly.
> Is there any documentation at wiki.lyx.org or at some other location? Google 
> did not help.

Grab the mythes source from here:

http://lingucomponent.openoffice.org/thesaurus.html

The English dictionaries are included. (That's where I got them.) Not
sure about other languages.

BH

Reply via email to