Blame README-ns_ZA.txt

Packit Service a51926
How to use this dictionary framework
Packit Service a51926
====================================
Packit Service a51926
Packit Service a51926
Each dictionary has its own directory using the ISO639 language code.  Eg
Packit Service a51926
Afrikaans uses af.  In each directory is an aspell, myspell and in some cases
Packit Service a51926
an ispell directory - these contain the speller specific information.
Packit Service a51926
Packit Service a51926
Files and directories
Packit Service a51926
---------------------
Packit Service a51926
Packit Service a51926
|-- Makefile
Packit Service a51926
|-- af
Packit Service a51926
|   |-- COPYING
Packit Service a51926
|   |-- CREDITS
Packit Service a51926
|   |-- ChangeLog
Packit Service a51926
|   |-- INSTALL
Packit Service a51926
|   |-- Makefile
Packit Service a51926
|   |-- README
Packit Service a51926
|   |-- VERSION
Packit Service a51926
|   |-- aspell
Packit Service a51926
|   |   |-- Copyright
Packit Service a51926
|   |   |-- info.in
Packit Service a51926
|   |-- ispell
Packit Service a51926
|   |   |-- README
Packit Service a51926
|   |   `-- afrikaans.aff
Packit Service a51926
|   |-- myspell
Packit Service a51926
|   |   |-- README_af_ZA.txt
Packit Service a51926
|   |   |-- af_ZA.aff
Packit Service a51926
|   |-- wordlists
Packit Service a51926
|   |   |-- wordlist.nieuwoudt.in
Packit Service a51926
Packit Service a51926
Prerequisites
Packit Service a51926
============
Packit Service a51926
aspell - needs prezip-bin (since 0.60, was word-list-compress for 0.50), 
Packit Service a51926
which is contained in the aspell package for your system. Other tools 
Packit Service a51926
needed to package and build are located in the utils directory
Packit Service a51926
Packit Service a51926
myspell - the tools needed are in the utils directory
Packit Service a51926
Packit Service a51926
Packit Service a51926
Required Files
Packit Service a51926
==============
Packit Service a51926
Packit Service a51926
ispell
Packit Service a51926
------
Packit Service a51926
The framework can build ispell but it is disabled by default because we are not
Packit Service a51926
completely sure how to build ispell dictionaries.
Packit Service a51926
Packit Service a51926
aspell
Packit Service a51926
------
Packit Service a51926
Copyright - details of the copyright holders etc.  The actual copyright text
Packit Service a51926
is added based on a line in the info.in file.
Packit Service a51926
info.in - some basic definitions for the aspell package including copyright
Packit Service a51926
holders, license, language name etc.
Packit Service a51926
lang.dat - the language data file, used along with info.in.
Packit Service a51926
What can be problematic in the language data file is the "special" line:
Packit Service a51926
	special ' **- - -*- 4 -*- 6 -*-
Packit Service a51926
It is simple to understand.  The above says ' (apostrophe) is permissible at the
Packit Service a51926
beginning of a word and the middle. - (dash) is allowed in the middle of a
Packit Service a51926
word, etc
Packit Service a51926
Check the Afrikaans one for a good understanding of its construction.  If 
Packit Service a51926
you need more details then look at the README instructions in the latest 
Packit Service a51926
aspell dictionary build system (the aspell-lang package):
Packit Service a51926
	ftp://ftp.gnu.org/gnu/aspell/aspell-lang-20071024.tar.bz2
Packit Service a51926
Packit Service a51926
myspell
Packit Service a51926
-------
Packit Service a51926
README_lang_REGION.txt - a README containing Copyright info and installation
Packit Service a51926
instructions.
Packit Service a51926
lang_REGION.aff - the affix file.  Mostly these are based on ispell affix
Packit Service a51926
compression.  Follow the instructions ?here? for converting an ispell affix file
Packit Service a51926
to myspell.  An affix file allows you to compress a wordlist and expand it to
Packit Service a51926
the exact same set of words.  If you have not developed affix rules for the
Packit Service a51926
language then the minimum you need is a SET and TRY line.
Packit Service a51926
Packit Service a51926
SET - the character set used by the language.  Only ISO8859 character sets can
Packit Service a51926
be used in MySpell.  Although I think you can define your own internal mapping
Packit Service a51926
if your language does not match an ISO charset. (Need to confirm this)
Packit Service a51926
TRY - a list of letters in order of frequency.  The python script 
Packit Service a51926
src/wordlist/letter-frequency.py allows you to create a frequency list.
Packit Service a51926
Packit Service a51926
Other useful entries:
Packit Service a51926
MAP - map similar characters eg eêë
Packit Service a51926
REP - create REPlacement maps that are useful for mapping common spelling
Packit Service a51926
mistakes. eg REP ph f - as in phone.
Packit Service a51926
Packit Service a51926
Affix compression:
Packit Service a51926
SFX - a suffix
Packit Service a51926
PFX - a prefix
Packit Service a51926
FIXME add more details on creating these.
Packit Service a51926
Packit Service a51926
Setting up a new language
Packit Service a51926
-------------------------
Packit Service a51926
Apart from input files required by each of the different spellcheckers, as
Packit Service a51926
listed above, the main requirements are a wordlist and some definitions in the
Packit Service a51926
language Makefile.
Packit Service a51926
Packit Service a51926
The wordlist is simply a text list of words one per line - currently we store these in UTF-8 to
Packit Service a51926
ensure ease of use in the future.  Lines that start with a # are treated as
Packit Service a51926
comments and removed when the wordlist is processed.  The wordlists can be
Packit Service a51926
called anything although we name them wordlist.*.in.  But as you list them in
Packit Service a51926
the Makefile you can name them as you please.  We have kept existing wordlists
Packit Service a51926
in tact and used separate files for new additions.  In English we have grouped
Packit Service a51926
similar concepts together eg. bird names, city names, etc.  Some languages
Packit Service a51926
group words according to parts of speech which may aid later use with advances
Packit Service a51926
in grammar checkers or in agglutinative languages that may have rules as to how
Packit Service a51926
words may be joined together.
Packit Service a51926
Packit Service a51926
The Makefile calls the generic Makefile called utils/Makefile.language.  The
Packit Service a51926
language Makefile contains a number of definitions such as the name of the
Packit Service a51926
language its character set, etc.  If you need to understand some of the build
Packit Service a51926
process steps then look at the generic Makefile.
Packit Service a51926
Packit Service a51926
Add a VERSION file.  We default to using the date as spellcheckers are really
Packit Service a51926
enhancements and refinements of wordlists, so a newer date should always
Packit Service a51926
indicate a better spellchecker.
Packit Service a51926
Packit Service a51926
Also add you language to the Makefile in the dict/ directory.  Both as a build
Packit Service a51926
rule and as a TARGET.
Packit Service a51926
Packit Service a51926
Packit Service a51926
Building
Packit Service a51926
--------
Packit Service a51926
Packit Service a51926
make - generate all dictionaries for that language
Packit Service a51926
make count - will return simple stats on your wordlist
Packit Service a51926
make aspell - create the aspell dictionary (relatively quick)
Packit Service a51926
make myspell - create a myspell dictionary (looooong)
Packit Service a51926
make clean - cleans up all packaged files
Packit Service a51926
Packit Service a51926
Outputs
Packit Service a51926
-------
Packit Service a51926
All outputs are placed in the respective spellchecker directories.
Packit Service a51926
Packit Service a51926
aspell - creates a tarball that would be compiled and installed on the target platform
Packit Service a51926
Packit Service a51926
myspell - creates a few outputs.  
Packit Service a51926
	lang_REGION.zip - the basic MySpell spellchecker usable in OpenOffice.org
Packit Service a51926
	pack-lang_REGION.xip - as above but installable by the offline installer
Packit Service a51926
	lang-REGION.xpi - the same as lang_REGION.zip but installable in Mozilla
Packit Service a51926
Packit Service a51926
Resources - South African
Packit Service a51926
-------------------------
Packit Service a51926
Packit Service a51926
Common Names of fish - http://www.fishbase.org/search.cfm
Packit Service a51926
Birds - 
Packit Service a51926
	Robert's Birds list - http://web.uct.ac.za/depts/fitzpatrick/docs/listintro.html
Packit Service a51926
	http://www.wildlifesafari.info/south_african_birds.htm
Packit Service a51926
	http://www.wildlifesafari.info/southern_africa_bird_checklist.htm
Packit Service a51926
Trees - http://www.wildlifesafari.info/southern_africa_tree_list.html
Packit Service a51926
Endangered species -
Packit Service a51926
http://www.unep-wcmc.org/index.html?http://sea.unep-wcmc.org/isdb/CITES/Taxonomy/?displaylanguage=eng~main
Packit Service a51926
http://www.e-gnu.com/check_005.html
Packit Service a51926
http://www.e-gnu.com/check_003.html
Packit Service a51926
http://www.e-gnu.com/check_004.html
Packit Service a51926
Listed companies:
Packit Service a51926
http://www.jse.co.za/listed/companies/la.html
Packit Service a51926
Names Changes:
Packit Service a51926
http://africanhistory.about.com/cs/southafrica/a/sa_new_name.htm
Packit Service a51926
www.sapo.co.za - get downloadable postal codes for names of towns and suburbs