Fixed method to recognize a word in spelling

0 views
Skip to first unread message

Lukas Zapletal

unread,
Jan 13, 2008, 6:21:04 PM1/13/08
to vim_use
Hello, I have generated myself a .spl for Czech. It works and it
recognize mispelled words in my texts. The problem is Vim badly
highlight words - it does not recognize word boundaries well so if the
word is in format aaaabcccc where b is some national character it
highlight only "aaaa" part of the word.

There is one problem in my system - its isalpha does not work for
Czech (I have English Windows XP) so I have to use this setting:

iskeyword=@,48-57,_,
138,140-143,154,156-159,163,165,170,175,179,185,186,188,190-214,216-246,248-254

This works pretty well. I know the manual says:

WORDS

Vim uses a fixed method to recognize a word. This is independent of
'iskeyword', so that it also works in help files and for languages
that
include characters like '-' in 'iskeyword'. The word characters do
depend on
'encoding'.

The table with word characters is stored in the main .spl file.
Therefore it
matters what the current locale is when generating it! A .add.spl
file does
not contain a word table though.

For a word that starts with a digit the digit is ignored, unless the
word as a
whole is recognized. Thus if "3D" is a word and "D" is not then "3D"
is
recognized as a word, but if "3D" is not a word then only the "D" is
marked as
bad. Hex numbers in the form 0x12ab and 0X12AB are recognized.

Can be the problem in generating the SPL file on my bad-isalpha
system? Should I use Czech Windows XP for the SPL file generation?
What is that "fixed method"? How to change Vims behaviour here?

Thanks

Lukas Zapletal

unread,
Jan 14, 2008, 4:46:51 PM1/14/08
to vim_use
Thanks, Bram. I have missed the official site with all dictionaries
pre-generated:

ftp://ftp.vim.org/pub/vim/runtime/spell/

No need to generate anything now.

LZ
Reply all
Reply to author
Forward
0 new messages