Am 18.04.2010 um 00:08 schrieb BH:

> 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.)

Hmm, you are using the aspell-library from macports?

The dictionaries should be equal then. My port contents output is:

% port list aspell-dict-en
aspell-dict-en                 @6.0            textproc/aspell-dict-en

Port aspell-dict-en contains:
% md5 `port contents aspell-dict-en|grep -w local`
MD5 (/opt/local/lib/aspell-0.60/en.dat) = ad75814fe4ab93352a4cf6847c0f35b1
MD5 (/opt/local/lib/aspell-0.60/en_affix.dat) = b915c1e0e8ddd76ca9d0abfd39a8d835
MD5 (/opt/local/lib/aspell-0.60/en_phonet.dat) = 
1241b381ff5ea57c575c2a8d3d0bacab
MD5 (/opt/local/share/aspell/american-w_accents.alias) = 
b686e995adafa7218dde9d3f7f9a9da8
MD5 (/opt/local/share/aspell/american-wo_accents.alias) = 
ce474a5ef5745cda4c457a0139243a0f
MD5 (/opt/local/share/aspell/american.alias) = 6e0be90f50a8017160370f0771c5c458
MD5 (/opt/local/share/aspell/british-ise-w_accents.alias) = 
12a7830c7ebf444965f214b686c15b66
MD5 (/opt/local/share/aspell/british-ise-wo_accents.alias) = 
ed5f7f09433d8ede771178ddd11d3cab
MD5 (/opt/local/share/aspell/british-ise.alias) = 
4cbeb1552f361bd17d7b876b1e2ef613
MD5 (/opt/local/share/aspell/british-ize-w_accents.alias) = 
17b8d365e532efb46330076e8213f8d2
MD5 (/opt/local/share/aspell/british-ize-wo_accents.alias) = 
6621ef3d4d7fb3f5f234220a84cb1a08
MD5 (/opt/local/share/aspell/british-ize.alias) = 
87f1b3cc7c6f0ad42324a06df22d680f
MD5 (/opt/local/share/aspell/british-w_accents.alias) = 
919785f7f7bfe408baecd0bd6893be25
MD5 (/opt/local/share/aspell/british-wo_accents.alias) = 
39f768ea572c534eec4b8e2b70ac9104
MD5 (/opt/local/share/aspell/british.alias) = 02a0db848317181a696d0002e4ee3109
MD5 (/opt/local/share/aspell/canadian-w_accents.alias) = 
0f8c5a265c13e975379eb36ec5192b7a
MD5 (/opt/local/share/aspell/canadian-wo_accents.alias) = 
6b3e8e6ef34f8c3c15ba49587ff5ac57
MD5 (/opt/local/share/aspell/canadian.alias) = e6732e58ba939747cc07380e35209ec9
MD5 (/opt/local/share/aspell/en-common.rws) = ffb7c20150b6b502755c704f0a143fb9
MD5 (/opt/local/share/aspell/en-variant_0.multi) = 
a8698b29ca45347816c36fc7fae55a06
MD5 (/opt/local/share/aspell/en-variant_0.rws) = 
9b567a152deabf0e5d20ddef571d746c
MD5 (/opt/local/share/aspell/en-variant_1.multi) = 
72268bf8cf73ccce982cf7a950fd4cd9
MD5 (/opt/local/share/aspell/en-variant_1.rws) = 
b597ac679d2150d17ab0745e8b9e41f8
MD5 (/opt/local/share/aspell/en-variant_2.multi) = 
35ba4e2cc6b06c2ac03c0ee6f7b1d8ca
MD5 (/opt/local/share/aspell/en-variant_2.rws) = 
47aa167ad6d42782a6573f9b55c4397e
MD5 (/opt/local/share/aspell/en-w_accents.multi) = 
8a85a13e947ae33254c09dad757bfbcd
MD5 (/opt/local/share/aspell/en-wo_accents.multi) = 
3459daf2b91fc7457ccd0ff628413b6a
MD5 (/opt/local/share/aspell/en.multi) = f21d5225cde27bd129857f6811066c29
MD5 (/opt/local/share/aspell/en_CA-w_accents-only.rws) = 
eae416b6b7b5957b58c080c5c9204e40
MD5 (/opt/local/share/aspell/en_CA-w_accents.multi) = 
d56e314cb9a8ce69e7178bf032aa9a2b
MD5 (/opt/local/share/aspell/en_CA-wo_accents-only.rws) = 
db0565c5ad2b4dc292b1817c5b611325
MD5 (/opt/local/share/aspell/en_CA-wo_accents.multi) = 
336a55607eab573951eab8b7c52c2c66
MD5 (/opt/local/share/aspell/en_CA.multi) = 6b3e8e6ef34f8c3c15ba49587ff5ac57
MD5 (/opt/local/share/aspell/en_GB-ise-w_accents-only.rws) = 
0bfdf1dcff35f8b8cea1883af4f506cf
MD5 (/opt/local/share/aspell/en_GB-ise-w_accents.multi) = 
f53b0ec0b5942e382d19b2fa8543b8cd
MD5 (/opt/local/share/aspell/en_GB-ise-wo_accents-only.rws) = 
96c57d24121d2c745d908a7f31308b7d
MD5 (/opt/local/share/aspell/en_GB-ise-wo_accents.multi) = 
a768e47d4ec1ac038e142b08de46c889
MD5 (/opt/local/share/aspell/en_GB-ise.multi) = ed5f7f09433d8ede771178ddd11d3cab
MD5 (/opt/local/share/aspell/en_GB-ize-w_accents-only.rws) = 
e9b5ebb26a3342a0cfb0f13d52bd418a
MD5 (/opt/local/share/aspell/en_GB-ize-w_accents.multi) = 
c4da0a987edc43c1ab121bb0f450bd7a
MD5 (/opt/local/share/aspell/en_GB-ize-wo_accents-only.rws) = 
b360ebd42c9c43dca45a89d4e92b180e
MD5 (/opt/local/share/aspell/en_GB-ize-wo_accents.multi) = 
4db6489f25d5c7223fa9c1cfedfe24c5
MD5 (/opt/local/share/aspell/en_GB-ize.multi) = 6621ef3d4d7fb3f5f234220a84cb1a08
MD5 (/opt/local/share/aspell/en_GB-w_accents.multi) = 
12a7830c7ebf444965f214b686c15b66
MD5 (/opt/local/share/aspell/en_GB-wo_accents.multi) = 
ed5f7f09433d8ede771178ddd11d3cab
MD5 (/opt/local/share/aspell/en_GB.multi) = ed5f7f09433d8ede771178ddd11d3cab
MD5 (/opt/local/share/aspell/en_US-w_accents-only.rws) = 
01eae61335e8e8aa06668d2e429aa9e5
MD5 (/opt/local/share/aspell/en_US-w_accents.multi) = 
5362905b3676dc58a84a38b17efadeeb
MD5 (/opt/local/share/aspell/en_US-wo_accents-only.rws) = 
3ab3069710274dc5ccad7a647c8afe2a
MD5 (/opt/local/share/aspell/en_US-wo_accents.multi) = 
794621e1e7e80456c5e43371147f47b7
MD5 (/opt/local/share/aspell/en_US.multi) = ce474a5ef5745cda4c457a0139243a0f
MD5 (/opt/local/share/aspell/english-variant_0.alias) = 
2b12b0caeeee3e110ceb3f41df694ded
MD5 (/opt/local/share/aspell/english-variant_1.alias) = 
7e5a8b7adc58ab5bd4e5069e3b903599
MD5 (/opt/local/share/aspell/english-variant_2.alias) = 
aafcb6c9d233cb6667410e881eab4641
MD5 (/opt/local/share/aspell/english-w_accents.alias) = 
80c0c2e766a6a2d9b172b68a233671ad
MD5 (/opt/local/share/aspell/english-wo_accents.alias) = 
f21d5225cde27bd129857f6811066c29
MD5 (/opt/local/share/aspell/english.alias) = 779dcd460ab85ff3958b8422847f00f7

The distribution is a copy of that:
% md5 /opt/local/share/aspell/en-common.rws 
lyx-build/LyX-2.0.0alpha2.app/Contents/Frameworks/Aspell.framework/Resources/dict/en-common.rws
MD5 (/opt/local/share/aspell/en-common.rws) = ffb7c20150b6b502755c704f0a143fb9
MD5 
(lyx-build/LyX-2.0.0alpha2.app/Contents/Frameworks/Aspell.framework/Resources/dict/en-common.rws)
 = ffb7c20150b6b502755c704f0a143fb9

So I'll check the configure options then.

> 
> 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".

I'll investigate this soon. Today I'm not at home anymore.

> 
> 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.

Thanks.

Stephan

Reply via email to