Closed GoogleCodeExporter closed 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
@jhuangjiahua
你说的应该是打开标点映射的情况,缺省的设置应该不像你��
�的那样啊。
Original comment by tchai...@gmail.com
on 29 Jul 2010 at 3:30
@tchaikov 没打开标点映射时 句号 。 和省略号 …… 是对的,
但是 "+-*/=@#" 输入的是全角 "+-*/=@#"
Original comment by jhuangjiahua@gmail.com
on 29 Jul 2010 at 4:11
@tchaikov 哦,刚才 git revert 的试了后,
默认 "+-*/=@#" 输入的是 "+-×/=@#"
其中 "/@#" 已经是半角的,
是想要让 "+-*" 也变成默认半角
Original comment by jhuangjiahua@gmail.com
on 29 Jul 2010 at 4:16
huangjiahua,
事实上,"+-*"
的那些映射就相当于是中文模式下的全角映射。目前 sunpinyin
输入法在中文模式下,提供中文标点和英文标点,如果使用��
�文标点的话,就会用到上面你给的 patch
里面的那些系统缺省标点映射,以及用户定义标点映射。换��
�话说,我们现在没有把中文标点和全角标点加以区分。以后�
��们会对全角标点提供更好的解决方案。
Original comment by tchai...@gmail.com
on 1 Aug 2010 at 4:16
@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
fixed in ac5272d. thanks.
Original comment by tchai...@gmail.com
on 7 Aug 2010 at 4:27
Original issue reported on code.google.com by
jhuangjiahua@gmail.com
on 29 Jul 2010 at 2:34