From d2542c53bdf5de42fb52dad5810a97a0b21f6a8a Mon Sep 17 00:00:00 2001
From: Peng Wu <alexepico@gmail.com>
Date: Wed, 4 Jul 2012 15:21:24 +0800
Subject: [PATCH] update patch

---
 ibus-libpinyin-1.4.x-head.patch | 37 ++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/ibus-libpinyin-1.4.x-head.patch b/ibus-libpinyin-1.4.x-head.patch
index 5424889..86c369d 100644
--- a/ibus-libpinyin-1.4.x-head.patch
+++ b/ibus-libpinyin-1.4.x-head.patch
@@ -1,7 +1,7 @@
 From e16682240d6df8777a7b6605811258b5ec71cec1 Mon Sep 17 00:00:00 2001
 From: Peng Wu <alexepico@gmail.com>
 Date: Wed, 4 Jul 2012 13:19:47 +0800
-Subject: [PATCH] fixes fillLookupTableByPage
+Subject: [PATCH 1/2] fixes fillLookupTableByPage
 
 ---
  src/PYPPhoneticEditor.cc |   11 ++---------
@@ -39,3 +39,38 @@ index bdc05d8..a9b81ce 100644
 -- 
 1.7.10.4
 
+
+From a742f0e61a9cc81ee14f5d66070bede4a737fa18 Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico@gmail.com>
+Date: Wed, 4 Jul 2012 15:19:05 +0800
+Subject: [PATCH 2/2] uses pinyin_load_phrase_library
+
+---
+ src/PYLibPinyin.cc |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc
+index dd56fa7..621863b 100644
+--- a/src/PYLibPinyin.cc
++++ b/src/PYLibPinyin.cc
+@@ -64,6 +64,7 @@ LibPinyinBackEnd::allocPinyinInstance ()
+             g_free(userdir); userdir = NULL;
+         }
+         m_pinyin_context = pinyin_init ("/usr/share/libpinyin/data", userdir);
++        pinyin_load_phrase_library(m_pinyin_context, 2);
+         g_free(userdir);
+     }
+ 
+@@ -87,7 +88,8 @@ LibPinyinBackEnd::allocChewingInstance ()
+         if (retval) {
+             g_free(userdir); userdir = NULL;
+         }
+-        m_chewing_context = pinyin_init ("/usr/share/libpinyin/data", NULL);
++        m_chewing_context = pinyin_init ("/usr/share/libpinyin/data", userdir);
++        pinyin_load_phrase_library(m_chewing_context, 2);
+         g_free(userdir);
+     }
+ 
+-- 
+1.7.10.4
+