use DYNAMIC_ADJUST
authorPeng Wu <alexepico@gmail.com>
Fri, 3 Aug 2012 07:28:42 +0000 (15:28 +0800)
committerPeng Wu <alexepico@gmail.com>
Fri, 3 Aug 2012 07:28:42 +0000 (15:28 +0800)
src/PYLibPinyin.cc

index 44dcaf2..33ccd4a 100644 (file)
@@ -144,7 +144,7 @@ LibPinyinBackEnd::setPinyinOptions (Config *config)
     }
 
     pinyin_option_t options = config->option()
-        | USE_RESPLIT_TABLE | USE_DIVIDED_TABLE;
+        | USE_RESPLIT_TABLE | USE_DIVIDED_TABLE | DYNAMIC_ADJUST;
     pinyin_set_options (m_pinyin_context, options);
     return TRUE;
 }
@@ -176,7 +176,7 @@ LibPinyinBackEnd::setChewingOptions (Config *config)
         }
     }
 
-    pinyin_option_t options = config->option() | USE_TONE;
+    pinyin_option_t options = config->option() | USE_TONE |DYNAMIC_ADJUST;
     pinyin_set_options(m_chewing_context, options);
     return TRUE;
 }