Skip to content

Commit

Permalink
updated for version 7.0070
Browse files Browse the repository at this point in the history
  • Loading branch information
vimboss committed Apr 23, 2005
1 parent d03bcf7 commit 9a96e05
Show file tree
Hide file tree
Showing 20 changed files with 3,091 additions and 92 deletions.
2 changes: 2 additions & 0 deletions Filelist
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ SRC_ALL2 = \
src/proto/undo.pro \ src/proto/undo.pro \
src/proto/version.pro \ src/proto/version.pro \
src/proto/window.pro \ src/proto/window.pro \
src/spell/*.diff \
src/spell/Makefile \




# source files for Unix only # source files for Unix only
Expand Down
11 changes: 9 additions & 2 deletions runtime/doc/eval.txt
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.0aa. Last change: 2005 Apr 04 *eval.txt* For Vim version 7.0aa. Last change: 2005 Apr 22




VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -338,6 +338,10 @@ Functions that are useful with a List: >
:let s = string(list) " String representation of list :let s = string(list) " String representation of list
:call map(list, '">> " . v:val') " prepend ">> " to each item :call map(list, '">> " . v:val') " prepend ">> " to each item
Don't forget that a combination of features can make things simple. For
example, to add up all the numbers in a list: >
:exe 'let sum = ' . join(nrlist, '+')
1.4 Dictionaries ~ 1.4 Dictionaries ~
*Dictionaries* *Dictionary* *Dictionaries* *Dictionary*
Expand Down Expand Up @@ -3719,7 +3723,10 @@ split({expr} [, {pattern}]) *split()*
it makes the function work a bit faster. it makes the function work a bit faster.
To split a string in individual characters: > To split a string in individual characters: >
:for c in split(mystring, '\zs') :for c in split(mystring, '\zs')
< The opposite function is |join()|. < If you want to keep the separator you can also use '\zs': >
:echo split('abc:def:ghi', ':\zs')
< ['abc:', 'def:', 'ghi'] ~
The opposite function is |join()|.




strftime({format} [, {time}]) *strftime()* strftime({format} [, {time}]) *strftime()*
Expand Down
50 changes: 43 additions & 7 deletions runtime/doc/spell.txt
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
*spell.txt* For Vim version 7.0aa. Last change: 2005 Apr 20 *spell.txt* For Vim version 7.0aa. Last change: 2005 Apr 23




VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -160,16 +160,19 @@ procedure is recommended:
1. Obtain the xx_YY.aff and xx_YY.dic files from Myspell. 1. Obtain the xx_YY.aff and xx_YY.dic files from Myspell.
2. Make a copy of these files to xx_YY.orig.aff and xx_YY.orig.dic. 2. Make a copy of these files to xx_YY.orig.aff and xx_YY.orig.dic.
3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing 3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing
words, etc. words, define word characters with FOL/LOW/UPP, etc. The distributed
4. Use |:mkspell| to generate the Vim spell file and try it out. "src/spell/*.diff" files can be used.
4. Set 'encoding' to the desired encoding and use |:mkspell| to generate the
Vim spell file.
5. Try out the spell file with ":set spell spelllang=xx_YY".


When the Myspell files are updated you can merge the differences: When the Myspell files are updated you can merge the differences:
5. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic. 1. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic.
6. Use Vimdiff to see what changed: > 2. Use Vimdiff to see what changed: >
vimdiff xx_YY.orig.dic xx_YY.new.dic vimdiff xx_YY.orig.dic xx_YY.new.dic
7. Take over the changes you like in xx_YY.dic. 3. Take over the changes you like in xx_YY.dic.
You may also need to change xx_YY.aff. You may also need to change xx_YY.aff.
8. Rename xx_YY.new.dic to xx_YY.orig.dic and xx_YY.new.aff to xx_YY.new.aff. 4. Rename xx_YY.new.dic to xx_YY.orig.dic and xx_YY.new.aff to xx_YY.new.aff.


============================================================================== ==============================================================================
9. Spell file format *spell-file-format* 9. Spell file format *spell-file-format*
Expand Down Expand Up @@ -272,5 +275,38 @@ Performance hint: Although using affixes reduces the number of words, it
reduces the speed. It's a good idea to put all the often used words in the reduces the speed. It's a good idea to put all the often used words in the
word list with the affixes prepended/appended. word list with the affixes prepended/appended.


*spell-affix-chars*
The affix file should define the word characters when using an 8-bit encoding
(as specified with ENC). This is because the system where ":mkspell" is used
may not support a locale with this encoding and isalpha() won't work. For
example when using "cp1250" on Unix.

*E761* *E762*
Three lines in the affix file are needed. Simplistic example:

FOL áëñáëñ
LOW áëñáëñ
UPP áëñÁËÑ

All three lines must have exactly the same number of characters.

The "FOL" line specifies the case-folded characters. These are used to
compare words while ignoring case. For most encodings this is identical to
the lower case line.

The "LOW" line specifies the characters in lower-case. Mostly it's equal to
the "FOL" line.

The "UPP" line specifies the characters with upper-case. That is, a character
is upper-case where it's different from the character at the same position in
"FOL".

ASCII characters should be omitted, Vim always handles these in the same way.
When the encoding is UTF-8 no word characters need to be specified.

*E763*
All spell files for the same encoding must use the same word characters,
otherwise they can't be combined without errors.



vim:tw=78:sw=4:ts=8:ft=help:norl: vim:tw=78:sw=4:ts=8:ft=help:norl:
6 changes: 5 additions & 1 deletion runtime/doc/tags
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3697,6 +3697,9 @@ E758 spell.txt /*E758*
E759 spell.txt /*E759* E759 spell.txt /*E759*
E76 pattern.txt /*E76* E76 pattern.txt /*E76*
E760 spell.txt /*E760* E760 spell.txt /*E760*
E761 spell.txt /*E761*
E762 spell.txt /*E762*
E763 spell.txt /*E763*
E77 message.txt /*E77* E77 message.txt /*E77*
E78 motion.txt /*E78* E78 motion.txt /*E78*
E79 message.txt /*E79* E79 message.txt /*E79*
Expand Down Expand Up @@ -4218,6 +4221,7 @@ blockwise-operators visual.txt /*blockwise-operators*
blockwise-register change.txt /*blockwise-register* blockwise-register change.txt /*blockwise-register*
blockwise-visual visual.txt /*blockwise-visual* blockwise-visual visual.txt /*blockwise-visual*
book intro.txt /*book* book intro.txt /*book*
bookmark usr_03.txt /*bookmark*
boolean options.txt /*boolean* boolean options.txt /*boolean*
break-finally eval.txt /*break-finally* break-finally eval.txt /*break-finally*
browse() eval.txt /*browse()* browse() eval.txt /*browse()*
Expand Down Expand Up @@ -5113,7 +5117,6 @@ hebrew hebrew.txt /*hebrew*
hebrew.txt hebrew.txt /*hebrew.txt* hebrew.txt hebrew.txt /*hebrew.txt*
help various.txt /*help* help various.txt /*help*
help-context help.txt /*help-context* help-context help.txt /*help-context*
help-tags tags 1
help-translated various.txt /*help-translated* help-translated various.txt /*help-translated*
help-xterm-window various.txt /*help-xterm-window* help-xterm-window various.txt /*help-xterm-window*
help.txt help.txt /*help.txt* help.txt help.txt /*help.txt*
Expand Down Expand Up @@ -6230,6 +6233,7 @@ spec_chglog_release_info pi_spec.txt /*spec_chglog_release_info*
special-buffers windows.txt /*special-buffers* special-buffers windows.txt /*special-buffers*
speed-up tips.txt /*speed-up* speed-up tips.txt /*speed-up*
spell spell.txt /*spell* spell spell.txt /*spell*
spell-affix-chars spell.txt /*spell-affix-chars*
spell-affix-mbyte spell.txt /*spell-affix-mbyte* spell-affix-mbyte spell.txt /*spell-affix-mbyte*
spell-affix-vim spell.txt /*spell-affix-vim* spell-affix-vim spell.txt /*spell-affix-vim*
spell-file-format spell.txt /*spell-file-format* spell-file-format spell.txt /*spell-file-format*
Expand Down
18 changes: 11 additions & 7 deletions runtime/lang/menu_sv_se.latin1.vim
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
" Menu Translations: Swedish " Menu Translations: Swedish
" Maintainer: Johan Svedberg <johan@svedberg.pp.se> " Maintainer: Johan Svedberg <johan@svedberg.com>
" Last Change: 2004 May 16 " Last Change: 2005 April 23


" Quit when menu translations have already been done. " Quit when menu translations have already been done.
if exists("did_menu_trans") if exists("did_menu_trans")
Expand All @@ -17,12 +17,13 @@ endif
" Help menu " Help menu
menutrans &Help &Hjälp menutrans &Help &Hjälp
menutrans &Overview<Tab><F1> &Översikt<Tab><F1> menutrans &Overview<Tab><F1> &Översikt<Tab><F1>
menutrans &How-to\ links &Hur-göra-länkar
menutrans &User\ Manual &Användarmanual menutrans &User\ Manual &Användarmanual
"menutrans &GUI &GUI menutrans &How-to\ links &Hur-göra-länkar
menutrans &Find\.\.\. &Sök\.\.\.
menutrans &Credits &Tack menutrans &Credits &Tack
menutrans Co&pying &Kopieringsrättigheter menutrans Co&pying &Kopieringsrättigheter
menutrans &Find\.\.\. &Sök\.\.\. menutrans &Sponsor/Register &Sponsra/Registrering
menutrans O&rphans F&örälderlösa
menutrans &Version &Version menutrans &Version &Version
menutrans &About &Om menutrans &About &Om


Expand Down Expand Up @@ -50,7 +51,7 @@ menutrans &Copy<Tab>"+y &Kopiera<Tab>"+y
menutrans &Paste<Tab>"+gP Klistra &in<Tab>"+gP menutrans &Paste<Tab>"+gP Klistra &in<Tab>"+gP
menutrans Put\ &Before<Tab>[p Sätt\ in\ &före<Tab>[p menutrans Put\ &Before<Tab>[p Sätt\ in\ &före<Tab>[p
menutrans Put\ &After<Tab>]p Sätt\ in\ &efter<Tab>]p menutrans Put\ &After<Tab>]p Sätt\ in\ &efter<Tab>]p
menutrans &Select\ all<Tab>ggVG &Markera\ allt<Tab>ggVG menutrans &Select\ All<Tab>ggVG &Markera\ allt<Tab>ggVG
menutrans &Find\.\.\. &Sök\.\.\. menutrans &Find\.\.\. &Sök\.\.\.
menutrans &Find<Tab>/ &Sök<Tab>/ menutrans &Find<Tab>/ &Sök<Tab>/
menutrans Find\ and\ Rep&lace\.\.\. Sök\ och\ ersätt\.\.\. menutrans Find\ and\ Rep&lace\.\.\. Sök\ och\ ersätt\.\.\.
Expand All @@ -75,6 +76,7 @@ menutrans Insert\ mode Infogningsl
menutrans Block\ and\ Insert Block\ och\ infogning menutrans Block\ and\ Insert Block\ och\ infogning
menutrans Always Alltid menutrans Always Alltid
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Växla\ infogningsläge<Tab>:set\ im! menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Växla\ infogningsläge<Tab>:set\ im!
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! Växla\ Vi-kompatibelitet<Tab>:set\ cp!
menutrans Search\ &Path\.\.\. Sökväg\.\.\. menutrans Search\ &Path\.\.\. Sökväg\.\.\.
menutrans Ta&g\ Files\.\.\. Taggfiler\.\.\. menutrans Ta&g\ Files\.\.\. Taggfiler\.\.\.
menutrans Toggle\ &Toolbar Växla\ verktygsrad menutrans Toggle\ &Toolbar Växla\ verktygsrad
Expand All @@ -91,6 +93,8 @@ menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! V
menutrans Toggle\ &expand-tab<Tab>:set\ et! Växla\ tab-expandering<Tab>:set\ et! menutrans Toggle\ &expand-tab<Tab>:set\ et! Växla\ tab-expandering<Tab>:set\ et!
menutrans Toggle\ &auto-indent<Tab>:set\ ai! Växla\ auto-indentering<Tab>:set\ ai! menutrans Toggle\ &auto-indent<Tab>:set\ ai! Växla\ auto-indentering<Tab>:set\ ai!
menutrans Toggle\ &C-indenting<Tab>:set\ cin! Växla\ C-indentering<Tab>:set\ cin! menutrans Toggle\ &C-indenting<Tab>:set\ cin! Växla\ C-indentering<Tab>:set\ cin!
menutrans &Shiftwidth &Shiftbredd
menutrans Soft\ &Tabstop Mjuka\ &Tabbstopp
menutrans Te&xt\ Width\.\.\. Textbredd\.\.\. menutrans Te&xt\ Width\.\.\. Textbredd\.\.\.
menutrans &File\ Format\.\.\. Filformat\.\.\. menutrans &File\ Format\.\.\. Filformat\.\.\.


Expand Down Expand Up @@ -123,7 +127,7 @@ menutrans &Close\ all\ folds<Tab>zM St
menutrans O&pen\ more\ folds<Tab>zr Öppna\ mer\ veck<Tab>zr menutrans O&pen\ more\ folds<Tab>zr Öppna\ mer\ veck<Tab>zr
menutrans &Open\ all\ folds<Tab>zR Öppna\ mer\ veck<Tab>zR menutrans &Open\ all\ folds<Tab>zR Öppna\ mer\ veck<Tab>zR
menutrans Fold\ Met&hod Veckmetod menutrans Fold\ Met&hod Veckmetod
menutrans M&anual Manual menutrans M&anual Manuell
menutrans I&ndent Indentering menutrans I&ndent Indentering
menutrans E&xpression Uttryck menutrans E&xpression Uttryck
menutrans S&yntax Syntax menutrans S&yntax Syntax
Expand Down
Binary file modified runtime/spell/en.latin1.spl
Binary file not shown.
9 changes: 6 additions & 3 deletions src/auto/configure
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4629,7 +4629,7 @@ fi
if test "X$vi_cv_path_ruby" != "X"; then if test "X$vi_cv_path_ruby" != "X"; then
echo "$as_me:$LINENO: checking Ruby version" >&5 echo "$as_me:$LINENO: checking Ruby version" >&5
echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
echo "$as_me:$LINENO: result: OK" >&5 echo "$as_me:$LINENO: result: OK" >&5
echo "${ECHO_T}OK" >&6 echo "${ECHO_T}OK" >&6
echo "$as_me:$LINENO: checking Ruby header files" >&5 echo "$as_me:$LINENO: checking Ruby header files" >&5
Expand Down Expand Up @@ -10987,6 +10987,7 @@ fi
for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Expand All @@ -10996,7 +10997,7 @@ for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
libgen.h util/debug.h util/msg18n.h frame.h \ libgen.h util/debug.h util/msg18n.h frame.h \
sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
Expand Down Expand Up @@ -13370,14 +13371,16 @@ fi
for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
memset nanosleep opendir putenv qsort readlink select setenv \ memset nanosleep opendir putenv qsort readlink select setenv \
setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \
strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes strnicmp strpbrk strtol tgetent towlower towupper iswupper \
usleep utime utimes
do do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5 echo "$as_me:$LINENO: checking for $ac_func" >&5
Expand Down
Loading

0 comments on commit 9a96e05

Please sign in to comment.