[glib/wip/unicode-6.2: 2/4] unicode: Add new line breaking class from unicode 6.2



commit 6befcb8040d88e5c3273de293edb146cb25b4738
Author: Christian Persch <chpe gnome org>
Date:   Sat Jul 7 23:53:23 2012 +0200

    unicode: Add new line breaking class from unicode 6.2
    
    Zero Width Joiner (ZJ) is new in unicode 6.2.

 glib/gen-unicode-tables.pl |    3 ++-
 glib/gunicode.h            |   10 +++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/glib/gen-unicode-tables.pl b/glib/gen-unicode-tables.pl
index f2b9237..85fa0ea 100755
--- a/glib/gen-unicode-tables.pl
+++ b/glib/gen-unicode-tables.pl
@@ -149,7 +149,8 @@ $FOLDING_MAPPING = 2;
      'SY' => "G_UNICODE_BREAK_SYMBOL",
      'WJ' => "G_UNICODE_BREAK_WORD_JOINER",
      'XX' => "G_UNICODE_BREAK_UNKNOWN",
-     'ZW' => "G_UNICODE_BREAK_ZERO_WIDTH_SPACE"
+     'ZW' => "G_UNICODE_BREAK_ZERO_WIDTH_SPACE",
+     'ZJ' => "G_UNICODE_BREAK_ZERO_WIDTH_JOINER"
      );
 
 # Title case mappings.
diff --git a/glib/gunicode.h b/glib/gunicode.h
index f9c2fd5..a3b8297 100644
--- a/glib/gunicode.h
+++ b/glib/gunicode.h
@@ -201,13 +201,12 @@ typedef enum
  * @G_UNICODE_BREAK_CLOSE_PARANTHESIS: Closing Parenthesis (CP). Since 2.28
  * @G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: Conditional Japanese Starter (CJ). Since: 2.32
  * @G_UNICODE_BREAK_HEBREW_LETTER: Hebrew Letter (HL). Since: 2.32
+ * @G_UNICODE_BREAK_ZERO_WIDTH_JOINER: Zero Width Joiner (ZJ). Since: 2.34
  *
  * These are the possible line break classifications.
  *
- * The five Hangul types were added in Unicode 4.1, so, has been
- * introduced in GLib 2.10. Note that new types may be added in the future.
- * Applications should be ready to handle unknown values.
- * They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
+ * Since new unicode versions may add new types here, applications should be ready 
+ * to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
  *
  * See <ulink url="http://www.unicode.org/unicode/reports/tr14/";>http://www.unicode.org/unicode/reports/tr14/</ulink>.
  */
@@ -251,7 +250,8 @@ typedef enum
   G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE,
   G_UNICODE_BREAK_CLOSE_PARANTHESIS,
   G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER,
-  G_UNICODE_BREAK_HEBREW_LETTER
+  G_UNICODE_BREAK_HEBREW_LETTER,
+  G_UNICODE_BREAK_ZERO_WIDTH_JOINER
 } GUnicodeBreakType;
 
 /**



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