Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

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 09-30-2006, 06:50 PM
Project Contributor
 
Posts: 116
Talking International dictionaries spellcheck tildes (solved)

Hi.

There is a problem when adding non-english languages into zimbra spellchecker. Although process basically works, when using special chars results are bad displayed. Also, if special chars are checked, word suggestions are really strange.

The problem is due to word splitting (for example with words with accents or tilde, or any kind of special char) and aspell encoding (iso-8859-1 by default).

To solve this problem, you have to modify aspell.php located at /opt/zimbra/httpd/htdocs/aspell.php

1- Replace this line:
$words = preg_split('/[^\w\'-]+/', $text);

with this other:
$words = preg_split('/[^\w\'-áéíóúäëïöüàèùìòñçâêîôû]+/', $text);

2- Add an utf-8 conversion for output text after this line:
$suggestions = implode(",", pspell_suggest($dictionary, $word));
$suggestions=iconv("iso-8859-1","UTF-8",$suggestions);

Tested with spanish version. This modification should also work for french, german, portuguese, italian and others western europe languages. Nordic languages perhaps have to add extra chars at preg_split line.

For detailed info, I have updated New dictionaries :

http://wiki.zimbra.com/index.php?tit...nary_to_aspell
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.