Skip to content
New issue

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

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

Already on GitHub? # to your account

[question] How to change ascii_mode temporarily in kaomoji keyboard? #1272

Closed
Freed-Wu opened this issue Feb 26, 2024 · 13 comments
Closed

[question] How to change ascii_mode temporarily in kaomoji keyboard? #1272

Freed-Wu opened this issue Feb 26, 2024 · 13 comments

Comments

@Freed-Wu
Copy link
Contributor

Screenshot_2024-02-26-13-58-35-90_984e1414ae90666a90f12ff17ec14a7f_025112

When ascii_mode is Chinese, ^ will be mapper to …… , _ will be mapper to ——.

Describe the solution you'd like
Change ascii_mode to English, input kaomoji ^_^, the change it to original ascii_mode.

@shitlime
Copy link
Contributor

shitlime commented Mar 1, 2024

Use ascii_mode: 1 and reset_ascii_mode: true in the kaomoji preset keyboards.

^ω^

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Mar 1, 2024

I try however it cannot work for me. This is /sdcard/rime/build/tongwenfeng.trime.yaml:

preset_keyboards:
  kao_happy:
    ascii_mode: 1
    author: llx
    height: 24
    keys: [{click: "^_^", key_text_size: 14}, {click: "^ω^", key_text_size: 14}, {click: "^o^", key_text_size: 14}, {click: "~\\(≧▽≦)/~", key_text_size: 14}, {click: "*^_^*", key_text_size: 14}, {click: "↖(^ω^)↗", key_text_size: 14}, {click: "(^o^)/", key_text_size: 14}, {click: "(=^▽^=)", key_text_size: 14}, {click: "=^_^=", key_text_size: 14}, {click: "(*^ω^*)", key_text_size: 14}, {click: "٩(๑^o^๑)۶", key_text_size: 14}, {click: "o( ̄▽ ̄)o", key_text_size: 14}, {click: "Y(^_^)Y", key_text_size: 14}, {click: "٩( 'ω' )و", key_text_size: 14}, {click: "╰(*´︶`*)╯", key_text_size: 14}, {click: "*罒▽罒*", key_text_size: 14}, {click: "ヾ ^_^♪", key_text_size: 14}, {click: "= ̄ω ̄=", key_text_size: 14}, {click: "︿( ̄︶ ̄)︿", key_text_size: 14}, {click: "(´▽`)ノ♪", key_text_size: 14}, {click: "乁( ˙ ω˙乁)", key_text_size: 14}, {click: "✧*。٩(ˊωˋ*)و✧*。", key_text_size: 10}, {click: "~( ̄▽ ̄~)(~ ̄▽ ̄)~", key_text_size: 14, width: 50}, {click: Keyboard_default, height: 24, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoh, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}, {click: Keyboard_kaof, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoa, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoi, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaos, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaom, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: BackSpace, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}]
    name: "颜文字键盘-开心"
    reset_ascii_mode: true
    width: 25

@shitlime
Copy link
Contributor

shitlime commented Mar 1, 2024

I try however it cannot work for me. This is /sdcard/rime/build/tongwenfeng.trime.yaml:

preset_keyboards:
  kao_happy:
    ascii_mode: 1
    author: llx
    height: 24
    keys: [{click: "^_^", key_text_size: 14}, {click: "^ω^", key_text_size: 14}, {click: "^o^", key_text_size: 14}, {click: "~\\(≧▽≦)/~", key_text_size: 14}, {click: "*^_^*", key_text_size: 14}, {click: "↖(^ω^)↗", key_text_size: 14}, {click: "(^o^)/", key_text_size: 14}, {click: "(=^▽^=)", key_text_size: 14}, {click: "=^_^=", key_text_size: 14}, {click: "(*^ω^*)", key_text_size: 14}, {click: "٩(๑^o^๑)۶", key_text_size: 14}, {click: "o( ̄▽ ̄)o", key_text_size: 14}, {click: "Y(^_^)Y", key_text_size: 14}, {click: "٩( 'ω' )و", key_text_size: 14}, {click: "╰(*´︶`*)╯", key_text_size: 14}, {click: "*罒▽罒*", key_text_size: 14}, {click: "ヾ ^_^♪", key_text_size: 14}, {click: "= ̄ω ̄=", key_text_size: 14}, {click: "︿( ̄︶ ̄)︿", key_text_size: 14}, {click: "(´▽`)ノ♪", key_text_size: 14}, {click: "乁( ˙ ω˙乁)", key_text_size: 14}, {click: "✧*。٩(ˊωˋ*)و✧*。", key_text_size: 10}, {click: "~( ̄▽ ̄~)(~ ̄▽ ̄)~", key_text_size: 14, width: 50}, {click: Keyboard_default, height: 24, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoh, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}, {click: Keyboard_kaof, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoa, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaoi, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaos, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: Keyboard_kaom, key_back_color: bgn, key_text_color: tgn, key_text_size: 16, width: 12.5}, {click: BackSpace, key_back_color: benter, key_text_color: tenter, key_text_size: 16, width: 12.5}]
    name: "颜文字键盘-开心"
    reset_ascii_mode: true
    width: 25

The rime/build/tongwenfeng.trime.yaml is read only file.
It will be overwritten by Trime.
If you want to modify it, you should first copy one.

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Mar 1, 2024

Oh, I use preset_keyboards/kao_happy/reset_ascii_mode: true in my /sdcard/rime/tongwenfeng.trime.custom.yaml to patch /sdcard/rime-data/tongwenfeng.trime.yaml to get /sdcard/rime/build/tongwenfeng.trime.yaml. This is the patched result. It display it have successfully have ascii_mode: 1 and reset_ascii_mode: true. However, When I input ^_^, it still ……——…….

@shitlime
Copy link
Contributor

shitlime commented Mar 1, 2024

Oh, I use preset_keyboards/kao_happy/reset_ascii_mode: true in my /sdcard/rime/tongwenfeng.trime.custom.yaml to patch /sdcard/rime-data/tongwenfeng.trime.yaml to get /sdcard/rime/build/tongwenfeng.trime.yaml. This is the patched result. It display it have successfully have ascii_mode: 1 and reset_ascii_mode: true. However, When I input ^_^, it still ……——…….

Files like *.trime.yaml are not supported for patch files.

Which version do you use?

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Mar 1, 2024

3.2.16

@shitlime
Copy link
Contributor

shitlime commented Mar 1, 2024

Try Nightly Channel Download

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Mar 1, 2024

Do you mean I must modify /sdcard/rime-data/tongwenfeng.trime.yaml directly?

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Mar 1, 2024

Files like *.trime.yaml are not supported for patch files.

In fact in my test, the patch of *.trime.custom.yaml can work for *.trime.yaml

@nopdan
Copy link
Contributor

nopdan commented Mar 1, 2024

  1. 中英文切换现在有 bug,Rewrite ascii mode switch logic #1234 尝试修复,但还有些问题没解决
  2. 点击状态栏的 中文/英文 可以手动切换

@Freed-Wu
Copy link
Contributor Author

临时弄了解决方案:用输入法输入 顔文字

Screenshot

https://github.com/Freed-Wu/rime-kaomoji

@Chengxcy
Copy link

Chengxcy commented May 6, 2024

  1. 中英文切换现在有 bug,Rewrite ascii mode switch logic #1234 尝试修复,但还有些问题没解决
  2. 点击状态栏的 中文/英文 可以手动切换

新版还没修复好吧?现在还是不能自动切换,要手动切换中英,才能输入相应的符号。

@nopdan
Copy link
Contributor

nopdan commented May 10, 2024

已经修复了,若没问题可关闭 issue

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants