[pango] Bug 590183 - Fix bidi implementation with regards to Unicode 5.2.0



commit fc27e25d61bc4dec8e5598b6c2f918296b0659ed
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Aug 21 14:49:33 2012 -0400

    Bug 590183 - Fix bidi implementation with regards to Unicode 5.2.0

 pango/mini-fribidi/fribidi.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
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))
 	     ))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]