[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#824852: texworks: Texworks does not detect myspell-es dictionary



Thanks for your fast response.

I have both directories.

/usr/share/myspell/dicts is used by:
hyphen-ca, myspell-en-gb, myspell-en-us, hyphen-en-us, mythes-en-us, mythes-ca

/usr/share/hunspell is used by:
myspell-es, myspell-en-gb, myspell-en-us, myspell-ca

I found that working spelling packages using both directores place a symlink from /usr/share/myspell/dicts to the real files /usr/share/hunspell. For instance:

lrwxrwxrwx 1 root root 24 Jul  9  2012 /usr/share/myspell/dicts/en_GB.aff -> ../../hunspell/en_GB.aff
lrwxrwxrwx 1 root root 24 Jul  9  2012 /usr/share/myspell/dicts/en-GB.aff -> ../../hunspell/en_GB.aff
lrwxrwxrwx 1 root root 24 Jul  9  2012 /usr/share/myspell/dicts/en_GB.dic -> ../../hunspell/en_GB.dic
lrwxrwxrwx 1 root root 24 Jul  9  2012 /usr/share/myspell/dicts/en-GB.dic -> ../../hunspell/en_GB.dic

If the path in texworks is hardcoded to /usr/share/myspell/dicts/ , then I can solve the problem by symlinking. I tested this and it works. Now spanish is available.

However, I'm not sure if the bug is due to texworks uses only one directory (since other editors seem to use several, because they do not require the symlink) or the bug is in myspell-es because it does not symlink on install.

Thank you very much,
Salva


El lun., 23 may. 2016 a las 12:58, Preuße, Hilmar (<hille42@web.de>) escribió:
On 20.05.2016 14:51, Salvador Petit wrote:

Hi,

> Although myspell-es is installed, Spanish does not appear in the Edit/Spelling
> menu. It appears in other editors like kwrite or kile.
>
The path where texworks looks for dictionaries is hard coded to
/usr/share/myspell/dicts/ during compile time. Some myspell packages install
their dictionaries there, some use /usr/share/hunspell.

Unfortunately it is unclear, which path is correct and if this is eventually a
bug in the spell package(s). Would you be so kind to clarify this question,
before we change our code (and eventually break spelling for the other set of
spelling packages)?

Thanks,
  Hilmar

P.S. If /usr/share/myspell/dicts does not exist on your system you could create
a sym link pointing to /usr/share/hunspell.
--
http://www.hilmar-preusse.de.vu/   #206401 http://counter.li.org

Reply to: