Kyle Wheeler wrote:
Hello,

I frequently compose text that uses curly quotes (’) in words (e.g. "women’s"). I also use the spell checker a lot. Unfortunately, the (utf-8) curly quote seems to confuse the spell checker. While "women's" is accepted as a correct spelling, "women’s" causes the trailing s to be highlighted as a misspelling.

Does anyone know if there's a way (perhaps by patching vim) to get curly quotes to be treated the same as single quotes?

~Kyle

The quick-and-dirty hack is

1.      :%s/’/'/g
2.      spell-check
3. use undo (u) or :%s/'/’/gc (using the c "confirm" flag because not every apostrophe/quote is to be turned into a leftward-slanting apostrophe) to change everything back.

Of course, this is _not_ a proper fix. The "proper" fix would require making ' and ’ equivalent (when used as an apostrophe) in the spell dictionary.

-- Note that although being labeled as "preferred" in the Unicode documentation, the ’ character (U+2019) is not as portable as ' (Ox27) which is part of the 7-bit US-ASCII character set (which is a subset of most others). I have seen some HTML pages which used ’ but did not specify Unicode, or even explicitly specified Latin1 or Windows-1252, with the result that the display was garbled.


Best regards,
Tony.

Reply via email to