Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Other > International > I18N/L10N - Translations

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-2007, 12:16 PM
Project Contributor
 
Posts: 136
Default Script to extend the spell dictionary

It is quite easy to extend Zimbra's spell dictionary word list. Aspell needs a file in the user's home directory named ".aspell.fr.pws" (for French, replace "fr" with the language of your choice) containing a header and a word list, one word per line. Words with special characters must be encoded in ISO-8859-1.

I wrote a small python script to generate this file. Actually, the file is created in /tmp/dict.txt and has to be moved manually to /opt/zimbra/.aspell.fr.pws and then 'chown zimbra:zimbra .aspell.fr.pws'.

The scripts takes a file with a word list as argument and generates the proper aspell file. If the file is in UTF-8, it will automatically convert it to ISO-8859-1.

As usual, all suggestions and improvements are welcome.

The script is enclosed but can also be downloaded from Fichiers WHM

Carlos
Attached Files
File Type: tgz zmdict.tgz (1.2 KB, 30 views)

Last edited by cvidal; 10-30-2007 at 12:19 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.