Saturday, October 6, 2012

Re: vim, spell check, smart quotes

Chris Lott <chris@chrislott.org> wrote:
 
> Does anyone know how I can get spell check
> within Vim to handle  "smart" quotes (i.e.
> typographically correct ones) properly?
>
> For instance, spell check in Vim doesn't flag a word like:
> don't
>
> but it does flag the smart quote version as incorrect:
> don't


In Hunspell, it is possible to make several characters
equivalent with the ICONV command. For example,
the following Hunspelll command in *.aff file replaces
the ASCII quote  U+0027 into U+2019 prior to probing
the dictionary so that don't or don't are both accepted:

ICONV ' '

But Vim does not process the ICONV Hunspell
directives when creating a Vim dictionary.

An alternative is to use the Vimchant plugin
so that Vim can then use Hunspell dictionaries
directly:

http://www.vim.org/scripts/script.php?script_id=2345

Or you can also use the LanguageTool plugin
which not only does grammar checking in Vim but
now also does spell checking (since LanguageTool
version 1.8) using either Hunspell of FSA (Finate
State Automaton http://stevehanov.ca/blog/index.php?id=115)
dictionaries:

http://www.vim.org/scripts/script.php?script_id=3223

-- Dominique

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: