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-22-2006, 02:46 AM
Project Contributor
 
Posts: 136
Default Spellcheck and accents in 4.0.x

Hi!

When I do spellcheck of a text with accents (like in French or Spanish), the accentuated characters are used as separators.

The problem is two-folded: the regexp in aspell.php and the text extracted from the webclient.

The first part is solved as in the WiKi, that is, the regexp used to convert the text to a list of words is:

$words = preg_split('/[^\w\'\xc0-\xfd-]+/', $text);

To test it, I can access the test page directly as:

http://localhost:7780/aspell.php

and fill a text with accents. This works fine.

The problem is the text passed as argument from Zimbra. The WebMail replaces the accents with "?", then, of course, a word like

exécuter

becomes

ex?cuter

which the PHP code correctly splits in the words "ex" and "cuter".

I traced the problem down to AjxStringUtil.convertHtml2Text(), but I don't see anything wrong with the code. Can it be the Element.toString() that is working in a weird way?

Any hints?

Carlos

Last edited by cvidal; 10-22-2006 at 01:32 PM..
Reply With Quote
  #2 (permalink)  
Old 10-22-2006, 05:46 PM
Zimbra Employee
 
Posts: 269
Default Bug 7312

I believe this is the bug you're seeing..?

The fix for this bug is targeted for the next major release. Regardless, you should vote for it
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 10-23-2006, 12:18 AM
Project Contributor
 
Posts: 58
Default

Quote:
Originally Posted by pshah
I believe this is the bug you're seeing..?

The fix for this bug is targeted for the next major release. Regardless, you should vote for it
Every non-english zimbra user should vote fo this bug...
Reply With Quote
  #4 (permalink)  
Old 10-24-2006, 07:04 PM
Active Member
 
Posts: 37
Default

I voted in it !!!


That is very important to the Zimbra function it here in BRAZIL (and others Latin countries).

These problems of accents would have to be seen with more affection. (It exists problems of accents in other parts of the ZIMBRA, not only in the spellcheck)

Therefore these problems make impracticable, many times the implementation of the ZIMBRA in these countries.
Reply With Quote
  #5 (permalink)  
Old 10-24-2006, 07:54 PM
Zimbra Employee
 
Posts: 1,434
Default Other accent-related bugs

If you see other accent-related bugs, please check bugzilla. If they're already reported, please vote for them! If they haven't been reported yet, please file a new bug!
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 10-25-2006, 03:36 AM
Project Contributor
 
Posts: 58
Default

Quote:
Originally Posted by dkarp
If you see other accent-related bugs, please check bugzilla. If they're already reported, please vote for them! If they haven't been reported yet, please file a new bug!
I've a question: which LANG setting should be used with zimbra?
Zimbra user have a LANG=C in .bash_profile but the system is also affected by the global LANG settings.
Should we foreign people use "en_US", "en_US.UTF-8" "C" or something like "it_IT" or "it-IT.UTF-8" ?

Claudio

Last edited by claros; 10-25-2006 at 03:45 AM..
Reply With Quote
  #7 (permalink)  
Old 10-25-2006, 04:21 PM
Active Member
 
Posts: 37
Default

Ok dkarp,

We are preparing the material contend all related BUGS the accents. As soon as it will be ready, will send for you.


Thanks
Rômulo Giordani Boschetti
Interop Informática - HSC
Reply With Quote
  #8 (permalink)  
Old 10-26-2006, 10:11 AM
Project Contributor
 
Posts: 136
Default

Quote:
Originally Posted by claros
I've a question: which LANG setting should be used with zimbra?
Zimbra user have a LANG=C in .bash_profile but the system is also affected by the global LANG settings.
Should we foreign people use "en_US", "en_US.UTF-8" "C" or something like "it_IT" or "it-IT.UTF-8" ?

Claudio
It doesn't matter (AFAIK). Tomcat pumps the data in the locale of the client browser. The spelling works with the locale requested by PHP in the aspell.php. The rest is LANG=C, used by all the little scripts run by cron and other utilities.

Carlos
Reply With Quote
  #9 (permalink)  
Old 10-26-2006, 10:12 AM
Project Contributor
 
Posts: 136
Default

Quote:
Originally Posted by pshah
I believe this is the bug you're seeing..?

The fix for this bug is targeted for the next major release. Regardless, you should vote for it
Yes, it is this bug, I voted too :-)

Carlos
Reply With Quote
  #10 (permalink)  
Old 10-26-2006, 04:09 PM
Project Contributor
 
Posts: 58
Default

Quote:
Originally Posted by cvidal
It doesn't matter (AFAIK). Tomcat pumps the data in the locale of the client browser. The spelling works with the locale requested by PHP in the aspell.php. The rest is LANG=C, used by all the little scripts run by cron and other utilities.

Carlos
I agree, tomcat does. But zimbra is not just tomcat and there are other programs (and bugs) that can be affected by LANG settings...
For example amavis, saslautd, perdition etc.
With zimbra 3.x it was suggested (at least in the forum) to set LANG=en-US, I'd like to know if there is a suggested setup now as I've found and reported a couple of bugs releted to internationalization end utf support...

Claudio
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.