From: Behdad Esfahbod Date: Tue, 21 Aug 2012 18:49:33 +0000 (-0400) Subject: Bug 590183 - Fix bidi implementation with regards to Unicode 5.2.0 X-Git-Tag: 1.31.1~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc27e25d61bc4dec8e5598b6c2f918296b0659ed;p=platform%2Fupstream%2Fpango.git Bug 590183 - Fix bidi implementation with regards to Unicode 5.2.0 --- diff --git a/pango/mini-fribidi/fribidi.c b/pango/mini-fribidi/fribidi.c index 08aebe3..c4644ef 100644 --- a/pango/mini-fribidi/fribidi.c +++ b/pango/mini-fribidi/fribidi.c @@ -494,12 +494,16 @@ fribidi_analyse_string_utf8 ( /* input */ &ored_types, &anded_strongs); /* The case that all resolved levels will be ltr. - * First, all strongs should be ltr, and one of the following: + * First, all strongs should be ltr, there should be no Arabic numbers + * (or letters for that matter), and one of the following: * * o *pbase_dir doesn't have an rtl taste. * o there are letters, and *pbase_dir is weak. + * + * For details see: + * https://bugzilla.gnome.org/show_bug.cgi?id=590183 */ - if (!FRIBIDI_IS_RTL (ored_types) && + if (!FRIBIDI_IS_RTL (ored_types) && !FRIBIDI_IS_ARABIC (ored_types) && (!FRIBIDI_IS_RTL (*pbase_dir) || (FRIBIDI_IS_WEAK (*pbase_dir) && FRIBIDI_IS_LETTER (ored_types)) ))