moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.77k stars 247 forks source link

Wrong indic unicode character getting printed #388

Open androidanit opened 3 years ago

androidanit commented 3 years ago

Description Controller().tap produces incorrect output for few specific unicode values on Ubuntu with pynput 1.7.3

Reference for unicode characters - https://en.wikipedia.org/wiki/Devanagari_(Unicode_block)

keyboard.tap("\u092d") भ (Correct) keyboard.tap("\u092e") र (Incorrect) This should be म keyboard.tap("\u092f") य (Correct)

More incorrect values - keyboard.tap("\u0938") Typed ञ Expected स keyboard.tap("\u0939") Typed ल Expected ह

There must be more. I tried even with 32 bit values like \u00000938, same error is observed

moses-palmer commented 2 years ago

Thank you for your report.

Unfortunately, I cannot reproduce this; on my system, the expected symbols are consistently produced. Do you think this could be an issue with your X server? I run my test application under XWayland.

pfps commented 2 years ago

Are these characters that have upper and lower case versions? If so, see Issue #445.