Leon0824 / rimeime

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

[ibus] 使用自訂的嘸蝦米表,當輸入 s. 並按空白時不會送字 #636

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
一般來說輸入碼之後按空白就會送字
但是只要輸入的碼大於兩碼並且尾碼是 . 時
就不會送字而是把空白也當作碼

在 1.1 版時沒有這個問題

1. 輸入法的款式:中州韻
   輸入法版本號:1.2

2. 操作系統類型:Linux
   操作系統版本:3.15.5

3. 輸入方案名稱:嘸蝦米 (自訂碼表)

Original issue reported on code.google.com by LMao20001 on 25 Jul 2014 at 4:07

GoogleCodeExporter commented 9 years ago
請給出輸入方案的代碼。

Original comment by chen....@gmail.com on 25 Jul 2014 at 7:05

GoogleCodeExporter commented 9 years ago
這是 schema
需要 dict 嗎?

Original comment by LMao20001 on 25 Jul 2014 at 12:16

Attachments:

GoogleCodeExporter commented 9 years ago
這是由1.2版本把空格記入 recognizer 
可匹配的字符。目的是可以匹配包含空格的模式,如 "input 
method"。
結果發現允許匹配空格不太有用,因爲沒法用空格確認了。��
�以我考慮要放棄這項修改。

若不修改程序,可以在輸入方案裏修復:把 
recognizer/patterns/{email, url} 裏面用 "." 
匹配任意字符的地方改爲用 “[^ ]" 匹配非空格字符。

Original comment by chen....@gmail.com on 25 Jul 2014 at 7:21

GoogleCodeExporter commented 9 years ago
感謝回答
目前先將 "." 改成 "[^ ]"
就沒有問題了

Original comment by LMao20001 on 26 Jul 2014 at 2:22

GoogleCodeExporter commented 9 years ago
增加一個選項 recognizer/use_space:
默認設爲 false 吧。

Original comment by chen....@gmail.com on 26 Jul 2014 at 4:16