* ispell doesn’t seem to deal with hunspell reporting byte offsets
@ 2013-04-23 9:21 Nikolai Weibull
2013-04-23 16:33 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2013-04-23 9:21 UTC (permalink / raw)
To: Emacs Users
Hi!
It seems that ispell doesn’t deal with hunspell reporting byte
offsets. If I try to ispell a buffer containing
A “mispelled” word
I’ll get a
Ispell misalignment: word `mispelled' point 6; probably incompatible versions
error. I’m guessing this is due to hunspell reporting the error at
byte 6, not 4 as ispell.el seems to want.
Any way of getting around this?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ispell doesn’t seem to deal with hunspell reporting byte offsets
2013-04-23 9:21 ispell doesn’t seem to deal with hunspell reporting byte offsets Nikolai Weibull
@ 2013-04-23 16:33 ` Eli Zaretskii
2013-04-24 6:51 ` Nikolai Weibull
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2013-04-23 16:33 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Tue, 23 Apr 2013 11:21:36 +0200
> From: Nikolai Weibull <now@disu.se>
>
> It seems that ispell doesn’t deal with hunspell reporting byte
> offsets.
Emacs cannot "deal" with that, because the encoding emitted by
hunspell can be anything (it depends on the encoding used by the
dictionary, among other things).
The fact that byte offsets are reported is a bug in hunspell (for
which you can find a patch in the hunspell bug tracker). You can also
find the patch here:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7781#31
> Any way of getting around this?
Fix hunspell with one of the patches for this bug. That's the only
way that will work reliably.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ispell doesn’t seem to deal with hunspell reporting byte offsets
2013-04-23 16:33 ` Eli Zaretskii
@ 2013-04-24 6:51 ` Nikolai Weibull
0 siblings, 0 replies; 3+ messages in thread
From: Nikolai Weibull @ 2013-04-24 6:51 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
On Tue, Apr 23, 2013 at 6:33 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Tue, 23 Apr 2013 11:21:36 +0200
>> From: Nikolai Weibull <now@disu.se>
>> It seems that ispell doesn’t deal with hunspell reporting byte
>> offsets.
>> Any way of getting around this?
> Fix hunspell with one of the patches for this bug. That's the only
> way that will work reliably.
Thanks, Eli! It now works fine.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-24 6:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 9:21 ispell doesn’t seem to deal with hunspell reporting byte offsets Nikolai Weibull
2013-04-23 16:33 ` Eli Zaretskii
2013-04-24 6:51 ` Nikolai Weibull
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).