all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Nikolai Weibull <now@disu.se>
Cc: Emacs Users <help-gnu-emacs@gnu.org>
Subject: Re: Getting Emacs to play nice with Hunspell and apostrophes
Date: Sat, 07 Jun 2014 18:53:47 +0100	[thread overview]
Message-ID: <87ha3wobbo.fsf@skimble.plus.com> (raw)
In-Reply-To: <CADdV=MtqUW27yCufrq3SHQy8mxiS-q33YWxzk-djaR6o9CnN6w@mail.gmail.com> (Nikolai Weibull's message of "Sat, 7 Jun 2014 17:39:25 +0200")

[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]

Nikolai Weibull <now@disu.se> writes:

> Hi!
>
> How do I get Emacs to play nice with Hunspell and apostrophes.  I
> thought I had it covered, but it seems that something has changed and
> now M-x ispell won’t recognize “isn’t” as a word anymore.
>
> First off, what English dictionary should I be using?
>
> Second, how do I get Emacs to send words containing apostrophes to Hunspell?
>
> Fiddling with WORDCHARS in en_US.aff seems so wrong, as Emacs will
> then send stuff like 'isn't' as a word.
>
> The final step is getting “isn’t” to work with Unicode apostrophes,
> but let’s take it one step at a time.
>
> It’s beyond me how this isn’t working, but I’m sure I’m doing something wrong.
>
This is from my "init.el" -
--8<---------------cut here---------------start------------->8---
;; Use hunspell instead of ispell
(if (file-exists-p "/usr/bin/hunspell")
    (progn
      (setq ispell-program-name "hunspell")
      (eval-after-load "ispell"
        '(progn (defun ispell-get-coding-system () 'utf-8)))))
(setq ispell-program-name "hunspell") 
(require 'rw-hunspell)
(require 'rw-language-and-country-codes)
(require 'rw-ispell)
(setq ispell-dictionary "en_GB_hunspell")
--8<---------------cut here---------------end--------------->8---

Hopefully this will help you get going with hunspell, which I have
found is good! :) This is all I have set up for hunspell and it
works okay with "isn’t" as I've just corrected it in this email.

If you want copies of "rw-hunspell, rw-language-and-country-codes,
rw-ispell" I can priv mail them to you, but I think that I got them
From emacswiki.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  parent reply	other threads:[~2014-06-07 17:53 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-07 15:39 Getting Emacs to play nice with Hunspell and apostrophes Nikolai Weibull
2014-06-07 17:43 ` Robert Thorpe
2014-06-07 17:59   ` Yuri Khan
2014-06-07 18:18   ` Nikolai Weibull
2014-06-07 17:53 ` Sharon Kimble [this message]
2014-06-07 18:17   ` Eli Zaretskii
2014-06-07 18:28 ` Nikolai Weibull
2014-06-07 18:40   ` Eli Zaretskii
2014-06-07 19:59     ` Nikolai Weibull
     [not found] <mailman.3187.1402155569.1147.help-gnu-emacs@gnu.org>
2014-06-11  0:04 ` Emanuel Berg
2014-06-11  5:23   ` Nikolai Weibull
     [not found]   ` <mailman.3375.1402464243.1147.help-gnu-emacs@gnu.org>
2014-06-11 14:24     ` Emanuel Berg
2014-06-11 15:03       ` Nikolai Weibull
     [not found]       ` <mailman.3418.1402499010.1147.help-gnu-emacs@gnu.org>
2014-06-11 15:20         ` Emanuel Berg
2014-06-11 16:57           ` Teemu Likonen
     [not found]           ` <mailman.3437.1402505846.1147.help-gnu-emacs@gnu.org>
2014-06-11 21:32             ` Emanuel Berg
2014-06-12  5:43           ` Yuri Khan
2014-06-12 12:51             ` Stefan Monnier
2014-06-12 13:36               ` Nikolai Weibull
2014-06-12 14:48                 ` Stefan Monnier
     [not found]               ` <mailman.3496.1402580195.1147.help-gnu-emacs@gnu.org>
2014-06-14  1:49                 ` Emanuel Berg
2014-06-14  5:45                   ` Yuri Khan
     [not found]                   ` <mailman.3627.1402724759.1147.help-gnu-emacs@gnu.org>
2014-06-14 11:14                     ` Emanuel Berg
2014-06-14 14:51                       ` Yuri Khan
2014-06-14 15:26                         ` Teemu Likonen
2014-06-17  1:42                         ` Garreau, Alexandre
     [not found]                       ` <mailman.3651.1402757512.1147.help-gnu-emacs@gnu.org>
2014-06-14 16:13                         ` Emanuel Berg
2014-06-16 15:35                           ` Joost Kremers
2014-06-17  2:21                           ` Garreau, Alexandre
     [not found]                           ` <mailman.3799.1402971688.1147.help-gnu-emacs@gnu.org>
2014-06-17  2:41                             ` Rusi
2014-06-17  3:05                               ` Rusi
2014-06-17  1:46                       ` Garreau, Alexandre
2014-06-15  2:48                     ` Sergio Pokrovskij
2014-06-17  1:30                       ` Garreau, Alexandre
2014-06-12 16:58             ` Eli Zaretskii
     [not found]           ` <mailman.3473.1402551809.1147.help-gnu-emacs@gnu.org>
2014-06-14  1:35             ` Emanuel Berg
2014-06-14  2:38             ` Emanuel Berg
2014-06-14  7:11               ` Yuri Khan
     [not found]               ` <mailman.3630.1402729917.1147.help-gnu-emacs@gnu.org>
2014-06-14 11:20                 ` Emanuel Berg
2014-06-17  2:12 ` Rusi
2014-06-17  2:33   ` Garreau, Alexandre

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=87ha3wobbo.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=now@disu.se \
    /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.