The spell files included here are in Vim's special format. You can't edit
them. See ":help spell" for more information.
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.
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.
Most of the soundslike mappings come from Aspell ??_phonet.dat files:
ftp://ftp.gnu.org/gnu/aspell/dict/. Most go under the GPL or LGPL copyright.
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.
Before generating spell files, verify your system has the required locale
support. Source the check_locales.vim script to find out. If something is
missing, see LOCALE below.
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). You can use the "fixdup.vim" Vim script to find duplicate words.
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.
LOCALE
For proper spell file generation the required locale must be installed.
Otherwise Vim doesn't know what are letters and upper-lower case differences.
Modern systems use UTF-8, but we also generate spell files for 8-bit locales
for users with older systems.
On Ubuntu the default is to only support locales for your own language. To
add others you need to do this:
sudo vim /var/lib/locales/supported.d/local
Add needed lines from /usr/share/i18n/SUPPORTED
sudo dpkg-reconfigure locales
When using the check_locales.vim script, you need to exit Vim and restart it
to pickup the newly installed locales.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Gvim7.3免安装 免配置版 (1754个子文件)
ccfilter.1 2KB
shtags.1 2KB
_vimrc 999B
_vimrc_一天的学习成果 5KB
mve.awk 507B
vimtutor.bat 2KB
tutor.zh.big5 25KB
tutor.bj 41KB
xcmdsrv_client.c 14KB
ccfilter.c 9KB
calloc_double_matrix.c 1KB
calloc_int_matrix.c 1KB
main.c 498B
blink.c 485B
tutor.ca 27KB
main.cc 503B
ChangeLog 21KB
vim_vs_net.cmd 820B
txtbrowser.cnx 32KB
tutor.pl.cp1250 34KB
tutor.hr.cp1250 34KB
tutor.sk.cp1250 34KB
tutor.hu.cp1250 27KB
tutor.cs.cp1250 26KB
tutor.ru.cp1251 29KB
tutor.el.cp737 30KB
tutor.cs 26KB
README.csupport 8KB
customization.ctags 200B
tutor.de 39KB
logtalk.dict 2KB
iconv.dll 872KB
libintl.dll 68KB
gvimext.dll 14KB
dvorak 3KB
tutor.el 30KB
tutor.eo 35KB
tutor.es 28KB
tutor.ja.euc 33KB
tutor.ko.euc 27KB
tutor.zh.euc 25KB
gvim.exe 1.9MB
cscope.exe 365KB
ctags.exe 308KB
install.exe 89KB
xxd.exe 69KB
diff.exe 67KB
uninstal.exe 57KB
sort.exe 48KB
uninstall-gui.exe 35KB
vimrun.exe 30KB
cscope.files 0B
tutor.fr 39KB
customization.gvimrc 3KB
tutor.hr 34KB
tutor.hu 27KB
tutor.tr.iso9 28KB
tutor.it 36KB
stl_index.list 2KB
c-c++-keywords.list 2KB
k+r.list 1KB
Makefile 7KB
Makefile 2KB
vim.mo 159KB
vim.mo 159KB
vim.mo 155KB
vim.mo 154KB
vim.mo 154KB
vim.mo 152KB
vim.mo 152KB
vim.mo 152KB
vim.mo 152KB
vim.mo 150KB
vim.mo 150KB
vim.mo 148KB
vim.mo 148KB
vim.mo 145KB
vim.mo 141KB
vim.mo 140KB
vim.mo 139KB
vim.mo 139KB
vim.mo 139KB
vim.mo 136KB
vim.mo 132KB
vim.mo 123KB
vim.mo 122KB
vim.mo 119KB
vim.mo 116KB
vim.mo 107KB
vim.mo 104KB
vim.mo 8KB
tutor.nb 35KB
tutor.no 35KB
print_double_array.c.noindent 1KB
print_array.cc.noindent 1KB
print_int_array.c.noindent 1KB
c-hotkeys.pdf 39KB
tutor.pl 34KB
pltags.pl 9KB
efm_perl.pl 4KB
共 1754 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
hust_netstat
- 粉丝: 5
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页