wincompose icon indicating copy to clipboard operation
wincompose copied to clipboard

Unicode input that starts with a valid sequence can conflict with built-in sequences

Open bigyihsuan opened this issue 5 years ago • 1 comments

I am trying to type êž­ Latin Capital letter L With Belt (U+A7AD), which does not have a sequence by default.

I do Composeua7ad and expect Ɬ but instead get ă7ad.

However, I can do Compose263aEnter for ☺ Smiling Face but not Composeua4d8 for ꓘ Lisu Letter Kha and instead get ă4d8.

In addition, I can do Composeuf9d1 for ï§‘ CKJ Compatibility Ideograph U+F9D1.

Note that Composeuf is not a built-in sequence, but Composeua is for ă.

bigyihsuan avatar Jan 31 '20 03:01 bigyihsuan

@frankbenoit found a great workaround for this problem: insert an extra 0 zero in between the u and the actual hexcode:

  • Compose u 0 a 7 a d → êž­

In general, this approach seems to work for hexcodes (everything after the u) up to 6 digits long after the 0 zero insertion:

  • Compose u 1 F 5 2 5 → :fire:
  • Compose u 0 1 F 5 2 5 → :fire:
  • Compose u 0 0 1 F 5 2 5 → u001f525

sunaku avatar Mar 06 '24 06:03 sunaku