diff options
author | BYVoid <byvoid.kcp@gmail.com> | 2010-07-27 22:00:47 +0800 |
---|---|---|
committer | BYVoid <byvoid.kcp@gmail.com> | 2010-07-27 22:00:47 +0800 |
commit | ca206af4c2d9a0b312e3154f57cd4cf8d53bb845 (patch) | |
tree | 30f99e4acd39739252090e6de665f97400587b91 /src | |
parent | fb788847f855c0aa4b51797a4049c487fdd80a79 (diff) | |
download | ibus-pinyin-ca206af4c2d9a0b312e3154f57cd4cf8d53bb845.tar.gz |
Fix some default punct mappings in traditional Chinese
Diffstat (limited to 'src')
-rw-r--r-- | src/FallbackEditor.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |