all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <haroogan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Speck (Spell checker for Emacs)
Date: Sat, 18 Apr 2015 22:22:58 +0200	[thread overview]
Message-ID: <CAKu-7WxwtfWMEh1-v5brqs3BK_8Nx=g2aby+c5Sr=_Xh8o+z6g@mail.gmail.com> (raw)
In-Reply-To: <CAKu-7WzD3YC0uXS-wHQ2nXWmsfX1ayE9-JdzyqVggB47tUXo7w@mail.gmail.com>

​Alright, I think I've nailed it.  The important bit was to

(setq speck-hunspell-library-directory "")

​
Quite unexpected, isn't it?  The reason is that if you run manually

hunspell -a -d "<absolute-path>/share/hunspell/en_US-large" -B


​it reports error:

Can't open affix or dictionary files for dictionary named "
> ​
> <absolute-path>/share/hunspell/en_US-large".
> ​
>

​There are only 2 ways to supply the dictionary properly, either:

​hunspell -a -d "en_US-large" -B​


or

hunspell -a -d "../share/hunspell/en_US-large" -B


I'm not sure whether this is related to MSYS2 Hunspell or applies in
general, but anyway that means we should configure it as follows:

(setq speck-hunspell-library-directory "")


or

(setq speck-hunspell-library-directory "../share/hunspell/")


However, the 2nd variant will not work due to

Setting current directory: permission denied, ../share/hunspell/


As a result, the only variant is

(setq speck-hunspell-library-directory "")


and as soon as I do it, it finally works just fine!

Here is the complete configuration:

(setq speck-engine 'Hunspell
      speck-hunspell-program (executable-find "hunspell")
      speck-hunspell-library-directory
      (if (eq system-type 'windows-nt)
          ""
        (expand-file-name "share/hunspell/"
                          (file-name-directory
                            (directory-file-name
                            (file-name-directory speck-hunspell-program)))))
      speck-hunspell-default-dictionary-name "en"
      speck-hunspell-dictionary-alist '(("en" . "en_US-large"))
      speck-hunspell-language-options '(("en" utf-8 nil nil))
      speck-hunspell-coding-system 'utf-8)


Thanks to Tomas and especially Eli for assistance.  Hope this helps
somebody in future.

Kind regards,
Alexander


  reply	other threads:[~2015-04-18 20:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 22:55 Speck (Spell checker for Emacs) Alexander Shukaev
2015-04-18 11:10 ` tomas
2015-04-18 12:24   ` Alexander Shukaev
2015-04-18 13:15     ` tomas
2015-04-18 13:56       ` Alexander Shukaev
2015-04-18 14:13         ` tomas
2015-04-18 14:46           ` Eli Zaretskii
2015-04-18 15:19 ` Eli Zaretskii
2015-04-18 16:16   ` Alexander Shukaev
2015-04-18 16:33     ` Eli Zaretskii
2015-04-18 16:36       ` Alexander Shukaev
2015-04-18 16:41         ` Eli Zaretskii
2015-04-18 16:56           ` Eli Zaretskii
2015-04-18 17:20             ` Alexander Shukaev
2015-04-18 17:34               ` Eli Zaretskii
2015-04-18 19:44                 ` Alexander Shukaev
2015-04-18 20:22                   ` Alexander Shukaev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-21 10:34 martin rudalics
2015-04-21 12:18 ` Alexander Shukaev
2015-04-21 15:19   ` Eli Zaretskii
2015-04-21 15:26     ` Alexander Shukaev
2015-04-22  9:33   ` martin rudalics
2015-04-22 10:50     ` Alexander Shukaev
     [not found] ` <mailman.1265.1429618691.904.help-gnu-emacs@gnu.org>
2015-04-21 12:57   ` Sebastien Vauban
2015-04-21 15:10 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKu-7WxwtfWMEh1-v5brqs3BK_8Nx=g2aby+c5Sr=_Xh8o+z6g@mail.gmail.com' \
    --to=haroogan@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.