hi all,

i have a question for people on various linux distros.  does hunspell
dictionaries and thesaurus working on your box automatically? (now i mean
vanilla lyx, not packages already fixed by distro packagers).

i just found that both spelling and also thesaurus dictionaries are
not found automatically and the reason is that in contrast to
aspell we are trying to use new idiom 

lyx::support::package().system_support().absFileName(),dataDirectory()

for path which usually leads to something like /usr/share/lyx/ +dicts/.
this looks completely wrong, since there is no reason to expect that
we find hunspell dictionaries inside lyx dicrectory.

is there some reason why to use system_support()? we should use some at least
probable location. also the code written above makes it difficult for package
maintainers to make simple patch for their distros because instead of changing
one string either by ./configure --set-dictionaries or at least in source,
they need to rewrite the code to get rid of 'lyx/' in path.

where are spellcheck and thesaurus dictionaries on your distros? 
(/usr/share/myspell on gentoo)

thesaurus currently doesn't now issue even any warning from debug::files
level when no path is set in prefs and dictionary is not found.

the hunspell debug code outputs pointers instead of language and similar,
so fun to debug :)

pavel

Reply via email to