From: BYVoid Date: Tue, 27 Jul 2010 14:00:47 +0000 (+0800) Subject: Fix some default punct mappings in traditional Chinese X-Git-Tag: 1.3.10~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca206af4c2d9a0b312e3154f57cd4cf8d53bb845;p=platform%2Fupstream%2Fibus-libpinyin.git Fix some default punct mappings in traditional Chinese --- diff --git a/src/FallbackEditor.cc b/src/FallbackEditor.cc index 13d9d94..0d85780 100644 --- a/src/FallbackEditor.cc +++ b/src/FallbackEditor.cc @@ -136,10 +136,12 @@ FallbackEditor::processPunctForTraditionalChinese (guint keyval, guint keycode, case ':': commit (":"); return TRUE; case '\'': - commit (","); + commit (m_quote ? "‘" : "’"); + m_quote = !m_quote; return TRUE; case '"': - commit (";"); + commit (m_double_quote ? "“" : "”"); + m_double_quote = !m_double_quote; return TRUE; case ',': commit (","); return TRUE; @@ -153,8 +155,6 @@ FallbackEditor::processPunctForTraditionalChinese (guint keyval, guint keycode, commit ("《"); return TRUE; case '>': commit ("》"); return TRUE; - case '/': - commit ("。"); return TRUE; case '?': commit ("?"); return TRUE; }