Bram Moolenaar 0d878b95d8 Update runtime files 2 gadi atpakaļ
..
af a3227e2b15 updated for version 7.0218 18 gadi atpakaļ
am f25fd51b89 updated for version 7.0152 19 gadi atpakaļ
bg 00a927d62b Updated runtime files. 14 gadi atpakaļ
br ca63501fbc Update various runtime files. 9 gadi atpakaļ
ca 00a927d62b Updated runtime files. 14 gadi atpakaļ
check c0880db674 Add a few missing runtime files. 15 gadi atpakaļ
cs 5b8d8fdb52 updated for version 7.0131 19 gadi atpakaļ
cy 00a927d62b Updated runtime files. 14 gadi atpakaļ
da 9964e468c0 updated for version 7.1a 17 gadi atpakaļ
de 5477506a9f Update runtime files. 5 gadi atpakaļ
el 69e0ff94dc updated for version 7.0152 19 gadi atpakaļ
en 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
eo 00a927d62b Updated runtime files. 14 gadi atpakaļ
es 00a927d62b Updated runtime files. 14 gadi atpakaļ
eu acc2240640 Update runtime files 4 gadi atpakaļ
fo f4cd3e8074 updated for version 7.0175 19 gadi atpakaļ
fr 9c754c4542 Update spell files for Ubuntu locale names. 14 gadi atpakaļ
ga 6be7f8733f Update runtime files. 13 gadi atpakaļ
gd 6be7f8733f Update runtime files. 13 gadi atpakaļ
gl f4cd3e8074 updated for version 7.0175 19 gadi atpakaļ
he 5b8d8fdb52 updated for version 7.0131 19 gadi atpakaļ
hr e344bead3e updated for version 7.0140 19 gadi atpakaļ
hu 30b6581799 Updated runtime files. 12 gadi atpakaļ
id e344bead3e updated for version 7.0140 19 gadi atpakaļ
it a3227e2b15 updated for version 7.0218 18 gadi atpakaļ
ku 00a927d62b Updated runtime files. 14 gadi atpakaļ
la 9c754c4542 Update spell files for Ubuntu locale names. 14 gadi atpakaļ
lt e344bead3e updated for version 7.0140 19 gadi atpakaļ
lv 00a927d62b Updated runtime files. 14 gadi atpakaļ
mg e344bead3e updated for version 7.0140 19 gadi atpakaļ
mi 18144c8423 updated for version 7.0d02 18 gadi atpakaļ
ms 00a927d62b Updated runtime files. 14 gadi atpakaļ
nb 9c754c4542 Update spell files for Ubuntu locale names. 14 gadi atpakaļ
nl 83687a7215 NL spelling: remove REP items to avoid lots of suggestions with dots. 14 gadi atpakaļ
nn 9c754c4542 Update spell files for Ubuntu locale names. 14 gadi atpakaļ
ny 50c8195012 updated for version 7.0133 19 gadi atpakaļ
pl 9964e468c0 updated for version 7.1a 17 gadi atpakaļ
pt 91359014b3 Update runtime files. 5 gadi atpakaļ
ro 91e15e13da Updated runtime files. 10 gadi atpakaļ
ru f75a963eea updated for version 7.0146 19 gadi atpakaļ
rw e344bead3e updated for version 7.0140 19 gadi atpakaļ
sk 5b8d8fdb52 updated for version 7.0131 19 gadi atpakaļ
sl e344bead3e updated for version 7.0140 19 gadi atpakaļ
sr 0d878b95d8 Update runtime files 2 gadi atpakaļ
sv 6be7f8733f Update runtime files. 13 gadi atpakaļ
sw e344bead3e updated for version 7.0140 19 gadi atpakaļ
tet 53f7fccc94 Update runtime files 3 gadi atpakaļ
th 81f1ecbc4d updated for version 7.0137 19 gadi atpakaļ
tl f4cd3e8074 updated for version 7.0175 19 gadi atpakaļ
tn e344bead3e updated for version 7.0140 19 gadi atpakaļ
tr 5ef1c6a483 Update runtime files 5 gadi atpakaļ
uk e344bead3e updated for version 7.0140 19 gadi atpakaļ
yi a3227e2b15 updated for version 7.0218 18 gadi atpakaļ
zu e344bead3e updated for version 7.0140 19 gadi atpakaļ
README.txt 2a953fcf10 Updated runtime files. 5 gadi atpakaļ
README_en.txt 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
check_locales.vim 9c754c4542 Update spell files for Ubuntu locale names. 14 gadi atpakaļ
cleanadd.vim a7241f5f19 updated for version 7.2a 16 gadi atpakaļ
en.ascii.spl 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
en.ascii.sug 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
en.latin1.spl 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
en.latin1.sug 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
en.utf-8.spl 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
en.utf-8.sug 4d1c0a4441 Update to newer English spell files, 9 gadi atpakaļ
fixdup.vim 2a953fcf10 Updated runtime files. 5 gadi atpakaļ
he.vim 90915b5d48 updated for version 7.0133 19 gadi atpakaļ
main.aap a57b553b43 Update runtime files 2 gadi atpakaļ
spell.vim 30b6581799 Updated runtime files. 12 gadi atpakaļ
yi.vim cee5560a4b updated for version 7.0133 19 gadi atpakaļ

README.txt

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 github 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 (http://www.a-a-p.org/download.html)

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:
https://github.com/LibreOffice/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 spell files and make updated patches. Words that haven't been
added/removed from the LibreOffice 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 LibreOffice 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. Include needed parts from the aspell phonetic dictionary to the aff files. For
example add the relevant SAL lines to the .aff file (this is needed to make good
suggestions). The aspell dictionaries can be found here:
https://ftp.gnu.org/gnu/aspell/dict/0index.html

4. 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).

5. 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.

6. Repeat step 5. 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.