pynput icon indicating copy to clipboard operation
pynput copied to clipboard

Wrong indic unicode character getting printed

Open androidanit opened this issue 3 years ago • 2 comments

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

androidanit avatar May 27 '21 18:05 androidanit

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.

moses-palmer avatar Oct 11 '21 18:10 moses-palmer

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

pfps avatar Jan 28 '22 01:01 pfps