summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-06-24 16:11:06 +0800
committerPeng Wu <alexepico@gmail.com>2014-06-24 16:11:06 +0800
commitc4b269aecf872d42fd65331c025c64017f144964 (patch)
tree36ba1ac140d792ad8afb703efdd180a11c59378f /src
parent6665b09316796f7a38a923d03b89c9382ad93c3a (diff)
downloadibus-libzhuyin-c4b269aecf872d42fd65331c025c64017f144964.tar.gz
ibus-libzhuyin-c4b269aecf872d42fd65331c025c64017f144964.tar.xz
ibus-libzhuyin-c4b269aecf872d42fd65331c025c64017f144964.zip
add more punctuations to ZYSymbols.cc
Diffstat (limited to 'src')
-rw-r--r--src/ZYSymbols.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ZYSymbols.cc b/src/ZYSymbols.cc
index 2c80295..23f4763 100644
--- a/src/ZYSymbols.cc
+++ b/src/ZYSymbols.cc
@@ -253,7 +253,9 @@ half_punct_to_full_punct (const char key, String & punct)
'[', ']', '{', '}', '\'','<', ':', '\"', '>',
'~', '!', '@', '#', '$', '%', '^', '&', '*',
'(', ')', '_', '+', '=','\\', '|', '?',
- ',', '.', ';'
+ ',', '.', ';',
+ ' ', '\"', '\'', '/', '<', '>', '`', '[',
+ ']', '{', '}', '+', '-'
};
static const char * const chibuf[] = {
@@ -271,8 +273,16 @@ half_punct_to_full_punct (const char key, String & punct)
/* "﹍", "+", "=", "\" */
"\xEF\xBD\x9C", "\xEF\xBC\x9F", "\xEF\xBC\x8C", "\xE3\x80\x82",
/* "|", "?", ",", "。" */
- "\xEF\xBC\x9B"
+ "\xEF\xBC\x9B",
/* ";" */
+ "\xE3\x80\x80","\xE2\x80\x9D",
+ /* " ","”" */
+ "\xE2\x80\x99","\xEF\xBC\x8F","\xEF\xBC\x9C","\xEF\xBC\x9E",
+ /* "’","/","<",">" */
+ "\xE2\x80\xB5","\xE3\x80\x94","\xE3\x80\x95","\xEF\xBD\x9B",
+ /* "‵","〔""〕","{" */
+ "\xEF\xBD\x9D","\xEF\xBC\x8B","\xEF\xBC\x8D"
+ /* "}","+","-" */
};
assert(G_N_ELEMENTS (keybuf) == G_N_ELEMENTS (chibuf));