summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-04-23 20:52:00 +0000
committerBram Moolenaar <Bram@vim.org>2005-04-23 20:52:00 +0000
commit0cb032ecb8b03d9c387b89c9f26158924f216e67 (patch)
tree90fae818982fa882007e8c077c30c61a08bfeb38 /runtime
parent8fcc0f71a13eaecabb1314e5dc48fe937dd122b0 (diff)
downloadvim-git-0cb032ecb8b03d9c387b89c9f26158924f216e67.tar.gz
updated for version 7.0070
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt11
-rw-r--r--runtime/doc/spell.txt50
-rw-r--r--runtime/doc/tags6
-rw-r--r--runtime/lang/menu_sv_se.latin1.vim18
-rw-r--r--runtime/spell/en.latin1.splbin1103511 -> 1103766 bytes
5 files changed, 68 insertions, 17 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index a0e446fcb..d9020a741 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -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
@@ -338,6 +338,10 @@ Functions that are useful with a List: >
:let s = string(list) " String representation of list
: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 ~
*Dictionaries* *Dictionary*
@@ -3719,7 +3723,10 @@ split({expr} [, {pattern}]) *split()*
it makes the function work a bit faster.
To split a string in individual characters: >
: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()*
diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt
index 0f359a4c0..906e5cc98 100644
--- a/runtime/doc/spell.txt
+++ b/runtime/doc/spell.txt
@@ -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
@@ -160,16 +160,19 @@ procedure is recommended:
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.
3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing
- words, etc.
-4. Use |:mkspell| to generate the Vim spell file and try it out.
+ words, define word characters with FOL/LOW/UPP, etc. The distributed
+ "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:
-5. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic.
-6. Use Vimdiff to see what changed: >
+1. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic.
+2. Use Vimdiff to see what changed: >
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.
-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*
@@ -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
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:
diff --git a/runtime/doc/tags b/runtime/doc/tags
index f9c52519e..d86423aba 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -3697,6 +3697,9 @@ E758 spell.txt /*E758*
E759 spell.txt /*E759*
E76 pattern.txt /*E76*
E760 spell.txt /*E760*
+E761 spell.txt /*E761*
+E762 spell.txt /*E762*
+E763 spell.txt /*E763*
E77 message.txt /*E77*
E78 motion.txt /*E78*
E79 message.txt /*E79*
@@ -4218,6 +4221,7 @@ blockwise-operators visual.txt /*blockwise-operators*
blockwise-register change.txt /*blockwise-register*
blockwise-visual visual.txt /*blockwise-visual*
book intro.txt /*book*
+bookmark usr_03.txt /*bookmark*
boolean options.txt /*boolean*
break-finally eval.txt /*break-finally*
browse() eval.txt /*browse()*
@@ -5113,7 +5117,6 @@ 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*
@@ -6230,6 +6233,7 @@ spec_chglog_release_info pi_spec.txt /*spec_chglog_release_info*
special-buffers windows.txt /*special-buffers*
speed-up tips.txt /*speed-up*
spell spell.txt /*spell*
+spell-affix-chars spell.txt /*spell-affix-chars*
spell-affix-mbyte spell.txt /*spell-affix-mbyte*
spell-affix-vim spell.txt /*spell-affix-vim*
spell-file-format spell.txt /*spell-file-format*
diff --git a/runtime/lang/menu_sv_se.latin1.vim b/runtime/lang/menu_sv_se.latin1.vim
index abeb562a2..e436d948c 100644
--- a/runtime/lang/menu_sv_se.latin1.vim
+++ b/runtime/lang/menu_sv_se.latin1.vim
@@ -1,6 +1,6 @@
" Menu Translations: Swedish
-" Maintainer: Johan Svedberg <johan@svedberg.pp.se>
-" Last Change: 2004 May 16
+" Maintainer: Johan Svedberg <johan@svedberg.com>
+" Last Change: 2005 April 23
" Quit when menu translations have already been done.
if exists("did_menu_trans")
@@ -17,12 +17,13 @@ endif
" Help menu
menutrans &Help &Hjälp
menutrans &Overview<Tab><F1> &Översikt<Tab><F1>
-menutrans &How-to\ links &Hur-göra-länkar
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 Co&pying &Kopieringsrättigheter
-menutrans &Find\.\.\. &Sök\.\.\.
+menutrans &Sponsor/Register &Sponsra/Registrering
+menutrans O&rphans F&örälderlösa
menutrans &Version &Version
menutrans &About &Om
@@ -50,7 +51,7 @@ menutrans &Copy<Tab>"+y &Kopiera<Tab>"+y
menutrans &Paste<Tab>"+gP Klistra &in<Tab>"+gP
menutrans Put\ &Before<Tab>[p Sätt\ in\ &före<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<Tab>/ &Sök<Tab>/
menutrans Find\ and\ Rep&lace\.\.\. Sök\ och\ ersätt\.\.\.
@@ -75,6 +76,7 @@ menutrans Insert\ mode Infogningsläge
menutrans Block\ and\ Insert Block\ och\ infogning
menutrans Always Alltid
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 Ta&g\ Files\.\.\. Taggfiler\.\.\.
menutrans Toggle\ &Toolbar Växla\ verktygsrad
@@ -91,6 +93,8 @@ menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! Växla\ radbrytning\ vid\ ord<ta
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\ &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 &File\ Format\.\.\. Filformat\.\.\.
@@ -123,7 +127,7 @@ menutrans &Close\ all\ folds<Tab>zM Stäng\ alla\ veck<Tab>zM
menutrans O&pen\ more\ 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 M&anual Manual
+menutrans M&anual Manuell
menutrans I&ndent Indentering
menutrans E&xpression Uttryck
menutrans S&yntax Syntax
diff --git a/runtime/spell/en.latin1.spl b/runtime/spell/en.latin1.spl
index d9640c73b..78de0c617 100644
--- a/runtime/spell/en.latin1.spl
+++ b/runtime/spell/en.latin1.spl
Binary files differ