rime / rime-cantonese

Rime Cantonese input schema | 粵語拼音輸入方案
https://jyutping.net/
Creative Commons Attribution 4.0 International
551 stars 61 forks source link

Character style (Simplified / Traditional) is not persistent #120

Closed ChristophSchmidpeter closed 3 years ago

ChristophSchmidpeter commented 3 years ago

問題描述

The character style is forgotten upon switching between input languages.

Steps to reproduce

ChristophSchmidpeter commented 3 years ago

How can I change the label to "bug"?

laubonghaudoi commented 3 years ago

@tanxpyox 我記得呢個唔係bug嚟嘅?係我哋專登整嘅,儘量等大家用返繁體打粵文。

@ChristophSchmidpeter This is not a bug. We set this intentionally. Simplified Chinese characters is a writing system specifically designed for Mandarin. It is not suitable for writing non-Mandarin languages. We recommend everybody to write Cantonese with traditional characters.

If you insist to change it to simplified characters permanently, change this line into reset: 0 in your schema.

tanxpyox commented 3 years ago

Hi Christoph. The change is indeed intentional as most Cantonese-only characters are undefined in the simplified character set.

As @laubonghaudoi suggests, changing line 41 in the schema to reset: 0 will resolve the problem.

ChristophSchmidpeter commented 3 years ago

@laubonghaudoi & @tanxpyox: Thanks for the info! I have tried settting reset: 0 in the file $home/.config/ibus/rime/build/jyut6ping3.schema.yaml and performed "sync" and "deploy". However, it is still not persistent. (I've also tried changing setting it in /usr/share/rime-data/jyut6ping3.schema.yaml) Not sure what I'm doing wrong. So setting reset: 0 has the effect of making it persistent on your systems, right?

tanxpyox commented 3 years ago

Oh my apologies - could you try removing the reset line altogether?

ChristophSchmidpeter commented 3 years ago

@tanxpyox : removing the reset line worked for me. Thank you!! I'm surprised though that reset: 0 has a different behaviour than removing the line. Is this intended behaviour?

ChristophSchmidpeter commented 3 years ago

I think adding a comment "Uncomment the following line to persist the character style" or sth. like that before the reset: 1 line (and maybe in the README) might be helpful for people having the same intention.

tanxpyox commented 3 years ago

I'm surprised though that reset: 0 has a different behaviour than removing the line. Is this intended behaviour?

Yes, I forgot that reset: 0 actually meant reverting the settings to the 'first' character set (Traditional Chinese).

I think adding a comment "Uncomment the following line to persist the character style" or sth. like that before the reset: 1 line (and maybe in the README) might be helpful for people having the same intention.

Good idea!