projects
/
platform
/
upstream
/
ibus-libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb78884
)
Fix some default punct mappings in traditional Chinese
author
BYVoid
<byvoid.kcp@gmail.com>
Tue, 27 Jul 2010 14:00:47 +0000
(22:00 +0800)
committer
BYVoid
<byvoid.kcp@gmail.com>
Tue, 27 Jul 2010 14:00:47 +0000
(22:00 +0800)
src/FallbackEditor.cc
patch
|
blob
|
history
diff --git
a/src/FallbackEditor.cc
b/src/FallbackEditor.cc
index
13d9d94
..
0d85780
100644
(file)
--- 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;
}