Results 1 to 10 of 11

Thread: Spellcheck and accents in 4.0.x

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    150
    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
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    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
    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
    Join Date
    Jul 2006
    Posts
    37
    Rep Power
    9

    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
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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
    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
    Join Date
    Dec 2005
    Posts
    150
    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

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
  •