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

Customize prompt when switching ascii_mode #608

Closed
hfhchan opened this issue Feb 2, 2023 · 7 comments
Closed

Customize prompt when switching ascii_mode #608

hfhchan opened this issue Feb 2, 2023 · 7 comments

Comments

@hfhchan
Copy link

hfhchan commented Feb 2, 2023

In commit cfcd4eec, Squirrel now pulls in the label from the schema. Previously, Squirrel had hardcoded to display and A. In the schema we have 中文 and ABC, which is also used when we customize the input mode using CTRL + `. Is there any way we can restore the old behaviour through the schema file, without modifying the display in the CTRL + ` menu?

@LEOYoon-Tsaw
Copy link
Member

Is there any way we can restore the old behaviour through the schema file, without modifying the display in the CTRL + ` menu?

No. Why you want 2 different sets of descriptions of a single switch?

@lotem
Copy link
Member

lotem commented Feb 2, 2023

取第一个字当作「短标签」?由另一项配置控制在状态提示里写全还是用简写。

Windows菜单里指定快捷键的方法是 E&xit 可以按 x 选中这个菜单项。挺有意思。不过没有必要用这么奇怪的方式,就取第一个字,如果第一个字不合适,就在配置里另行指定。

@hfhchan
Copy link
Author

hfhchan commented Feb 2, 2023

In the extended 方案選單 we want to provide the full name of the option, like 中文 and ABC, but in the status pill box we want to keep the old behaviour to just show the first character, so it doesn't feel cluttered.

Current extended 方案選單 of rime-cantonese:
image

If we change the switches/states directly, then this place will also become 中 → A, which would not be user friendly to non-advanced users.


Right now there is also another related issue where the first char is always shown as the simplified options selector:
image

We have the following states for the OpenCC variant, 傳統漢字, 香港傳統漢字, 臺灣傳統漢字, 大陆简化汉字, and this gets shortened to , which is not very useful. We would probably prefer the contractions instead.

I suggest that we may supply an optional short_label property, which is used in the status message and also the collapsed state indicator. If no short_label is provided, then it will use the value in states.

@lotem lotem transferred this issue from rime/squirrel Feb 2, 2023
@eagleoflqj
Copy link
Member

We would probably prefer the contractions instead.

That's exactly what I choose to display for web version of jyut6ping3.
(Not online yet, coming soon)

@LEOYoon-Tsaw
Copy link
Member

Initial characters of these words would be good as abbrev.: 繁體漢字, 港標漢字, 臺標漢字, 简化汉字

@hfhchan
Copy link
Author

hfhchan commented Feb 2, 2023

Initial characters of these words would be good as abbrev.: 繁體漢字, 港標漢字, 臺標漢字, 简化汉字

We are indeed aware of a potential workaround, but 港標 臺標 are not terms common to people outside of the typography or linguistic circle. And for the HK version we are not adhering to the reference wording provided by the government, but shipping our own orthography based on actual HKers usage, so we would be reluctant to call it that way.

That being said, it is a relatively low priority one, compared with the /A change recently. Other users of Squirrel/librime are usually individual users, which do not have these kind of marketing problems, or derivative/downstream projects maintaining their own fork with all sorts of bells and whistles. So let's focus on the /A change.

We would be fine for the 取第一个字当作「短标签」 suggestion as well as that is consistent with all other parts of Squirrel.

@LEOYoon-Tsaw
Copy link
Member

I don't see why 中文 / Abc in the pop-up indicator will cause confusion in general users. Either 中文 / Abc or / A is sufficiently understandable.

But I won't disagree with your preference for several terms in different places. Making a PR would be the fastest way to see your need addressed.

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

No branches or pull requests

4 participants