Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移动编辑框光标后,如果修改了最后一个字的编码则无法自动造词 #746

Closed
1 of 6 tasks
st0nie opened this issue Oct 24, 2023 · 4 comments · Fixed by #831
Closed
1 of 6 tasks
Assignees
Labels

Comments

@st0nie
Copy link

st0nie commented Oct 24, 2023

https://gitea.stllokserver.synology.me/ston/rime-sp

这个是我使用的方案

To Reproduce
例如:我输入「巴勒」这个词,使用小鹤双拼,巴对应的音码是ba,勒对应的是le
如果我只输入了 bal 然后按左方向键,光标移动到a和l之间,选择“巴”字后,光标自动移动到l的后方,继续输入e,选择勒
这时候巴勒这个词并没有进入自造词

Expected behavior
巴勒应该被加入自造词中

Flavor(please complete the following information):
Select your flavor:

  • ibus-rime
  • fcitx-rime
  • fcitx5-rime
  • Squirrel
  • Trime
  • Weasel

Package:

@st0nie st0nie added the bug label Oct 24, 2023
@st0nie
Copy link
Author

st0nie commented Oct 24, 2023

可能和此issue是同一个问题
#830

@WhiredPlanck
Copy link
Contributor

@st0nie 烦请看一看 1.9.0 有没有这个问题,感觉不是很好定位 ......

@st0nie
Copy link
Author

st0nie commented Nov 25, 2023

有的

@lotem
Copy link
Member

lotem commented Mar 1, 2024

可能是移動光標選字設置的標記干擾了造詞功能.

爲輸入的前半部分選詞後繼續追加輸入, 爲判斷退格鍵是撤銷選詞還是刪除輸入碼而在開始追加輸入碼時標記前面一段輸入爲已確認, 此後按退格鍵就會執行刪除後續追加的輸入碼而不是撤銷選詞.

lotem added a commit to lotem/librime that referenced this issue Mar 2, 2024
call Context::BeginEditing when input is edited after selection.
move cursor also counts as edit.

the tag is used to tell if BackSpace should delete the last input
character or revert a recent selection.

the information was previously denoted by kConfirmed status which caused
the side-effect of breaking a user phrase into individual segments.

fixed rime#746, fixed rime#830
@lotem lotem self-assigned this Mar 2, 2024
lotem added a commit to lotem/librime that referenced this issue Mar 2, 2024
call Context::BeginEditing when input is edited after selection.
move cursor also counts as edit.

the tag is used to tell if BackSpace should delete the last input
character or revert a recent selection.

the information was previously denoted by kConfirmed status which caused
the side-effect of breaking a user phrase into individual segments.

fixed rime#746, fixed rime#830
@lotem lotem closed this as completed in #831 Mar 2, 2024
lotem added a commit that referenced this issue Mar 2, 2024
call Context::BeginEditing when input is edited after selection.
move cursor also counts as edit.

the tag is used to tell if BackSpace should delete the last input
character or revert a recent selection.

the information was previously denoted by kConfirmed status which caused
the side-effect of breaking a user phrase into individual segments.

fixed #746, fixed #830
graphemecluster pushed a commit to TypeDuck-HK/librime that referenced this issue Mar 18, 2024
call Context::BeginEditing when input is edited after selection.
move cursor also counts as edit.

the tag is used to tell if BackSpace should delete the last input
character or revert a recent selection.

the information was previously denoted by kConfirmed status which caused
the side-effect of breaking a user phrase into individual segments.

fixed rime#746, fixed rime#830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants