60658Re: Re: Spelling support doesn’t deal with ‘’ ’ correctly
- Mar 8, 2011Nikolai Weibull <now@...> wrote:
> On Wed, Dec 1, 2010 at 22:00, Nikolai Weibull <now@...> wrote:The hunspell doc is not very clear but I think this is what the
>> On Wed, Dec 1, 2010 at 21:12, Bram Moolenaar <Bram@...> wrote:
>>> Nikolai Weibull wrote:
>>>> Writing “Let’s begin …” marks the ‘s’ as a spelling
>>>> error. Writing “Let's begin …” works fine. Is this a bug,
>>>> or am I missing something?
>>> Right, only latin1 quotes are supported.
>> OK, so let’s fix that. How do we fix that?
>> Also, I don’t understand what you say latin1 quotes, as it would be a
>> lot clearer if you said ASCII quotes. (Latin1 doesn’t add any
>> additional quotes. That’s one of the main differences between latin1
>> and cp1252.)
> Still waiting for a response to this question.
ICONV directive of Hunspell is for. Looking at this English
dictionary of OpenOffice 3.x at:
... the en_US.aff file contains:
2839 ICONV 6
2840 ICONV ’ '
2841 ICONV ﬃ ffi
2842 ICONV ﬄ ffl
2843 ICONV ﬀ ff
2844 ICONV ﬁ fi
2845 ICONV ﬂ fl
2847 OCONV 1
2848 OCONV ' ’
My understanding is that ICONV causes to convert the input
fancy quote U+2019 into a regular quote (among other conversions)
before probing the dictionary. So "Let’s" and “Let's" are both
recognized as correct.
But Vim currently still uses dictionaries from OpenOffice-2.x and
does not support ICONV either.
I found the following patch which adds support of Hunspell
dictionary in Vim:
I tried the patch and it still works with latest vim-7.3.138
(I did not test it extensively yet). With some clean up, it
could be a good addition to Vim-7.4.
How about adding options such as:
" Comma separated directories where to search for
" Hunspell dictionaries (*.aff and *.dic).
" Boolean option to use Hunspell dictionaries directly
" rather than Vim spelling dictionaries.
Using Hunspell dictionaries directly solves several issues.
I never managed to convert the latest French dictionary from
OpenOffice-3.x from Hunspell to Vim. The dictionaries from
OpenOffice-2.x are quite out of date (at least for French).
I wish I could use the latest dictionary from OpenOffice-3.x
You received this message from the "vim_dev" 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
- << Previous post in topic Next post in topic >>