all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Kletzander <mk@linux.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25830@debbugs.gnu.org
Subject: bug#25830: 25.2; ispell doesn't parse hunspell dictionaries properly
Date: Tue, 21 Feb 2017 21:24:54 +0100	[thread overview]
Message-ID: <20170221202454.GA30086@wheatley> (raw)
In-Reply-To: <83k28jo3ur.fsf@gnu.org>

On Tue, Feb 21, 2017 at 07:23:08PM +0200, Eli Zaretskii wrote:
>> Date: Tue, 21 Feb 2017 10:18:57 +0100
>> From: Martin Kletzander <mk@linux.com>
>>
>> I have hunspell installed in the system with two default dictionaries.
>
>Please tell more details about the meaning of this.  Do you mean you
>wanted to start Hunspell with 2 dictionaries so that it could
>spell-check text that mixes 2 different languages?  Or did you mean
>something else?  IOW, the "with two default dictionaries" part
>confuses me.
>

Sorry, Idon't know spellcheckers that much.  Ilooked at hunspell's man
page, learned a bit, so I'll try to explain it better this time.

I have multiple dictionaries installed.  Hunspell finds all of them, but
selects *two* of them.  According to the man page, that is done
according to LC_ALL, LC_MESSAGES, and LANG environment variables.
Becuase hunspell selects more of them (which is something I want it to
do), it lists both of them as "LOADED DICTIONARY", ispell parses those
(actually just lines ending with ".aff") and if it finds more than one,
it errors out.

>> I was trying to setup ispell so that it works properly and I couldn't.
>> So I started looking at the sources for ispell and I found one part that
>> can't work.  It may be intentional, but the real problem is that I can't
>> use spellchecker at all.  When `emacs -Q` is ran, it is enough to do M-$
>> with *no additinal settings*.  The error message (and following messages
>> for consecutive M-$) are visible below in 'Recent messages'.
>>
>> I could only trace the problem to the ispell.el where the error is
>> printed.  The reason for that is probably the fact that `hunspell -D`
>> has this output on my system:
>
>I don't immediately see anything wrong here.  Does spell-checking work
>if you set it up to use just one default dictionary, as usual?
>

That's another problem.  Since the initialization itself fails, it
errors out before it checks any set variables.  So no matter what I set
up, it ends up with the same behaviour.  If I remove the second
dictionary from my system, however, it works.

I tried workaround with a wrapper around hunspell that modifies the
output of `hunspell -D` and it works, but that's really ugly.

>Thanks.

Thank you,
Martin





  reply	other threads:[~2017-02-21 20:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21  9:18 bug#25830: 25.2; ispell doesn't parse hunspell dictionaries properly Martin Kletzander
2017-02-21 17:23 ` Eli Zaretskii
2017-02-21 20:24   ` Martin Kletzander [this message]
2017-02-21 20:44     ` Eli Zaretskii
2017-02-22 10:40       ` Martin Kletzander
2017-02-22 16:20         ` Eli Zaretskii
2017-02-22 16:43           ` Martin Kletzander
2017-02-25  8:24             ` Eli Zaretskii
2017-02-25 12:15               ` Martin Kletzander
2017-02-25 12:41                 ` Eli Zaretskii
2017-02-25 13:10                   ` Martin Kletzander
2017-02-27 15:54                 ` Eli Zaretskii
2017-02-28 21:53                   ` Martin Kletzander
2017-03-05 15:42                     ` Eli Zaretskii
2017-03-07 16:51                       ` Eli Zaretskii
2017-03-25 16:13                         ` 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=20170221202454.GA30086@wheatley \
    --to=mk@linux.com \
    --cc=25830@debbugs.gnu.org \
    --cc=eliz@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.