Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Question: Can custom compose key combination?

Open Houfalafel opened this issue 8 months ago • 5 comments

Can I make my own combinations for compose? Is there like a code I can add to the layout xml? I want to type these specifically: compose + n + g + <dead_tilde> = n͠g compose + shift + n + g + <dead_tilde> = N͠g compose + g + <dead_tilde> = g̃

These are characters that were used historically in the Philippines. I want to make my own combinations because compose is cool. Also, adding it as a swipe thing could clutter my keyboard as I only use these like twice a month.

Houfalafel avatar Apr 16 '25 14:04 Houfalafel

The Compose key is table-driven but the table is not user-customizable. I was able to copypaste "N͠g g̃ n͠g" here and into an external text editor, so they are Unicode characters and probably should be added to Compose and to the tilde dead key.

"Compose is cool" but custom layouts are cooler; you can easily define these characters as swipe gestures on your custom keyboard.

Spike-from-NH avatar Apr 16 '25 16:04 Spike-from-NH

These characters should be added to the compose key for everyones. Could you do it ? There are some explanations here: https://github.com/Julow/Unexpected-Keyboard/blob/master/CONTRIBUTING.md#adding-symbols-to-shift-fn-compose-and-other-modifiers

I'll re-open because a custom layout is not the solution.

Julow avatar Apr 16 '25 21:04 Julow

I've added these compose sequences using the ASCII ~ symbol in d6dfb5c1. We can add many more sequences if needed.

It's not possible to use dead_tilde in sequences currently but I'd like to fix that. I'll keep this issue open until this is resolved.

Julow avatar Apr 19 '25 13:04 Julow

Would you accept a PR for an app-customizable system for custom compose sequences, similar to custom layouts, or do you prefer to keep any additions upstream?

equaa avatar Jul 09 '25 16:07 equaa

@equaa That would be fantastic !

Julow avatar Jul 11 '25 17:07 Julow