Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Spellcheck and accents in 4.0.x

  1. #1
    cvidal is offline Project Contributor
    Join Date
    Dec 2005
    Posts
    146
    Rep Power
    9

    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 12:32 PM.

  2. #2
    pshah is offline Zimbra Employee
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    9

    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!

  3. #3
    claros's Avatar
    claros is offline Project Contributor
    Join Date
    Mar 2006
    Location
    L'Aquila, ITALIA
    Posts
    59
    Rep Power
    9

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

  4. #4
    romulo is offline Active Member
    Join Date
    Jul 2006
    Posts
    37
    Rep Power
    8

    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.

  5. #5
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  6. #6
    claros's Avatar
    claros is offline Project Contributor
    Join Date
    Mar 2006
    Location
    L'Aquila, ITALIA
    Posts
    59
    Rep Power
    9

    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 02:45 AM.

  7. #7
    romulo is offline Active Member
    Join Date
    Jul 2006
    Posts
    37
    Rep Power
    8

    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

  8. #8
    cvidal is offline Project Contributor
    Join Date
    Dec 2005
    Posts
    146
    Rep Power
    9

    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

  9. #9
    cvidal is offline Project Contributor
    Join Date
    Dec 2005
    Posts
    146
    Rep Power
    9

    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

  10. #10
    claros's Avatar
    claros is offline Project Contributor
    Join Date
    Mar 2006
    Location
    L'Aquila, ITALIA
    Posts
    59
    Rep Power
    9

    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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 09-30-2006, 06:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •