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? >> 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. Apropos, the spellchecker wiki should be updated soon :) I'll try to come up with an proposal. (Do I need a separate account for the wiki? Christian?) >> >> * What is the potential gain in support for native spellchecker/thesaurus of >> Mac OS X? >> Would that be desirably? > > * no need to worry about dictionaries for different languages (and > bloat the LyX.app bundle) > * keep user's added words in sync with those added via other programs Thank you for your answers. Stephan