pynput
pynput copied to clipboard
Wrong indic unicode character getting printed
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
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.
Are these characters that have upper and lower case versions? If so, see Issue #445.