From Fedora Project Wiki
No edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 63: Line 63:
# Make vim use hunspell - [https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777 rhbz#219777]  '''patch available''', not necessary if vim continues to not use any spell-checking, but preferred over introducing built-in vim spellchecker which has yet another format which hunspell dicts are converted to for use
# Make vim use hunspell - [https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777 rhbz#219777]  '''patch available''', not necessary if vim continues to not use any spell-checking, but preferred over introducing built-in vim spellchecker which has yet another format which hunspell dicts are converted to for use


== Dictionaries ==
== Dictionaries ==  


1. Language Support Matrix (glibc upwards)
See table at [[OpenOffice.org/LinguisticComponents]]
 
{| border="1"
|-
| '''Language Code'''  || '''Language'''    || '''aspell'''    || '''hunspell''' || '''notes'''
|-
| aa || Afar        ||  || || [http://www.afarfriends.org/lang_eng.htm afarfriends.org] hosted [http://www.afarfriends.org/Dok%20t%20websida/Afar_lang/Afaraf%20&%20its%20dictionary%20preparation.pdf ALSEC report].
|-
| af || Afrikaans    || aspell-af || hunspell-af ||
|-
| am || Amharic      ||  || [http://wiki.services.openoffice.org/wiki/Dictionaries#Amharic_.28Ethiopia.29 available] || And one for [http://www.cs.ru.nl/~biniam/geez/install.php non-commercial use]
|-
| an || Aragonese    ||  || || [http://www.iea.es/ www.iea.es], see [http://www.cs.brandeis.edu/~roser/pubs/ell2_05.pdf Spain: Lexicography In Iberian Languages]
 
|-
| ar || Arabic      || aspell-ar || hunspell-ar ||
|-
| as || Assamese    ||  || || [http://www.xobdo.net/ www.xobdo.net]
|-
| ast || Asturian    ||  || || [http://www.academiadelallingua.com/diccionariu/index.php www.academiadelallingua.com], see [http://www.cs.brandeis.edu/~roser/pubs/ell2_05.pdf Spain: Lexicography In Iberian Languages]
|-
| az || Azeri (Latin) ||          || hunspell-az ||
|-
| be || Belarusian  ||          || hunspell-be ||
|-
| ber || Amazigh (Tifinagh) ||    || hunspell-ber ||
|-
| ber || Amazigh (Latin)    ||  ||  ||
|-
| bg || Bulgarian    || aspell-bg || hunspell-bg ||
|-
| bn || Bengali      || aspell-bn || hunspell-bn ||
|-
| bo || Tibetan      ||  || || [http://bo.openoffice.org/ bo.openoffice.org]. Latest language support [http://marketing.openoffice.org/ooocon2007/programme/friday_90.pdf update].
|-
| br || Breton      || aspell-br || hunspell-br ||
|-
| bs || Bosnian      ||  || || From a pure spelling-dictionary point of view, would there be differences from hunspell-hr ?
|-
| byn || Blin        ||  || || [http://www.lingref.com/cpp/acal/36/paper1411.pdf Blin Orthography: A History and an Assessment]
|-
| ca || Catalan      || aspell-ca || hunspell-ca ||
|-
| crh || Crimean Tatar    ||  || || [http://korpus.juls.savba.sk/QIRIM/#about-the-corpus corpus]
|-
| cs || Czech        || aspell-cs || hunspell-cs ||
|-
| csb || Kashubian  ||          || hunspell-csb ||
|-
| cy || Welsh        || aspell-cy || hunspell-cy ||
|-
| da || Danish      || aspell-da || hunspell-da ||
|-
| de || German      || aspell-de || hunspell-de ||
|-
| dz || Dzongkha    ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| el || Greek        || aspell-el || hunspell-el ||
|-
| en || English      || aspell-en || hunspell-en ||
|-
| es || Spanish      || aspell-es || hunspell-es ||
|-
| et || Estonian    ||          || hunspell-ee ||
|-
| eu || Basque      ||          || hunspell-eu ||
|-
| fa || Farsi        ||          || hunspell-fa ||
|-
| fi || Finnish      ||  || || Finnish Community has a parallel [http://voikko.sourceforge.net/ Voikko] solution. With an enchant backend, an OpenOffice.org extension, and a Firefox extension.
|-
| fil || Filipino    ||  || hunspell-tl || Filipino is effectively an official Tagalog-based language
|-
| fo || Faeroese    || aspell-fo || hunspell-fo ||
|-
| fr || French      || aspell-fr || hunspell-fr ||
|-
| fur || Friulian    ||          || hunspell-fur ||
|-
| fy || Frisian      ||          || hunspell-fy ||
|-
| ga || Irish        || aspell-ga || hunspell-ga ||
|-
| gd || Scots Gaelic || aspell-gd || hunspell-gd ||
|-
| gez || Ge'ez      ||  || || [http://addistribune.ethiopiaonline.net/ Ge'ez Frontier Foundation]
|-
| gl || Galician    || aspell-gl || hunspell-gl ||
|-
| gu || Gujarati    || aspell-gu || hunspell-gu ||
|-
| gv || Manx        ||  || [http://borel.slu.edu/crubadan/apps.html convertable] ||
|-
| ha || Hausa        ||  || || [http://www.mail-archive.com/dev@lingucomponent.openoffice.org/msg01207.html crubadan possible wordlist], [http://www.dictionary.kasahorow.com/en/all/ha www.dictionary.kasahorow.com]
|-
| he || Hebrew      || aspell-he || hunspell-he ||
|-
| hi || Hindi        || aspell-hi || hunspell-hi ||
|-
| hr || Croatian    || aspell-hr || hunspell-hr ||
|-
| hsb || Upper Sorbian        ||  || hunspell-hsb ||
|-
| hu || Hungarian    ||          || hunspell-hu ||
|-
| hy || Armenian    ||          || hunspell-hy ||
|-
| id || Indonesian  || aspell-id || hunspell-id ||
|-
| ig || Igbo        ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan], [http://www.dictionary.kasahorow.com/en/all/ig www.dictionary.kasahorow.com]
|-
| ik || Inupiaq      ||  || || [http://giellatekno.uit.no/ipk.html Iñupiaq parser project]. Broken [http://www.alaskool.org/language/inupiaqpb/In_spellchecker.html download link] to MSWord dictionary
|-
| is || Icelandic    || aspell-is || hunspell-is ||
|-
| it || Italian      || aspell-it || hunspell-it ||
|-
| iu || Inuktitut    ||  || || [http://www.livingdictionary.com/backgroundandhistory.jsp www.livingdictionary.com]
|-
| ja || Japanese    ||  || ||
|-
| ka || Georgian    ||  || || [http://ka.openoffice.org/ ka.openoffice.org]
|-
| kk || Kazakh      ||  || [http://extensions.services.openoffice.org/project/dict-kz available] ||
|-
| kl || Kalaallisut  ||  || || [http://giellatekno.uit.no/kal.html Greenlandic parser project]
|-
| km || Khmer        ||          || hunspell-km ||
|-
| kn || Kannada      ||  || || [http://www.cdacbangalore.in/bharateeyaoo/ BharateeyaOO.o]
|-
| ko || Korean      ||  || ||
|-
| ku || Kurdish (Latin)  ||  || hunspell-ku ||
|-
| ku || Kurdish (Arabic) ||  ||  ||
|-
| kw || Cornish      ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| ky || Kyrgyz      ||  || || [http://www.mail-archive.com/dev@l10n.openoffice.org/msg04360.html OOo localization beginnings]
|-
| lg || Luganda      ||  || || A general [http://translate.org.za/content/view/1817/51/lang,en-za/ translation] effort.
|-
| li || Limburgish  ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| lo || Lao          ||  || || [http://lo.openoffice.org/ Lao OOo localization]
|-
| lt || Lithuanian  ||          || hunspell-lt ||
|-
| lv || Latvian      ||          || hunspell-lv ||
|-
| mai || Maithili    ||  || || [http://maithiliacademy.org/ maithiliacademy.org]
|-
| mg || Malagasy    ||          || hunspell-mg ||
|-
| mi || Maori        ||  || hunspell-mi ||
|-
| mk || Macedonian  ||  || hunspell-mk ||
|-
| ml || Malayalam    || aspell-ml || hunspell-ml
|-
| mn || Mongolian    ||  || [https://bugzilla.redhat.com/show_bug.cgi?id=469114 rhbz#469114] ||
|-
| mr || Marathi      || aspell-mr || hunspell-mr ||
|-
| ms || Malay        ||          || hunspell-ms ||
|-
| mt || Maltese      ||          || hunspell-mt ||
|-
| nb || Bokmaal      || aspell-no || hunspell-nb ||
|-
| nds || Lowlands Saxon ||        || hunspell-nds ||
|-
| ne || Nepali      ||          || hunspell-ne ||
|-
| nl || Dutch        || aspell-nl || hunspell-nl ||
|-
| nn || Nynorsk      || aspell-no || hunspell-nn ||
|-
| nr || Ndebele (Southern) ||    || hunspell-nr ||
|-
| nso || Sotho (Northern) ||      || hunspell-nso ||
|-
| oc || Occitan      ||          || hunspell-oc ||
|-
| om || Oromo        ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building. Oromo [https://wiki.ubuntu.com/ubuntu-Oromo wiki entry]
|-
| or || Oriya        || aspell-or || hunspell-or ||
|-
| pa || Punjabi      || aspell-pa || hunspell-pa ||
|-
| pap || Papiamento  ||  || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| pl || Polish      || aspell-pl || hunspell-pl ||
|-
| pt || Portuguese  || aspell-pt || hunspell-pt ||
|-
| ro || Romanian    ||          || hunspell-ro ||
|-
| ru || Russian      || aspell-ru || hunspell-ru ||
|-
| rw || Kinyarwanda  ||          || hunspell-rw ||
|-
| sa || Sanskrit    ||  || || An apparent [http://www.nabble.com/Sanskrit-spellchecker-td14487815.html effort] to create a Sanskrit hunspell dictionary
|-
| sc || Sardinian    ||  || [https://bugzilla.redhat.com/show_bug.cgi?id=467182 rhbz#467182] ||
|-
| se || Sami, Northern        ||  || [http://www.divvun.no/ available] || A colossal 50Megs
|-
| shs || Secwepemctsin        ||  || || [http://www.native-languages.org/shuswap.htm www.native-languages.org]
|-
| si || Sinhala      ||  || || A very small [http://sinhala.cvs.sourceforge.net/viewvc/*checkout*/sinhala/sinhala/spell/aspell/si.wl wordlist]
|-
| sid || Sidamo      ||  || || Some [http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/Sidamo info]
|-
| sk || Slovak      || aspell-sk || hunspell-sk ||
|-
| sl || Slovenian    || aspell-sl || hunspell-sl ||
|-
| so || Somali      ||  || || An apparent [http://www.mail-archive.com/dev@lingucomponent.openoffice.org/msg01484.html effort] to create a Somali hunspell dictionary
|-
| sq || Albanian    ||          || hunspell-sq ||
|-
| sr || Serbian      || aspell-sr || hunspell-sr ||
|-
| ss || Swati        ||          || hunspell-ss ||
|-
| st || Sotho (Southern) ||      || hunspell-st ||
|-
| sv || Swedish      || aspell-sv || hunspell-sv ||
|-
| ta || Tamil        || aspell-ta || hunspell-ta ||
|-
| te || Telugu      || aspell-te || hunspell-te ||
|-
| tg || Tajik        || || || An apparent [http://www.mail-archive.com/dev@lingucomponent.openoffice.org/msg00581.html effort] to create a Tajik hunspell dictionary
|-
| th || Thai        ||          || hunspell-th ||
|-
| ti || Tigrigna    || || || [http://www.cs.ru.nl/~biniam/geez/install.php non-commercial use]
|-
| tig || Tigre      || || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| tk || Turkmen      || || hunspell-tk ||
|-
| tl || Tagalog      || || hunspell-tl ||
|-
| tn || Tswana      || || hunspell-tn ||
|-
| tr || Turkish      || || [https://addons.mozilla.org/en-US/firefox/addon/8794 available] || But like Finnish through voikko the typical solution for Turkish has been the Zemberek library, and to have an enchant backend, an Openoffice.org Extension, and a Firefox extension)
|-
| ts || Tsonga      ||          || hunspell-ts ||
|-
| tt || Tatar        || || [http://sisyphus.ru/srpm/Branch4/hunspell-tt/spec available] || Hard to see where this came from originally, and what license it is exactly, GPLv2+ (?). Perhaps it is an original work of ALT Linux and that actually is the canonical upstream ?
|-
| ug || Uyghur      || || || [http://www.uyghurdictionary.org/ www.uyghurdictionary.org]
|-
| uk || Ukrainian    ||          || hunspell-uk ||
|-
| ur || Urdu        ||          || hunspell-ur ||
|-
| uz || Uzbek        ||          || hunspell-uz ||
|-
| ve || Venda        ||          || hunspell-ve ||
|-
| vi || Vietnamese  ||          || hunspell-vi ||
|-
| wa || Walloon      ||          || hunspell-wa ||
|-
| wo || Wolof        || || || [http://www.alfanet.anafa.org/node/24 www.alfanet.anafa.org] make Wolof localizations of Firefox and Abiword. [http://www.dictionary.kasahorow.com/en/all/wo www.dictionary.kasahorow.com]
|-
| xh || Xhosa        ||          || hunspell-xh ||
|-
| yi || Yiddish      || || || The [http://www.abisource.com/projects/enchant/ uspell] spell-checker
|-
| yo || Yoruba      || || || An apparent [http://www.mail-archive.com/dev@lingucomponent.openoffice.org/msg01820.html effort] to create a Yoruba hunspell dictionary. [http://www.dictionary.kasahorow.com/en/all/yo www.dictionary.kasahorow.com]
|-
| zh || Chinese      || || ||
|-
| zu || Zulu        ||          || hunspell-zu ||
|}
 
 
2. Language Support Matrix (extra OOo recognized not in glibc)
 
{| border="1"
|-
| '''Language Code'''  || '''Language'''    || '''hunspell''' || '''notes'''
|-
| ak  || Akan        ||  || [http://hunspell.sourceforge.net/akan-demo.tar.gz small] list of unknown licence. [http://dictionary.kasahorow.com/all/ak www.dictionary.kasahorow.com] ||
|-
| az || Azeri (Cyrillic) ||  ||
|-
| bm  || Bambara      || || [http://www.bambara.org/en/index.htm Online Dictionary]
|-
| brx || Bodo        || || [http://bagurumba.elementfx.com/bagurumba/dictionary.php Online Dictionary]
|-
| cop || Coptic      || [http://extensions.services.openoffice.org/project/copt_dict available] ||
|-
| cv  || Chuvash      || || From [http://community.i-rs.ru/index.php?topic=2217.30 this forum] looks like there was a  [http://hunspell.chv.su/files/cv_RU-1.00.zip cv_RU-1.00.zip] but download site is gone/down.
|-
| dgo || Dogri        || || [http://www.ciil.org/ Central Institute for Indian Languages]
|-
| dv  || Dhivehi      || || [http://www.maldivesroyalfamily.com/pdf/maldives_dictionary_1.0.pdf English-Dhivehi dictionary]
|-
| ee  || Ewe          || || [http://www.eweland.com/ online] dictionary
|-
| eo  || Esperanto    || [http://wiki.services.openoffice.org/wiki/Dictionaries#Esperanto_.28anywhere.29 available] ||
|-
| fj  || Fijian      || [http://wiki.services.openoffice.org/wiki/Dictionaries#Fijian_.28Fiji.29 available] ||
|-
| gsc || Gascon      || || [http://wiki.services.openoffice.org/wiki/Dictionaries#Gascon_.28France.29 Non-Commercial] BY-NC-ND license||
|-
| gug || Guarani      || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| hil || Hiligaynon  || [http://borel.slu.edu/crubadan/apps.html convertable]||
|-
| ia  || Interlingua  || [http://wiki.services.openoffice.org/wiki/Dictionaries#Interlingua_.28x-register.29 available] ||
|-
| ks  || Kashmiri    || || [http://dsal.uchicago.edu/dictionaries/grierson/ online dictionary]
|-
| kok || Konkani      || || [http://www.savemylanguage.org/ online dictionary
|-
| la  || Latin        || [http://wiki.services.openoffice.org/wiki/Dictionaries#Latin_.28x-register.29 available] ||
|-
| lb  || Luxembourgish || [http://wiki.services.openoffice.org/wiki/Dictionaries#Luxembourgish_.28Luxembourg.29 available] ||
|-
| lg  || Ganda        || || [http://www.gandaancestry.com/dictionary/dictionary.php online dictionary]
|-
| ln  || Lingala      || || [http://borel.slu.edu/crubadan/apps.html crubadan] corpus building
|-
| mos || Mossi        || || [http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/Moore info], [http://markmail.org/message/wya3mihuqmmqjxle dictionary effort] (hunspell has no problem with utf-8 .dic files FWIW)
|-
| mni || Manipuri    || || [http://www.languageinindia.com/sep2007/manipuriphonological.html some info]
|-
| my  || Burmese      || || [http://www.burmese-dictionary.org/ online dictionary]
|-
| ny  || Nyanja      || [ftp://ftp.gnu.org/gnu/aspell/dict/ny/ convertable] ||
|-
| qu  || Quechua      || [http://wiki.services.openoffice.org/wiki/Dictionaries#Quechua_.28Bolivia.29 available] ||
|-
| rm  || Raeto-Romance || ||
|-
| sat || Santali      || || [http://www.aa.tufs.ac.jp/~mmine/india/Bodding2k/index.html online dictionary]
|-
| sd  || Sindhi      || || [http://dsal.uchicago.edu/dictionaries/mewaram/ online dictionary]
|-
| sg  || Sango        || || [http://dictionary.kasahorow.com/all/sg/ www.dictionary.kasahorow.com]
|-
| sjd || Sami, Kildin || || [http://www.divvun.no/ Northern Sami]
|-
| sma || Sami, Southern || || [http://www.divvun.no/ Northern Sami]
|-
| smj || Sami, Lule  || || [http://www.divvun.no/ Northern Sami]
|-
| smn || Sami, Inari  || || [http://www.divvun.no/ Northern Sami]
|-
| sms || Sami, Skolt  || || [http://www.divvun.no/ Northern Sami]
|-
| sw  || Swahili      || [http://wiki.services.openoffice.org/wiki/Dictionaries#Kiswahili_.28East_Africa.29 available] ||
|-
| tet || Tetun        || [http://wiki.services.openoffice.org/wiki/Dictionaries#Tetum_.28Indonesia.29 available] ||
|}


== User experience ==
== User experience ==

Latest revision as of 15:20, 11 December 2008

Fix the dictionary proliferation problem

Summary

Fix the proliferation of dictionaries in the OS.

Owners

Current status

  • Targeted release: Fedora 9
  • Last modified: 2008-04-07
  • Percentage of completion: 100%
  • This is complete, all major applications and default GNOME/KDE spell checking now goes through hunspell. All that remains is to package dictionaries for the lesser used languages where there hasn't already been a sufficiently vibrant fedora-using language community that has taken up packaging a dictionary for their language.

Usage cases/rationale

We have separate dictionaries for each language for OpenOffice.org, Firefox, Thunderbird, and aspell (which gnome and KDE use). This is dumb.

Benefit to Fedora

We get code reuse, a smaller distribution, and a decreased memory footprint.

Scope

Requires changing the OpenOffice.org, thunderbird, firefox, and dictionary packages.

Test Plan

Test spell checking in all apps.

Dependencies

None.

Details

  1. Split out hunspell from OpenOffice.org - rhbz#214764 complete
  2. Make OpenOffice.org use it - rhbz#214764 complete
  3. Split out the dictionaries into separate packages - rhbz#218769 (english) complete
  4. Make OpenOffice.org use system dictionaries - complete
  5. Make gedit/xchat use it, i.e. enchant. enchant by default already generally prefers using hunspell over aspell, just needs to be told where the dictionaries are - complete
  6. Make evolution use it, i.e. gnome-spell. gnome-spell can be patched to use enchant to achieve this - rhbz#426347 complete
  7. Make tomboy/pidgin use it, i.e. gtkspell. Same story as gnome-spell - rhbz#245888 complete
  8. Make Firefox (and other gecko apps) use it - rhbz#218762 complete, upstream state is now resolved
  9. Make KDE use enchant and/or hunspell - complete - KDE 4 already defaults to enchant in Sonnet. (For K3Spell, see "legacy KSpell" below.) The aspell backend was dropped entirely in Rawhide. For kdelibs3:
    • The legacy KSpell uses command-line spellcheckers. Kevin Kofler wrote a patch to support hunspell, and kde-settings in Rawhide was changed to make it the default.
    • The newer KSpell2 API is plugin-based and uses libraries. It is what KDE 4's Sonnet is based on. Kevin Kofler backported Sonnet's enchant backend. The aspell and ispell backends were dropped in Rawhide.
    See the fedora-devel-list message.
  10. Remove copy of hunspell from enchant - rhbz#426402 complete
  11. Remove copy of hunspell from xulrunner complete
  12. Split enchant to have a separate enchant-aspell rpm to enable optionally removing the aspell support - rhbz#426402 complete
  13. Prefer hunspell over aspell as the default for install in comps. See table below for mis-match in language support. rhbz#439037 complete
  14. Repackage/replace the aspell dictionaries with hunspell dictionaries 80% see table below for language support

Optional

  1. Write an aspell compatibility layer so aspell apps can use the same dictionaries no volunteer -> deferred, is this neccessary at all ? All major desktop apps work now out of the box
  2. Make vim use hunspell - rhbz#219777 patch available, not necessary if vim continues to not use any spell-checking, but preferred over introducing built-in vim spellchecker which has yet another format which hunspell dicts are converted to for use

Dictionaries

See table at OpenOffice.org/LinguisticComponents

User experience

Should not affect user experience.

Contingency plan

Continue to ship older dictionaries.

Documentation

[1]

Release Notes

There is a new default spell checking back-end, hunspell, for both the GNOME and KDE desktops, as well as applications such as OpenOffice.org, Firefox, and other XULRunner-based applications. This common back-end includes a set of shared, multi-lingual dictionaries for use with hunspell. This feature uses a single set of common dictionaries regardless of the application, which gives consistent suggestions for misspelled words and uses less diskpace by eliminating duplicate dictionaries.

Comments

Note that JDS is going down this route as well

The OpenOffice.org hunspell dictionary list of working dictionaries

The mozilla hunspell dictionary list of tri-licensed dictionaries

The firefox extension list of available language extensions

How to build a dictionary

How to convert an ispell affix to hunspell .aff

Language Codes

A somewhat related issue .

Will help on adding Indic hunspell dictionaries in Fedora - paragn.

php5 and bluefish still link to aspell at least - kmaraas. (It's not practical for me to port everything, just the core default installed components and the default spell-checking solutions for the main desktop environments and applications - caolanm)

Ubuntu is now following the Fedora practice as well.