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

Option to allow diacritics on all letters

Open recentlymaterialized opened this issue 1 year ago • 3 comments

Is there a way to allow the combining diacritic keys to be applied to any letter? For example, when I type ◌̣, it restricts me to vowels: Screenshot_20240329_010522_Vivaldi Because these keys are annoying to copy and paste from wiktionary, can I somehow disable the modifier keys' restrictions so I can type letters such as ⟨ṭ ḍ ṇ ṣ ḷ ṛ⟩ used in Hindustani romanization or ⟨ǚ⟩ used in pinyin? The nature of Unicode combining characters allows sequences such as ⟨t⟩ + ⟨◌̣⟩ = ⟨ṭ⟩ or even ⟨ü⟩ + ⟨◌̌⟩ = ⟨ǚ⟩, so I do not understand why the keyboard enforces this limitation.

recentlymaterialized avatar Mar 29 '24 05:03 recentlymaterialized

You aren't restricted to vowels—but you are restricted to combinations for which a glyph exists in UNICODE.

  • Note the new Compose key (circle+square legend).
  • Roman Hindi combinations exist. For example, press Compose ! t.
  • Pinyin combinations exist; see my custom layout in #585.

Spike-from-NH avatar Mar 29 '24 14:03 Spike-from-NH

Hi, currently, the keyboard avoids outputting composite characters (a character composed of several unicode code points) except in some case (see the acute accent, needed for https://github.com/Julow/Unexpected-Keyboard/issues/437).

With recent discussion, I think this arbitrary limitation should be lifted and composite characters should be allowed. Could you do the implementation ? See the link above for how it works with the acute accent. We must make sure to run map_dead_char first and use the combining diacritic only if it returns null. Perhaps a new function map_dead_char_or_combining would be nice.

Julow avatar Mar 30 '24 09:03 Julow