caldurza / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

A few accented chars do not get pasted, while others do #234

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a phrase with the characters 'ő' or 'ű', e.g. I use 'történő', 
'működik'
2. Give it a hotkey or abbreviation, 'tö', 'mk'
3. Try to paste it, nothing happens. 

What is the expected output? What do you see instead?
I expect to see the words 'történő', 'működik' entered.
Nothing happens. Sometimes the whole keyboard locks up, only 'force quit' works 
with the mouse

What version of the product are you using? On what operating system?
autokey-gtk, 0.90.4, Ubuntu 11.10 desktop, with the latest updates

Please provide any additional information below.

-- These characters could not be used in ancient versions, before the program 
used the clipboard, later on worked in 0.71.2
-- There is no problem with other accented chars, like 'áéíúóöü'
-- here is what is on the screen when started with 'autokey-gtk -l', and trying 
to paste the phrase 'történő' with the abbr. 'tö'

2013-02-09 14:45:05,959 DEBUG - service - Raw key: u't', modifiers: [], Key: t
2013-02-09 14:45:05,960 DEBUG - service - Window visible title: u'FocusProxy', 
Window class: 'Focus-Proxy-Window.FocusProxy'
2013-02-09 14:45:05,960 DEBUG - service - No phrase/script matched hotkey
2013-02-09 14:45:05,965 DEBUG - service - Input stack at end of 
handle_keypress: [u't']
2013-02-09 14:45:06,329 DEBUG - service - Raw key: u'\xf6', modifiers: [], Key: 
ö
2013-02-09 14:45:06,329 DEBUG - service - Window visible title: u'FocusProxy', 
Window class: 'Focus-Proxy-Window.FocusProxy'
2013-02-09 14:45:06,329 DEBUG - service - No phrase/script matched hotkey
2013-02-09 14:45:06,332 DEBUG - service - Input stack at end of 
handle_keypress: [u't', u'\xf6']
2013-02-09 14:45:07,007 DEBUG - service - Raw key: u' ', modifiers: [], Key:  
2013-02-09 14:45:07,007 DEBUG - service - Window visible title: u'FocusProxy', 
Window class: 'Focus-Proxy-Window.FocusProxy'
2013-02-09 14:45:07,007 DEBUG - service - No phrase/script matched hotkey
2013-02-09 14:45:07,009 DEBUG - iomediator - Send via clipboard
2013-02-09 14:45:07,009 DEBUG - service - Input stack at end of 
handle_keypress: []
2013-02-09 14:45:07,009 DEBUG - service - Ignored locking error in 
handle_keypress
2013-02-09 14:45:07,011 DEBUG - interface - Send special key: ['<backspace>']
2013-02-09 14:45:07,013 DEBUG - interface - Send special key: ['<backspace>']
2013-02-09 14:45:07,014 DEBUG - interface - Send special key: ['<backspace>']
2013-02-09 14:45:07,015 DEBUG - interface - Sending string: 
u't\xf6rt\xe9n\u0151 '
2013-02-09 14:45:07,020 ERROR - interface - Error in X event loop thread
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/autokey/interface.py", line 116, in __eventLoop
    method(*args)
  File "/usr/local/lib/python2.7/dist-packages/autokey/interface.py", line 500, in __sendStringClipboard
    self.__fillClipboard(string)
  File "/usr/local/lib/python2.7/dist-packages/autokey/interface.py", line 537, in __fillClipboard
    self.clipBoard.set_text(string.encode("utf-8"))
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: set_text() takes exactly 3 arguments (2 given)

Original issue reported on code.google.com by zso...@gmail.com on 10 Feb 2013 at 4:06