From ca206af4c2d9a0b312e3154f57cd4cf8d53bb845 Mon Sep 17 00:00:00 2001 From: BYVoid Date: Tue, 27 Jul 2010 22:00:47 +0800 Subject: [PATCH] Fix some default punct mappings in traditional Chinese --- src/FallbackEditor.cc | 8 ++++---- 1 file 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; } -- 2.7.4