Difference between revisions of "Adding new dictionaries to aspell"

 
(Updating this document to be accurate to Zimbra 8.7, and removing some old 4.X text which is no longer relevant.)
 
(31 intermediate revisions by 17 users not shown)
Line 1: Line 1:
 +
=Adding new dictionaries to aspell=
 +
<div class="col-md-12 ibox-content">
 +
{{KB|{{Unsupported}}|{{ZCS 8.7}}||}}
 +
 +
ZCS 8.7 comes with dictionaries preinstalled for many languages.  ZCS versions 5.0 and earlier only have English installed.  To see the list of installed languages, run
 +
/opt/zimbra/common/bin/aspell dump dicts
 +
 +
If you do not see your language in the list, follow the instructions below.
 +
 
== How to add a new dictionary to aspell ==
 
== How to add a new dictionary to aspell ==
 +
* Download the dictionary for the language you want from [ftp://ftp.gnu.org/gnu/aspell/dict ftp.gnu.org/gnu/aspell/dict].
 +
* Extract it from the tar file in a temporary directory.
 +
* Set PATH to the binary directory of Zimbra:
 +
PATH=/opt/zimbra/common/bin:$PATH
 +
* Configure and install the dictionary according to the README:
 +
 +
./configure
 +
make
 +
make install
  
 +
* Verify the datadir and dictdir it must be '''/opt/zimbra/common/lib/aspell-0.60'''
  
* Download the dictionary from [ftp://ftp.gnu.org/gnu/aspell/dict gnu.org]
+
You must reload the spell-service:
* Extract it from the tar file in a work directory
+
sudo -u zimbra /opt/zimbra/bin/zmspellctl reload
* Set Zimbra's aspell in the path with:
 
::<tt>PATH=/opt/zimbra/aspell-0.60.3/bin:$PATH</tt>
 
* Configure and install the dictionary according to the README
 
<tt>
 
::./configure
 
::make
 
::make install
 
</tt>
 
  
* Edit the file /opt/zimbra/httpd/htdocs/aspell.php to reference the new dictionary.  For example to add the french dictionary:
+
{{Article_Footer|Zimbra Collaboration Suite 8.7|3/9/2017}}
  
<tt>
+
[[Category:Spell]]
::$dictionary = pspell_new("en_EN");
+
[[Category:Customizing ZCS]]
::TO
 
::$dictionary = pspell_new("fr_FR");
 
</tt>
 

Latest revision as of 13:05, 9 March 2017

Adding new dictionaries to aspell

   KB 1295        Last updated on 2017-03-9  




0.00
(0 votes)

ZCS 8.7 comes with dictionaries preinstalled for many languages. ZCS versions 5.0 and earlier only have English installed. To see the list of installed languages, run

/opt/zimbra/common/bin/aspell dump dicts

If you do not see your language in the list, follow the instructions below.

How to add a new dictionary to aspell

  • Download the dictionary for the language you want from ftp.gnu.org/gnu/aspell/dict.
  • Extract it from the tar file in a temporary directory.
  • Set PATH to the binary directory of Zimbra:
PATH=/opt/zimbra/common/bin:$PATH
  • Configure and install the dictionary according to the README:
./configure
make
make install
  • Verify the datadir and dictdir it must be /opt/zimbra/common/lib/aspell-0.60

You must reload the spell-service:

sudo -u zimbra /opt/zimbra/bin/zmspellctl reload
Verified Against: Zimbra Collaboration Suite 8.7 Date Created: 3/9/2017
Article ID: https://wiki.zimbra.com/index.php?title=Adding_new_dictionaries_to_aspell Date Modified: 2017-03-09



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search