On 07/10/13 14:02, Ken Takata wrote:
Hi,
I wrote a patch for the following items from todo.txt:
Have an option for spell checking to not mark any Chinese, Japanese or other
double-width characters as error. Or perhaps all characters above 256.
(Bill Sun) Helps a lot for mixed Asian and latin text.
- have some way not to give spelling errors for a range of characters.
E.g. for Chinese and other languages with specific characters for which we
don't have a spell file. Useful when there is also text in other
languages in the file.
When I write mixed Japanese and English text, it really annoys me.
Current Vim's spell checking algorithm doesn't support Chinese, Japanese or
other East Asian languages. So I just exclude these characters from spell
checking. (No options)
Please check the attached patch.
Regards,
Ken Takata
"All characters above 256" would seem a little rash IMHO: after all,
Russian, Ukrainian, Bulgarian, Greek, etc. can (or should be able to)
use spell checking even though their writing systems are entirely above
U+00FF, and even in Latin script, some French nouns such as œil (eye),
œuf (egg), bœuf (ox or beef), œil-de-bœuf (a small round window), vœu
(wish), Œdipe (Oedipus), œsophage (oesophagus), etc., use characters
(the oe / OE digraphs, which in French are one character each) above
U+00FF. Similarly for the accented letters of non-West-European
languages, many of which fall outside tha Latin1 range.
I suppose that excluding CJK is the right thing to do, since the nearest
thing to "spell checking" for handwritten CJK would mean checking that
the correct brush strokes were used, but "wrong" brush stroke
combinations (other than simplified vs. traditional glyphs, or than
Japanese "national" /kokuji/ characters in a Chinese text, etc.) cannot
be produced as computer text even in Unicode; or else it might mean
checking that word elements ("Han syllables") are meaningfully combined,
which IMHO is more akin to checking semantics or syntax than orthography.
Best regards,
Tony.
--
By perseverance the snail reached the Ark.
-- Charles Spurgeon
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.