forked from aniani/vim
updated for version 7.0103
This commit is contained in:
parent
dfb9ac0021
commit
53180ce2e7
@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 7.0aa. Last change: 2005 Feb 14
|
||||
*cmdline.txt* For Vim version 7.0aa. Last change: 2005 Jul 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -726,7 +726,7 @@ Note: these are typed literally, they are not special keys!
|
||||
effective buffer number (for ":r file" it is the current
|
||||
buffer, the file being read is not in a buffer).
|
||||
<amatch> when executing autocommands, is replaced with the match for
|
||||
which this autocommand was executed. It differs form
|
||||
which this autocommand was executed. It differs from
|
||||
<afile> only when the file name isn't used to match with
|
||||
(for FileType and Syntax events).
|
||||
<sfile> when executing a ":source" command, is replaced with the
|
||||
|
@ -1,4 +1,4 @@
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Jul 04
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Jul 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -79,20 +79,20 @@ zW Like "zw" but add the word to the internal word list
|
||||
|
||||
*:spe* *:spellgood*
|
||||
:[count]spe[llgood] {word}
|
||||
Add [word} as a good word to 'spellfile', like with
|
||||
Add {word} as a good word to 'spellfile', like with
|
||||
"zg". Without count the first name is used, with a
|
||||
count of two the second entry, etc.
|
||||
|
||||
:spe[llgood]! {word} Add [word} as a good word to the internal word list,
|
||||
:spe[llgood]! {word} Add {word} as a good word to the internal word list,
|
||||
like with "zG".
|
||||
|
||||
*:spellw* *:spellwrong*
|
||||
:[count]spellw[rong] {word}
|
||||
Add [word} as a wrong (bad) word to 'spellfile', as
|
||||
Add {word} as a wrong (bad) word to 'spellfile', as
|
||||
with "zw". Without count the first name is used, with
|
||||
a count of two the second entry, etc.
|
||||
|
||||
:spellw[rong]! {word} Add [word} as a wrong (bad) word to the internal word
|
||||
:spellw[rong]! {word} Add {word} as a wrong (bad) word to the internal word
|
||||
list.
|
||||
|
||||
After adding a word to 'spellfile' with the above commands its associated
|
||||
|
@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.0aa. Last change: 2005 Jun 03
|
||||
*syntax.txt* For Vim version 7.0aa. Last change: 2005 Jul 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -3906,6 +3906,9 @@ SpecialKey Meta and special keys listed with ":map", also for text used
|
||||
really is.
|
||||
*hl-SpellBad*
|
||||
SpellBad Word that is not recognized by the spellchecker. |spell|
|
||||
This will be combined with the highlighting used otherwise.
|
||||
*hl-SpellCap*
|
||||
SpellCap Word that should start with a capital. |spell|
|
||||
This will be combined with the highlighting used otherwise.
|
||||
*hl-SpellLocal*
|
||||
SpellLocal Word that is recognized by the spellchecker as one that is
|
||||
|
@ -5148,6 +5148,7 @@ hebrew hebrew.txt /*hebrew*
|
||||
hebrew.txt hebrew.txt /*hebrew.txt*
|
||||
help various.txt /*help*
|
||||
help-context help.txt /*help-context*
|
||||
help-tags tags 1
|
||||
help-translated various.txt /*help-translated*
|
||||
help-xterm-window various.txt /*help-xterm-window*
|
||||
help.txt help.txt /*help.txt*
|
||||
@ -5207,6 +5208,7 @@ hl-Search syntax.txt /*hl-Search*
|
||||
hl-SignColumn syntax.txt /*hl-SignColumn*
|
||||
hl-SpecialKey syntax.txt /*hl-SpecialKey*
|
||||
hl-SpellBad syntax.txt /*hl-SpellBad*
|
||||
hl-SpellCap syntax.txt /*hl-SpellCap*
|
||||
hl-SpellLocal syntax.txt /*hl-SpellLocal*
|
||||
hl-SpellRare syntax.txt /*hl-SpellRare*
|
||||
hl-StatusLine syntax.txt /*hl-StatusLine*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 04
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
@ -2,7 +2,7 @@
|
||||
" Language: Pascal
|
||||
" Maintainer: Neil Carter <n.carter@swansea.ac.uk>
|
||||
" Created: 2004 Jul 13
|
||||
" Last Change: 2005 Jun 15
|
||||
" Last Change: 2005 Jul 05
|
||||
|
||||
|
||||
if exists("b:did_indent")
|
||||
|
@ -2,7 +2,7 @@ The spell files included here are in Vim's special format. You can't edit
|
||||
them. See ":help spell" for more information.
|
||||
|
||||
|
||||
Copyright
|
||||
COPYRIGHT
|
||||
|
||||
The files used as input for the spell files come from the OpenOffice.org spell
|
||||
files. Most of them go under the LGPL or a similar license.
|
||||
@ -10,3 +10,78 @@ files. Most of them go under the LGPL or a similar license.
|
||||
Copyright notices for specific languages are in README_??.txt. Note that the
|
||||
files for different regions are merged, both to save space and to make it
|
||||
possible to highlight words for another region different from bad words.
|
||||
|
||||
|
||||
GENERATING .SPL FILES
|
||||
|
||||
This involves downloading the files from the OpenOffice.org server, applying a
|
||||
patch and running Vim to generate the .spl file. To do this all in one go use
|
||||
the Aap program (www.a-a-p.org). It's simple to install, it only requires
|
||||
Python.
|
||||
|
||||
You can also do it manually:
|
||||
1. Fetch the right spell file from:
|
||||
http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
|
||||
|
||||
2. Unzip the archive:
|
||||
unzip LL_RR.zip
|
||||
|
||||
3. Apply the patch:
|
||||
patch < LL_RR.diff
|
||||
|
||||
4. If the language has multiple regions do the above for each region. E.g.,
|
||||
for English there are five regions: US, CA, AU, NZ and GB.
|
||||
|
||||
5. Run Vim and execute ":mkspell". Make sure you do this with the correct
|
||||
locale, that influences the upper/lower case letters and word characters.
|
||||
On Unix it's something like:
|
||||
env LANG=en_US.UTF-8 vim
|
||||
mkspell! en en_US en_AU en_CA en_GB en_NZ
|
||||
|
||||
6. Repeat step 5 for other locales. For English you could generate a spell
|
||||
file for latin1, utf-8 and ASCII. ASCII only makes sense for languages
|
||||
that have very few words with non-ASCII letters.
|
||||
|
||||
Now you understand why I prefer using the Aap recipe :-).
|
||||
|
||||
|
||||
MAINTAINING A LANGUAGE
|
||||
|
||||
Every language should have a maintainer. His tasks are to track the changes
|
||||
in the OpenOffice.org spell files and make updated patches. Words that
|
||||
haven't been added/removed from the OpenOffice lists can also be handled by
|
||||
the patches.
|
||||
|
||||
It is important to keep the version of the .dic and .aff files that you
|
||||
started with. When OpenOffice brings out new versions of these files you can
|
||||
find out what changed and take over these changes in your patch. When there
|
||||
are very many changes you can do it the other way around: re-apply the changes
|
||||
for Vim to the new versions of the .dic and .aff files.
|
||||
|
||||
This procedure should work well:
|
||||
|
||||
1. Obtain the zip archive with the .aff and .dic files. Unpack it as
|
||||
explained above and copy (don't rename!) the .aff and .dic files to
|
||||
.orig.aff and .orig.dic. Using the Aap recipe should work, it will make
|
||||
the copies for you.
|
||||
|
||||
2. Tweak the .aff and .dic files to generate the perfect .spl file. Don't
|
||||
change too much, the OpenOffice people are not stupid. However, you may
|
||||
want to remove obvious mistakes. And remove single-letter words that
|
||||
aren't really words, they mess up the suggestions (English has this
|
||||
problem).
|
||||
|
||||
3. Make the diff file. "aap diff" will do this for you. If a diff would be
|
||||
too big you might consider writing a Vim script to do systematic changes.
|
||||
Do check that someone else can reproduce building the spell file. Send the
|
||||
result to Bram for inclusion in the distribution. Bram will generate the
|
||||
.spl file and upload it to the ftp server (if he can't generate it you will
|
||||
have to send him the .spl file too).
|
||||
|
||||
4. When OpenOffice makes a new zip file available you need to update the
|
||||
patch. "aap check" should do most of the work for you: if there are
|
||||
changes the .new.dic and .new.aff files will appear. You can now figure
|
||||
out the differences with .orig.dic and .orig.aff, adjust the .dic and .aff
|
||||
files and finally move the .new.dic to .orig.dic and .new.aff to .orig.aff.
|
||||
|
||||
5. Repeat step 4. regularly.
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,12 +9,16 @@
|
||||
SPELLDIR = ..
|
||||
FILES = he_IL.aff he_IL.dic
|
||||
|
||||
all: $(SPELLDIR)/he.utf-8.spl ../README_he.txt
|
||||
all: $(SPELLDIR)/he.utf-8.spl $(SPELLDIR)/he.iso-8859-8.spl ../README_he.txt
|
||||
|
||||
$(SPELLDIR)/he.utf-8.spl : $(VIM) $(FILES)
|
||||
:sys env LANG=he_IL.UTF-8
|
||||
$(VIM) -e -c "mkspell! $(SPELLDIR)/he he_IL" -c q
|
||||
|
||||
$(SPELLDIR)/he.iso-8859-8.spl : $(VIM) $(FILES)
|
||||
:sys $(VIM) -e -c "set enc=iso-8859-8"
|
||||
-c "mkspell! $(SPELLDIR)/he he_IL" -c q
|
||||
|
||||
../README_he.txt : README_he_IL.txt
|
||||
:copy $source $target
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
" Language: HTML
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/html.vim
|
||||
" Last Change: 2004 May 16
|
||||
" Last Change: 2005 Jul 05
|
||||
|
||||
" Please check :help html.vim for some comments and a description of the options
|
||||
|
||||
@ -35,8 +35,8 @@ syn match htmlError "[<>&]"
|
||||
syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc
|
||||
syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc
|
||||
syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc
|
||||
syn region htmlEndTag start=+</+ end=+>+ contains=htmlTagN,htmlTagError
|
||||
syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
|
||||
syn region htmlEndTag start=+</+ end=+>+ contains=htmlTagN,htmlTagError,@NoSpell
|
||||
syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster,@NoSpell
|
||||
syn match htmlTagN contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
|
||||
syn match htmlTagN contained +</\s*[-a-zA-Z0-9]\++hs=s+2 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
|
||||
syn match htmlTagError contained "[^>]<"ms=s+1
|
||||
@ -116,7 +116,7 @@ syn match htmlPreProcAttrName contained "\(expr\|errmsg\|sizefmt\|timefmt\|var\|
|
||||
|
||||
if !exists("html_no_rendering")
|
||||
" rendering
|
||||
syn cluster htmlTop contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc
|
||||
syn cluster htmlTop contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc
|
||||
|
||||
syn region htmlBold start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
|
||||
syn region htmlBold start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
|
||||
@ -146,7 +146,7 @@ if !exists("html_no_rendering")
|
||||
syn region htmlItalicUnderlineBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop
|
||||
syn region htmlItalicUnderlineBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop
|
||||
|
||||
syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc
|
||||
syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc
|
||||
syn region htmlH1 start="<h1\>" end="</h1>"me=e-5 contains=@htmlTop
|
||||
syn region htmlH2 start="<h2\>" end="</h2>"me=e-5 contains=@htmlTop
|
||||
syn region htmlH3 start="<h3\>" end="</h3>"me=e-5 contains=@htmlTop
|
||||
|
@ -55,7 +55,7 @@ syn match vimHLGroup contained "Conceal"
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained add append argc argidx argv browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call char2nr cindent col confirm copy count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty errorlist escape eval eventhandler executable exists expand expr8 extend filereadable filewritable filter finddir findfile fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function get getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfontname getfperm getfsize getftime getftype getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has has_key hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputrestore inputsave inputsecret insert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime map maparg mapcheck match matchend matchlist matchstr max min mkdir mode nextnonblank nr2char prevnonblank range readfile remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify sort split strftime stridx string strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system taglist tempname tolower toupper tr type values virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth writefile
|
||||
syn keyword vimFuncName contained add append argc argidx argv browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call char2nr cindent col confirm copy count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty errorlist escape eval eventhandler executable exists expand expr8 extend filereadable filewritable filter finddir findfile fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function get getbufvar getchar getcharmod getcmdline getcmdpos getcwd getfontname getfperm getfsize getftime getftype getline getreg getregtype getwinposx getwinposy getwinvar glob globpath has has_key hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputrestore inputsave inputsecret insert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime map maparg mapcheck match matchend matchlist matchstr max min mkdir mode nextnonblank nr2char prevnonblank range readfile remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse search searchpair server2client serverlist setbufvar setcmdpos setline setreg setwinvar simplify sort split strftime stridx string strlen strpart strridx strtrans submatch substitute synID synIDattr synIDtrans system taglist tempname tolower toupper tr type values virtcol visualmode winbufnr wincol winheight winline winnr winrestcmd winwidth writefile soundfold spellsuggest spellbadword
|
||||
|
||||
"--- syntax above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
|
@ -516,6 +516,8 @@ CClink = $(CC)
|
||||
# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
|
||||
# allocated memory (and makes every malloc()/free() very slow).
|
||||
# Electric Fence is free (search ftp sites).
|
||||
# You may want to set the EF_PROTECT_BELOW environment variable to check the
|
||||
# other side of allocated memory.
|
||||
# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
|
||||
# as root: sysctl -w vm.max_proc_mmap=30000
|
||||
#EXTRA_LIBS = /usr/local/lib/libefence.a
|
||||
|
@ -1186,9 +1186,9 @@ script_dump_profile(fd)
|
||||
int
|
||||
prof_def_func()
|
||||
{
|
||||
scriptitem_T *si = &SCRIPT_ITEM(current_SID);
|
||||
|
||||
return si->sn_pr_force;
|
||||
if (current_SID > 0)
|
||||
return SCRIPT_ITEM(current_SID).sn_pr_force;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
# endif
|
||||
|
16
src/fileio.c
16
src/fileio.c
@ -5435,25 +5435,27 @@ buf_modname(shortname, fname, ext, prepend_dot)
|
||||
* Then truncate what is after the '/', '\' or ':' to 8 characters for
|
||||
* MSDOS and 26 characters for AMIGA, a lot more for UNIX.
|
||||
*/
|
||||
for (ptr = retval + fnamelen; ptr >= retval; mb_ptr_back(retval, ptr))
|
||||
for (ptr = retval + fnamelen; ptr > retval; mb_ptr_back(retval, ptr))
|
||||
{
|
||||
#ifndef RISCOS
|
||||
if (*ext == '.'
|
||||
#ifdef USE_LONG_FNAME
|
||||
# ifdef USE_LONG_FNAME
|
||||
&& (!USE_LONG_FNAME || shortname)
|
||||
#else
|
||||
# ifndef SHORT_FNAME
|
||||
# else
|
||||
# ifndef SHORT_FNAME
|
||||
&& shortname
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
)
|
||||
if (*ptr == '.') /* replace '.' by '_' */
|
||||
*ptr = '_';
|
||||
#endif /* RISCOS */
|
||||
#endif
|
||||
if (vim_ispathsep(*ptr))
|
||||
{
|
||||
++ptr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ptr++;
|
||||
|
||||
/* the file name has at most BASENAMELEN characters. */
|
||||
#ifndef SHORT_FNAME
|
||||
|
@ -24,7 +24,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test38.out test39.out test40.out test41.out test42.out \
|
||||
test43.out test44.out test45.out test46.out test47.out \
|
||||
test48.out test51.out test53.out test54.out test55.out \
|
||||
test56.out test57.out test58.out
|
||||
test56.out test57.out test58.out test59.out
|
||||
|
||||
.SUFFIXES: .in .out
|
||||
|
||||
@ -102,3 +102,4 @@ test55.out: test55.in
|
||||
test56.out: test56.in
|
||||
test57.out: test57.in
|
||||
test58.out: test58.in
|
||||
test59.out: test59.in
|
||||
|
@ -18,7 +18,7 @@ SCRIPTS16 = test1.out test19.out test20.out test22.out \
|
||||
test35.out test36.out test43.out \
|
||||
test44.out test45.out test46.out test47.out \
|
||||
test48.out test51.out test53.out test54.out \
|
||||
test55.out test56.out test57.out test58.out
|
||||
test55.out test56.out test57.out test58.out test59.out
|
||||
|
||||
SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test8.out test9.out test11.out test13.out test14.out \
|
||||
|
@ -24,7 +24,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test38.out test39.out test40.out test41.out test42.out \
|
||||
test43.out test44.out test45.out test46.out test47.out \
|
||||
test48.out test51.out test53.out test54.out test55.out \
|
||||
test56.out test57.out test58.out
|
||||
test56.out test57.out test58.out test59.out
|
||||
|
||||
.SUFFIXES: .in .out
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||
#
|
||||
# Last change: 2005 Jul 04
|
||||
# Last change: 2005 Jul 05
|
||||
#
|
||||
# This has been tested on VMS 6.2 to 7.2 on DEC Alpha and VAX.
|
||||
# Edit the lines in the Configuration section below to select.
|
||||
@ -58,7 +58,7 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
||||
test38.out test39.out test40.out test41.out test42.out \
|
||||
test43.out test44.out test45.out test46.out \
|
||||
test48.out test51.out test53.out test54.out test55.out \
|
||||
test56.out test57.out test58.out
|
||||
test56.out test57.out test58.out test59.out
|
||||
|
||||
.IFDEF WANT_GUI
|
||||
SCRIPT_GUI = test16.out
|
||||
|
@ -14,7 +14,8 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
||||
test38.out test39.out test40.out test41.out test42.out \
|
||||
test43.out test44.out test45.out test46.out test47.out \
|
||||
test48.out test49.out test51.out test52.out test53.out \
|
||||
test54.out test55.out test56.out test57.out test58.out
|
||||
test54.out test55.out test56.out test57.out test58.out \
|
||||
test59.out
|
||||
|
||||
SCRIPTS_GUI = test16.out
|
||||
|
||||
|
@ -12,31 +12,46 @@ STARTTEST
|
||||
:" use that spell file
|
||||
:set spl=Xtest.latin1.spl
|
||||
:set spell
|
||||
:func SpellTest()
|
||||
/^test1:
|
||||
]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 4)
|
||||
:$put =string(lst)
|
||||
`m]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 2)
|
||||
:$put =string(lst)
|
||||
`m]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 2)
|
||||
:$put =string(lst)
|
||||
`m]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 2)
|
||||
:$put =string(lst)
|
||||
`m]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 2)
|
||||
:$put =string(lst)
|
||||
`m]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m:let lst = spellsuggest(str, 2)
|
||||
:$put =string(lst)
|
||||
normal ]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 4)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
endfunc
|
||||
:call SpellTest()
|
||||
:spelldump
|
||||
1GyG:q
|
||||
:$put
|
||||
@ -84,6 +99,17 @@ gg:/^addstart/+1,/^addend/-1w! Xtest.latin1.add
|
||||
`m]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:"
|
||||
:" Postponed prefixes
|
||||
gg:/^affstart3/+1,/^affend3/-1w! Xtest.aff
|
||||
:mkspell! Xtest Xtest
|
||||
:set spellfile=
|
||||
:set spl=Xtest.latin1.spl
|
||||
:mess
|
||||
:spelldump
|
||||
1GyG:q
|
||||
:$put
|
||||
:call SpellTest()
|
||||
:"
|
||||
gg:/^test output:/,$wq! test.out
|
||||
ENDTEST
|
||||
|
||||
@ -116,6 +142,11 @@ SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
@ -159,6 +190,11 @@ SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
@ -284,9 +320,58 @@ SAL ZZ- _
|
||||
SAL Z S
|
||||
affend2
|
||||
|
||||
affstart3
|
||||
SET ISO8859-1
|
||||
|
||||
FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ
|
||||
|
||||
PFXPOSTPONE
|
||||
|
||||
MIDWORD '-
|
||||
|
||||
KEP =
|
||||
RAR ?
|
||||
BAD !
|
||||
|
||||
NOSPLITSUGS
|
||||
|
||||
PFX I N 1
|
||||
PFX I 0 in .
|
||||
|
||||
PFX O Y 1
|
||||
PFX O 0 out .
|
||||
|
||||
SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
REP svp s.v.p.
|
||||
|
||||
MAP 9
|
||||
MAP aàáâãäå
|
||||
MAP eèéêë
|
||||
MAP iìíîï
|
||||
MAP oòóôõö
|
||||
MAP uùúûü
|
||||
MAP nñ
|
||||
MAP cç
|
||||
MAP yÿý
|
||||
MAP sß
|
||||
affend3
|
||||
|
||||
dicstart
|
||||
123456
|
||||
test
|
||||
test/NO
|
||||
# comment
|
||||
wrong
|
||||
Comment
|
||||
|
@ -19,9 +19,12 @@ input
|
||||
OK
|
||||
output
|
||||
outputs
|
||||
outtest
|
||||
put
|
||||
puts
|
||||
test
|
||||
testen
|
||||
testn
|
||||
the end
|
||||
uk
|
||||
wrong
|
||||
@ -40,3 +43,32 @@ elequint
|
||||
elekwent
|
||||
elequint
|
||||
elekwint
|
||||
# file: Xtest.latin1.spl
|
||||
Comment
|
||||
deol
|
||||
déôr
|
||||
OK
|
||||
put
|
||||
input
|
||||
output
|
||||
puts
|
||||
outputs
|
||||
test
|
||||
outtest
|
||||
testen
|
||||
testn
|
||||
the end
|
||||
uk
|
||||
wrong
|
||||
inputs
|
||||
['input', 'puts', 'put', 'outputs']
|
||||
comment
|
||||
['Comment']
|
||||
ok
|
||||
['OK', 'uk']
|
||||
Ok
|
||||
['OK', 'Uk']
|
||||
test
|
||||
['test', 'Test']
|
||||
déôl
|
||||
['deol', 'déôr']
|
||||
|
406
src/testdir/test59.in
Normal file
406
src/testdir/test59.in
Normal file
@ -0,0 +1,406 @@
|
||||
Tests for spell checking with 'encoding' set to "utf-8". vim: set ft=vim :
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:so mbyte.vim
|
||||
:"
|
||||
:" First generate a .spl file from a .dic and a .aff file.
|
||||
:set enc=utf-8
|
||||
:/^affstart1/+1,/affend1/-1w Xtest.aff
|
||||
:/^dicstart/+1,/dicend/-1w Xtest.dic
|
||||
:mkspell Xtest Xtest
|
||||
:"
|
||||
:" use that spell file
|
||||
:set spl=Xtest.utf-8.spl
|
||||
:set spell
|
||||
:func SpellTest()
|
||||
/^test1:
|
||||
normal ]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 4)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
normal `m]smm
|
||||
let str = spellbadword()
|
||||
$put =str
|
||||
normal `m
|
||||
let lst = spellsuggest(str, 2)
|
||||
$put =string(lst)
|
||||
endfunc
|
||||
:call SpellTest()
|
||||
:spelldump
|
||||
1GyG:q
|
||||
:$put
|
||||
:$put =soundfold('goobledygoook')
|
||||
:$put =soundfold('kóopërÿnôven')
|
||||
:$put =soundfold('oeverloos gezwets edale')
|
||||
:"
|
||||
:" and now with SAL instead of SOFO items; test automatic reloading
|
||||
gg:/^affstart2/+1,/^affend2/-1w! Xtest.aff
|
||||
:mkspell! Xtest Xtest
|
||||
:$put =soundfold('goobledygoook')
|
||||
:$put =soundfold('kóopërÿnôven')
|
||||
:$put =soundfold('oeverloos gezwets edale')
|
||||
:"
|
||||
:" also use an addition file
|
||||
gg:/^addstart/+1,/^addend/-1w! Xtest.utf-8.add
|
||||
:mkspell! Xtest.utf-8.add.spl Xtest.utf-8.add
|
||||
:set spl=en
|
||||
:set spellfile=Xtest.utf-8.add
|
||||
/^test2:
|
||||
]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:set spl=en_us
|
||||
/^test2:
|
||||
]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:set spl=en_gb
|
||||
/^test2:
|
||||
]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:set spl=en_nz
|
||||
/^test2:
|
||||
]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:set spl=en_ca
|
||||
/^test2:
|
||||
]smm:let str = spellbadword()
|
||||
:$put =str
|
||||
`m]s:let str = spellbadword()
|
||||
:$put =str
|
||||
:"
|
||||
:" Postponed prefixes
|
||||
gg:/^affstart3/+1,/^affend3/-1w! Xtest.aff
|
||||
:mkspell! Xtest Xtest
|
||||
:set spellfile=
|
||||
:set spl=Xtest.utf-8.spl
|
||||
:mess
|
||||
:spelldump
|
||||
1GyG:q
|
||||
:$put
|
||||
:call SpellTest()
|
||||
:"
|
||||
gg:/^test output:/,$wq! test.out
|
||||
ENDTEST
|
||||
|
||||
affstart1
|
||||
SET ISO8859-1
|
||||
TRY esianrtolcdugmphbyfvkwjkqxz-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKWJKQXZ
|
||||
|
||||
FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ
|
||||
|
||||
SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿
|
||||
SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?
|
||||
|
||||
MIDWORD '-
|
||||
|
||||
KEP =
|
||||
RAR ?
|
||||
BAD !
|
||||
|
||||
NOSPLITSUGS
|
||||
|
||||
PFX I N 1
|
||||
PFX I 0 in .
|
||||
|
||||
PFX O Y 1
|
||||
PFX O 0 out .
|
||||
|
||||
SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
REP svp s.v.p.
|
||||
|
||||
MAP 9
|
||||
MAP aàáâãäå
|
||||
MAP eèéêë
|
||||
MAP iìíîï
|
||||
MAP oòóôõö
|
||||
MAP uùúûü
|
||||
MAP nñ
|
||||
MAP cç
|
||||
MAP yÿý
|
||||
MAP sß
|
||||
affend1
|
||||
|
||||
affstart2
|
||||
SET ISO8859-1
|
||||
TRY esianrtolcdugmphbyfvkwjkqxz-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKWJKQXZ
|
||||
|
||||
FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ
|
||||
|
||||
MIDWORD '-
|
||||
|
||||
KEP =
|
||||
RAR ?
|
||||
BAD !
|
||||
|
||||
NOSPLITSUGS
|
||||
|
||||
PFX I N 1
|
||||
PFX I 0 in .
|
||||
|
||||
PFX O Y 1
|
||||
PFX O 0 out .
|
||||
|
||||
SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
REP svp s.v.p.
|
||||
|
||||
MAP 9
|
||||
MAP aàáâãäå
|
||||
MAP eèéêë
|
||||
MAP iìíîï
|
||||
MAP oòóôõö
|
||||
MAP uùúûü
|
||||
MAP nñ
|
||||
MAP cç
|
||||
MAP yÿý
|
||||
MAP sß
|
||||
|
||||
SAL AH(AEIOUY)-^ *H
|
||||
SAL AR(AEIOUY)-^ *R
|
||||
SAL A(HR)^ *
|
||||
SAL A^ *
|
||||
SAL AH(AEIOUY)- H
|
||||
SAL AR(AEIOUY)- R
|
||||
SAL A(HR) _
|
||||
SAL À^ *
|
||||
SAL Å^ *
|
||||
SAL BB- _
|
||||
SAL B B
|
||||
SAL CQ- _
|
||||
SAL CIA X
|
||||
SAL CH X
|
||||
SAL C(EIY)- S
|
||||
SAL CK K
|
||||
SAL COUGH^ KF
|
||||
SAL CC< C
|
||||
SAL C K
|
||||
SAL DG(EIY) K
|
||||
SAL DD- _
|
||||
SAL D T
|
||||
SAL É< E
|
||||
SAL EH(AEIOUY)-^ *H
|
||||
SAL ER(AEIOUY)-^ *R
|
||||
SAL E(HR)^ *
|
||||
SAL ENOUGH^$ *NF
|
||||
SAL E^ *
|
||||
SAL EH(AEIOUY)- H
|
||||
SAL ER(AEIOUY)- R
|
||||
SAL E(HR) _
|
||||
SAL FF- _
|
||||
SAL F F
|
||||
SAL GN^ N
|
||||
SAL GN$ N
|
||||
SAL GNS$ NS
|
||||
SAL GNED$ N
|
||||
SAL GH(AEIOUY)- K
|
||||
SAL GH _
|
||||
SAL GG9 K
|
||||
SAL G K
|
||||
SAL H H
|
||||
SAL IH(AEIOUY)-^ *H
|
||||
SAL IR(AEIOUY)-^ *R
|
||||
SAL I(HR)^ *
|
||||
SAL I^ *
|
||||
SAL ING6 N
|
||||
SAL IH(AEIOUY)- H
|
||||
SAL IR(AEIOUY)- R
|
||||
SAL I(HR) _
|
||||
SAL J K
|
||||
SAL KN^ N
|
||||
SAL KK- _
|
||||
SAL K K
|
||||
SAL LAUGH^ LF
|
||||
SAL LL- _
|
||||
SAL L L
|
||||
SAL MB$ M
|
||||
SAL MM M
|
||||
SAL M M
|
||||
SAL NN- _
|
||||
SAL N N
|
||||
SAL OH(AEIOUY)-^ *H
|
||||
SAL OR(AEIOUY)-^ *R
|
||||
SAL O(HR)^ *
|
||||
SAL O^ *
|
||||
SAL OH(AEIOUY)- H
|
||||
SAL OR(AEIOUY)- R
|
||||
SAL O(HR) _
|
||||
SAL PH F
|
||||
SAL PN^ N
|
||||
SAL PP- _
|
||||
SAL P P
|
||||
SAL Q K
|
||||
SAL RH^ R
|
||||
SAL ROUGH^ RF
|
||||
SAL RR- _
|
||||
SAL R R
|
||||
SAL SCH(EOU)- SK
|
||||
SAL SC(IEY)- S
|
||||
SAL SH X
|
||||
SAL SI(AO)- X
|
||||
SAL SS- _
|
||||
SAL S S
|
||||
SAL TI(AO)- X
|
||||
SAL TH @
|
||||
SAL TCH-- _
|
||||
SAL TOUGH^ TF
|
||||
SAL TT- _
|
||||
SAL T T
|
||||
SAL UH(AEIOUY)-^ *H
|
||||
SAL UR(AEIOUY)-^ *R
|
||||
SAL U(HR)^ *
|
||||
SAL U^ *
|
||||
SAL UH(AEIOUY)- H
|
||||
SAL UR(AEIOUY)- R
|
||||
SAL U(HR) _
|
||||
SAL V^ W
|
||||
SAL V F
|
||||
SAL WR^ R
|
||||
SAL WH^ W
|
||||
SAL W(AEIOU)- W
|
||||
SAL X^ S
|
||||
SAL X KS
|
||||
SAL Y(AEIOU)- Y
|
||||
SAL ZZ- _
|
||||
SAL Z S
|
||||
affend2
|
||||
|
||||
affstart3
|
||||
SET ISO8859-1
|
||||
|
||||
FOL àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
LOW àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
|
||||
UPP ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ
|
||||
|
||||
PFXPOSTPONE
|
||||
|
||||
MIDWORD '-
|
||||
|
||||
KEP =
|
||||
RAR ?
|
||||
BAD !
|
||||
|
||||
NOSPLITSUGS
|
||||
|
||||
PFX I N 1
|
||||
PFX I 0 in .
|
||||
|
||||
PFX O Y 1
|
||||
PFX O 0 out .
|
||||
|
||||
SFX S Y 2
|
||||
SFX S 0 s [^s]
|
||||
SFX S 0 es s
|
||||
|
||||
SFX N N 3
|
||||
SFX N 0 en [^n]
|
||||
SFX N 0 nen n
|
||||
SFX N 0 n .
|
||||
|
||||
REP 3
|
||||
REP g ch
|
||||
REP ch g
|
||||
REP svp s.v.p.
|
||||
|
||||
MAP 9
|
||||
MAP aàáâãäå
|
||||
MAP eèéêë
|
||||
MAP iìíîï
|
||||
MAP oòóôõö
|
||||
MAP uùúûü
|
||||
MAP nñ
|
||||
MAP cç
|
||||
MAP yÿý
|
||||
MAP sß
|
||||
affend3
|
||||
|
||||
dicstart
|
||||
123456
|
||||
test/NO
|
||||
# comment
|
||||
wrong
|
||||
Comment
|
||||
OK
|
||||
uk
|
||||
put/ISO
|
||||
the end
|
||||
deol
|
||||
déôr
|
||||
dicend
|
||||
|
||||
addstart
|
||||
/regions=usgbnz
|
||||
elequint/2
|
||||
elekwint/3
|
||||
addend
|
||||
|
||||
test1:
|
||||
inputs wrong
|
||||
comment wrong
|
||||
puts OK
|
||||
ok wrong
|
||||
Ok wrong
|
||||
the end. test wrong
|
||||
déôl
|
||||
|
||||
test2:
|
||||
elequint test elekwint test elekwent asdf
|
||||
|
||||
|
||||
test output:
|
74
src/testdir/test59.ok
Normal file
74
src/testdir/test59.ok
Normal file
@ -0,0 +1,74 @@
|
||||
test output:
|
||||
inputs
|
||||
['input', 'puts', 'outputs', 'put']
|
||||
comment
|
||||
['Comment']
|
||||
ok
|
||||
['OK', 'uk']
|
||||
Ok
|
||||
['OK', 'Uk']
|
||||
test
|
||||
['test', 'Test']
|
||||
déôl
|
||||
['deol', 'déôr']
|
||||
# file: Xtest.utf-8.spl
|
||||
Comment
|
||||
deol
|
||||
déôr
|
||||
input
|
||||
OK
|
||||
output
|
||||
outputs
|
||||
outtest
|
||||
put
|
||||
puts
|
||||
test
|
||||
testen
|
||||
testn
|
||||
the end
|
||||
uk
|
||||
wrong
|
||||
gebletegek
|
||||
kepereneven
|
||||
everles gesvets etele
|
||||
kbltykk
|
||||
kprnfn
|
||||
*fls kswts tl
|
||||
elekwent
|
||||
elequint
|
||||
elekwint
|
||||
elekwint
|
||||
elekwent
|
||||
elequint
|
||||
elekwent
|
||||
elequint
|
||||
elekwint
|
||||
# file: Xtest.utf-8.spl
|
||||
Comment
|
||||
deol
|
||||
déôr
|
||||
OK
|
||||
put
|
||||
input
|
||||
output
|
||||
puts
|
||||
outputs
|
||||
test
|
||||
outtest
|
||||
testen
|
||||
testn
|
||||
the end
|
||||
uk
|
||||
wrong
|
||||
inputs
|
||||
['input', 'puts', 'put', 'outputs']
|
||||
comment
|
||||
['Comment']
|
||||
ok
|
||||
['OK', 'uk']
|
||||
Ok
|
||||
['OK', 'Uk']
|
||||
test
|
||||
['test', 'Test']
|
||||
déôl
|
||||
['deol', 'déôr']
|
@ -36,5 +36,5 @@
|
||||
#define VIM_VERSION_NODOT "vim70aa"
|
||||
#define VIM_VERSION_SHORT "7.0aa"
|
||||
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
|
||||
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 4)"
|
||||
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 4, compiled "
|
||||
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 5)"
|
||||
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 5, compiled "
|
||||
|
Loading…
x
Reference in New Issue
Block a user