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

Can't compose superscript numerals #9

Open
halfbeing opened this issue Jun 12, 2022 · 6 comments
Open

Can't compose superscript numerals #9

halfbeing opened this issue Jun 12, 2022 · 6 comments

Comments

@halfbeing
Copy link

I have just installed Mac-Ompose. All the combinations I have tried so far have worked except for superscript 1, 2, 3, etc. I have tried every combination listed in the Compose file for superscript 2 for which keys were available (meaning I didn't try the one that uses the keypad), such as dead circumflex 2 and 2 dead circumflex. I normally use the US International and Canadian Multilingual layouts, but I tried also with US standard, which has a caret rather than a dead circumflex. However, that didn't work either.

@jsarenik
Copy link
Owner

jsarenik commented Jun 19, 2022

Both compose 2 ^ and compose ^ 2 work for me on Linux in X Window System and they produce ². My Compose file is in sync with the one used here. Both contain the lines defining twosuperior # SUPERSCRIPT TWO.

The Compose file used in Mac-Ompose contains following related lines:

<dead_circumflex> <2>                   : "²"   twosuperior # SUPERSCRIPT TWO
<Multi_key> <asciicircum> <2>           : "²"   twosuperior # SUPERSCRIPT TWO
<Multi_key> <2> <asciicircum>           : "²"   twosuperior # SUPERSCRIPT TWO
<dead_circumflex> <KP_Space>            : "²"   twosuperior # SUPERSCRIPT TWO
<Multi_key> <asciicircum> <KP_Space>    : "²"   twosuperior # SUPERSCRIPT TWO
<dead_circumflex> <KP_2>                : "²"   twosuperior # SUPERSCRIPT TWO
<Multi_key> <asciicircum> <KP_2>        : "²"   twosuperior # SUPERSCRIPT TWO

@halfbeing
Copy link
Author

I have only been able to test the first three of those seven because I don't have a keypad. None of those first three work in any of the layouts US International PC, US standard, or Canadian French CSA.

@jsarenik
Copy link
Owner

I see. My original use-case was to press right Alt (right Command on Mac keyboard) as compose key. It may be kind of hard-coded into DefaultKeyBinding.dict file. I hope this helps.

@halfbeing
Copy link
Author

Right Command is the key I am using as the compose key. I tried to switch to Right Option to see what would happen, but for some reason Karabiner-Elements won't save any changes, so that wasn't possible.

The sequences are listed in DefaultKeyBinding.dict.

I have tried other sequences using circumflex accent, such as the one for h with circumflex, but none of them work.

To be clear, am I right to understand that "circumflex accent" is not the same as ascii circumflex, and refers instead to the symbol I get in the US International PC layout when I press dead circumflex followed by space? I have tried using both this circumflex accent in the US International and Canadian multilingual layouts, and the ascii circumflex in the US standard layout, but neither work. There are many ways to produce an isolated circumflex accent in the US International PC layout, and one of them (Option-shift-i) doesn't involve a dead key, but even this doesn't work in the compose key sequences involving a circumflex accent.

@jsarenik
Copy link
Owner

I guess it may be some incompatibility between the definitions in the dict file and what Karabiner-Elements can do with it on macOS. Apologies, I do not have any means to play with it now (no macOS here).

The question regarding circumflex makes sense but is also beyond my knowledge so I do not know.

@halfbeing
Copy link
Author

OK. I'll try some other forums when I get time, and if I find an explanation, I'll post it here.

Thanks for taking the time to look into this.

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

No branches or pull requests

2 participants