From: Eli Zaretskii <eliz@gnu.org>
To: Arash Esbati <arash@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Hunspell 1.6 on Msys2
Date: Thu, 19 Jan 2017 17:56:25 +0200 [thread overview]
Message-ID: <83mven6o2e.fsf@gnu.org> (raw)
In-Reply-To: <86shofju89.fsf@gnu.org> (message from Arash Esbati on Thu, 19 Jan 2017 10:04:54 +0100)
> From: Arash Esbati <arash@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Thu, 19 Jan 2017 10:04:54 +0100
>
> Debugger entered--Lisp error: (error "Ispell misalignment: word
> ‘\334bersetzugn’ point 43; probably incompatible versions")
Forget about all I said, I've succeeded in reproducing this now.
(Previously, I used "M-$" instead of "M-x ispell", and ispell-word
somehow succeeds to work in this case.)
This is a bug in Hunspell 1.6: it seems to ignore the "-i UTF-8"
command-line switch, and sends its output in Latin-1 (perhaps because
the de_DE dictionary uses that encoding). With a file to-spell.tex
using the same text you show in your recipe and encoded in UTF-8, try
this from the Windows command line:
cat to-spell.tex | hunspell -a "" -d de_DE -i UTF-8 > hunspell-1.6.txt
Then visit the file hunspell-1.6.txt -- you will see that it shows
Übersetzugn in Latin-1 encoding, although the -i switch requested that
the UI be in UTF-8.
It's possible that this is a kludgey "feature" in Hunspell 1.6, meant
as a stop-gap for the long-standing bug in Hunspell, whereby it
reports offsets in bytes, not in characters. It could be that the
Hunspell developers made this change in behavior to make the problem
less acute. But it's a bug anyway.
The solution is to fix Hunspell, of course. Failing that, a
workaround would be to customize your Emacs to use single-byte
encodings for dictionaries with which you need to work. One way to do
that is to set up the coding-systems of the Hunspell process
accordingly. But that could be messy, as ispell.el is quite set on
using UTF-8 with Hunspell and Aspell.
next prev parent reply other threads:[~2017-01-19 15:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 22:16 Hunspell 1.6 on Msys2 Arash Esbati
2017-01-18 3:38 ` Eli Zaretskii
2017-01-18 10:22 ` Arash Esbati
2017-01-18 15:35 ` Eli Zaretskii
2017-01-18 17:57 ` Arash Esbati
2017-01-18 18:20 ` Eli Zaretskii
2017-01-18 18:39 ` Arash Esbati
2017-01-18 19:15 ` Eli Zaretskii
2017-01-18 19:19 ` Eli Zaretskii
2017-01-18 19:54 ` Arash Esbati
2017-01-18 20:05 ` Eli Zaretskii
2017-01-19 9:04 ` Arash Esbati
2017-01-19 15:56 ` Eli Zaretskii [this message]
2017-01-20 8:54 ` Arash Esbati
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=83mven6o2e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=arash@gnu.org \
--cc=emacs-devel@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.