avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

ibus-sunpinyin 默认的中文标点符号不太符合习惯 #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
在默认的 ibus-sunpinyin 
中文输入状态时(汉字,半角字母,全角标点),
按 ". " 输入的是 " · " 而非更常用的句号 "。"
按 "^" 输入的是 "…" 而非常见的 "……"
这似乎不太符合日常习惯。

谷歌拼音、搜狗拼音、ibus-pinyin 在默认的全角标点状态下,
是只有中文里用到的标点符号作为标点处理,其他的都和字��
�数字保持一致,

而 ibus-sunpinyin 跟早期 scim 
一样,非中文标点符号也全部作为全角了,
按常用的半角英文标点符号 "+-*/=@#"  输入的是全角 
"+-*/=@#"
在其他输入法如谷歌拼音里这些 非中文标点 
是跟字母数字保持一致的

@tchaikov 能否麻烦看看呢

Original issue reported on code.google.com by jhuangjiahua@gmail.com on 29 Jul 2010 at 2:34

GoogleCodeExporter commented 9 years ago
我现在用这修改

{{{
diff --git a/src/ime-core/imi_options.cpp b/src/ime-core/imi_options.cpp
index 4873cea..b5763a6 100644
--- a/src/ime-core/imi_options.cpp
+++ b/src/ime-core/imi_options.cpp
@@ -146,11 +146,12 @@ CSimplifiedChinesePolicy::getDefaultPunctMapping() const
         "{",    "『",
         "}",    "』",
         "$",    "¥",
-        "*",    "×",
-        "+",    "+",
         "|",    "|",
-        "=",    "=",
-        "-",    "-",
+        "+",    "+",
+        "-",    "-",
+        "*",    "*",
+        "/",    "/",
+        "=",    "=",
         NULL,
     };

}}}

但是这就只能一直输入半角 +-*/=@# 了,
而在谷歌拼音、ibus-pinyin 
里,需要时切换到全角标点状态就可以输入全角的 
+-*/=@# 的

另外这样默认还是不能输入省略号 "……" 和句号 "。"
得手工在 PunctMappingSetupDialog 里选取

Original comment by jhuangjiahua@gmail.com on 29 Jul 2010 at 2:37

GoogleCodeExporter commented 9 years ago
@jhuangjiahua

你说的应该是打开标点映射的情况,缺省的设置应该不像你��
�的那样啊。

Original comment by tchai...@gmail.com on 29 Jul 2010 at 3:30

GoogleCodeExporter commented 9 years ago
@tchaikov 没打开标点映射时 句号 。 和省略号 …… 是对的,
但是  "+-*/=@#"  输入的是全角 "+-*/=@#"

Original comment by jhuangjiahua@gmail.com on 29 Jul 2010 at 4:11

GoogleCodeExporter commented 9 years ago
@tchaikov 哦,刚才 git revert 的试了后,
默认 "+-*/=@#"  输入的是 "+-×/=@#"

其中 "/@#" 已经是半角的,
是想要让 "+-*" 也变成默认半角

Original comment by jhuangjiahua@gmail.com on 29 Jul 2010 at 4:16

GoogleCodeExporter commented 9 years ago
huangjiahua,

事实上,"+-*" 
的那些映射就相当于是中文模式下的全角映射。目前 sunpinyin 
输入法在中文模式下,提供中文标点和英文标点,如果使用��
�文标点的话,就会用到上面你给的 patch 
里面的那些系统缺省标点映射,以及用户定义标点映射。换��
�话说,我们现在没有把中文标点和全角标点加以区分。以后�
��们会对全角标点提供更好的解决方案。

Original comment by tchai...@gmail.com on 1 Aug 2010 at 4:16

GoogleCodeExporter commented 9 years ago
@tchaikov 嗯,就是说想要 
CSimplifiedChinesePolicy::getDefaultPunctMapping() 先去掉 * + - = 
四个标点,
即默认的中文标点下保持 * + - =  为英文标点,
跟谷歌拼音和其他输入法一致

{{{
diff --git a/src/ime-core/imi_options.cpp b/src/ime-core/imi_options.cpp
index 4873cea..248229f 100644
--- a/src/ime-core/imi_options.cpp
+++ b/src/ime-core/imi_options.cpp
@@ -146,11 +146,7 @@ CSimplifiedChinesePolicy::getDefaultPunctMapping() const
         "{",    "『",
         "}",    "』",
         "$",    "¥",
-        "*",    "×",
-        "+",    "+",
         "|",    "|",
-        "=",    "=",
-        "-",    "-",
         NULL,
     };

}}}

Original comment by jhuangjiahua@gmail.com on 3 Aug 2010 at 8:12

GoogleCodeExporter commented 9 years ago
fixed in ac5272d. thanks.

Original comment by tchai...@gmail.com on 7 Aug 2010 at 4:27