caldurza / autokey

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

Problem with non-ascii / non-English (?) characters (e.g. "ä") #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
***What steps will reproduce the problem?
1. Set up a new phrase containing the character "ä"
2. Use it in a document

***What is the expected output? What do you see instead?
This is the sentence as typed it in the configuration panel:
>>This is inserted by AutoKey: ä
>>[Should have been an "a" with the two dots on top of it]
this is what I see in gedit (or openoffice):
>>This is inserted by AutoKey: U00e4
>>
>>[Should have been an "a" with the two dots on top of it]

***What version of the product are you using? On what operating system?
AutoKey (GTK UI) 0.61.7
Ubuntu 10.04 LTS fully updated/upgraded to date
[suggestion from dev to dev: make this part of the DEBUG output, so users do 
not have to look for this info]

***Please provide any additional information below.

This is a bit of scenario: I work in UK English (this is my keyboard layout and 
locale setting) but the address where I live is the name of a person who 
happens to have an "ä" in its name.

This is the command line output [obtained with autokey-gtk -l]:

INFO - root - Initialising application
INFO - config-manager - Loading config from existing file: 
/home/mac/.config/autokey/autokey.bin
INFO - root - Initialise global hotkeys
INFO - config-manager - Successfully loaded configuration file
DEBUG - config-manager - Global settings: {'showTrayIcon': True, 
'windowDefaultSize': (600, 412), 'undoUsingBackspace': True, 
'enableQT4Workaround': False, 'promptToSave': True, 'interfaceType': 'XEvDev', 
'showToolbar': True, 'serviceRunning': True, 'isFirstRun': False, 
'sortByUsageCount': True, 'inputSavings': 309, 'hPanePosition': 150, 
'menuTakesFocus': False}
INFO - service - Starting service
Xlib.protocol.request.QueryExtension
DEBUG - interface - Keycodes dict: {'<alt_gr>': 108, '<page_up>': 112, '<f12>': 
96, '<f10>': 76, '<ctrl>': 0, '<f9>': 75, '<alt>': 0, ' ': 65, '<up>': 111, 
'<capslock>': 66, '<pause>': 127, '<home>': 110, '<numlock>': 77, '<f1>': 67, 
'<f7>': 73, '<f5>': 71, '<f3>': 69, '<tab>': 23, '<shift>': 62, '<left>': 113, 
'<backspace>': 22, '<scroll_lock>': 78, '<escape>': 9, '<down>': 116, '<f8>': 
74, '<delete>': 119, '<f11>': 95, '<super>': 134, '<print_screen>': 107, 
'<end>': 115, '<right>': 114, '<menu>': 135, '<f2>': 68, '<insert>': 118, 
'<page_down>': 117, '<f6>': 72, '<enter>': 36, '<f4>': 70}
DEBUG - interface - Alt-Grid: XK_ISO_Level3_Shift, 65027
DEBUG - interface - [(92, 0), (108, 0), (92, 2), (108, 2)]
DEBUG - interface - X Server Keymap
DEBUG - interface - [\] : [(94, 0), (94, 2), (20, 4)]
DEBUG - interface - [|] : [(94, 1), (94, 3), (49, 4), (94, 4), (49, 5)]
DEBUG - interface - [`] : [(49, 0), (49, 2)]
DEBUG - interface - [1] : [(10, 0), (10, 2)]
DEBUG - interface - [2] : [(11, 0), (11, 2)]
DEBUG - interface - [3] : [(12, 0), (12, 2)]
DEBUG - interface - [4] : [(13, 0), (13, 2)]
DEBUG - interface - [5] : [(14, 0), (14, 2)]
DEBUG - interface - [6] : [(15, 0), (15, 2)]
DEBUG - interface - [7] : [(16, 0), (16, 2)]
DEBUG - interface - [8] : [(17, 0), (17, 2)]
DEBUG - interface - [9] : [(18, 0), (18, 2)]
DEBUG - interface - [0] : [(19, 0), (19, 2)]
DEBUG - interface - [-] : [(20, 0), (20, 2)]
DEBUG - interface - [=] : [(21, 0), (21, 2)]
DEBUG - interface - [~] : [(51, 1), (51, 3)]
DEBUG - interface - [!] : [(10, 1), (10, 3)]
DEBUG - interface - [@] : [(48, 1), (48, 3), (24, 4)]
DEBUG - interface - [#] : [(51, 0), (51, 2)]
DEBUG - interface - [$] : [(13, 1), (13, 3)]
DEBUG - interface - [%] : [(14, 1), (14, 3)]
DEBUG - interface - [^] : [(15, 1), (15, 3)]
DEBUG - interface - [&] : [(16, 1), (16, 3), (45, 5)]
DEBUG - interface - [*] : [(17, 1), (17, 3)]
DEBUG - interface - [(] : [(187, 0), (18, 1), (187, 2), (18, 3)]
DEBUG - interface - [)] : [(188, 0), (19, 1), (188, 2), (19, 3)]
DEBUG - interface - [q] : [(24, 0), (24, 2)]
DEBUG - interface - [w] : [(25, 0), (25, 2)]
DEBUG - interface - [e] : [(26, 0), (26, 2), (26, 4)]
DEBUG - interface - [r] : [(27, 0), (27, 2)]
DEBUG - interface - [t] : [(28, 0), (28, 2)]
DEBUG - interface - [y] : [(29, 0), (29, 2)]
DEBUG - interface - [u] : [(30, 0), (30, 2)]
DEBUG - interface - [i] : [(31, 0), (31, 2)]
DEBUG - interface - [o] : [(32, 0), (32, 2)]
DEBUG - interface - [p] : [(33, 0), (33, 2)]
DEBUG - interface - [[] : [(34, 0), (34, 2), (17, 4)]
DEBUG - interface - []] : [(35, 0), (35, 2), (18, 4)]
DEBUG - interface - [a] : [(38, 0), (38, 2)]
DEBUG - interface - [s] : [(39, 0), (39, 2)]
DEBUG - interface - [d] : [(40, 0), (40, 2)]
DEBUG - interface - [f] : [(41, 0), (41, 2)]
DEBUG - interface - [g] : [(42, 0), (42, 2)]
DEBUG - interface - [h] : [(43, 0), (43, 2)]
DEBUG - interface - [j] : [(44, 0), (44, 2), (44, 4)]
DEBUG - interface - [k] : [(45, 0), (45, 2)]
DEBUG - interface - [l] : [(46, 0), (46, 2)]
DEBUG - interface - [;] : [(47, 0), (47, 2)]
DEBUG - interface - ['] : [(48, 0), (48, 2)]
DEBUG - interface - [z] : [(52, 0), (52, 2)]
DEBUG - interface - [x] : [(53, 0), (53, 2)]
DEBUG - interface - [c] : [(54, 0), (54, 2)]
DEBUG - interface - [v] : [(55, 0), (55, 2)]
DEBUG - interface - [b] : [(56, 0), (56, 2)]
DEBUG - interface - [n] : [(57, 0), (57, 2), (57, 4)]
DEBUG - interface - [m] : [(58, 0), (58, 2)]
DEBUG - interface - [,] : [(59, 0), (59, 2)]
DEBUG - interface - [.] : [(60, 0), (60, 2)]
DEBUG - interface - [/] : [(61, 0), (61, 2)]
DEBUG - interface - [Q] : [(24, 1), (24, 3)]
DEBUG - interface - [W] : [(25, 1), (25, 3)]
DEBUG - interface - [E] : [(26, 1), (26, 3), (26, 5)]
DEBUG - interface - [R] : [(27, 1), (27, 3)]
DEBUG - interface - [T] : [(28, 1), (28, 3)]
DEBUG - interface - [Y] : [(29, 1), (29, 3)]
DEBUG - interface - [U] : [(30, 1), (30, 3)]
DEBUG - interface - [I] : [(31, 1), (31, 3)]
DEBUG - interface - [O] : [(32, 1), (32, 3)]
DEBUG - interface - [P] : [(33, 1), (33, 3)]
DEBUG - interface - [{] : [(34, 1), (34, 3), (16, 4)]
DEBUG - interface - [}] : [(35, 1), (35, 3), (19, 4)]
DEBUG - interface - [A] : [(38, 1), (38, 3)]
DEBUG - interface - [S] : [(39, 1), (39, 3)]
DEBUG - interface - [D] : [(40, 1), (40, 3)]
DEBUG - interface - [F] : [(41, 1), (41, 3)]
DEBUG - interface - [G] : [(42, 1), (42, 3)]
DEBUG - interface - [H] : [(43, 1), (43, 3)]
DEBUG - interface - [J] : [(44, 1), (44, 3), (44, 5)]
DEBUG - interface - [K] : [(45, 1), (45, 3)]
DEBUG - interface - [L] : [(46, 1), (46, 3)]
DEBUG - interface - [:] : [(47, 1), (47, 3)]
DEBUG - interface - ["] : [(11, 1), (11, 3)]
DEBUG - interface - [Z] : [(52, 1), (52, 3)]
DEBUG - interface - [X] : [(53, 1), (53, 3)]
DEBUG - interface - [C] : [(54, 1), (54, 3)]
DEBUG - interface - [V] : [(55, 1), (55, 3)]
DEBUG - interface - [B] : [(56, 1), (56, 3)]
DEBUG - interface - [N] : [(57, 1), (57, 3), (57, 5)]
DEBUG - interface - [M] : [(58, 1), (58, 3)]
DEBUG - interface - [<] : [(59, 1), (59, 3), (52, 5)]
DEBUG - interface - [>] : [(60, 1), (60, 3), (53, 5)]
DEBUG - interface - [?] : [(61, 1), (61, 3)]
INFO - interface - Attempting to establish connection to EvDev daemon
INFO - interface - EvDev daemon connected
INFO - interface - EvDev interface thread starting
INFO - service - Service now marked as running
INFO - root - Entering main()
DEBUG - interface - Window name: Guake!
DEBUG - service - Received mouse click - resetting buffer
DEBUG - interface - Window name: Troubleshooting - autokey - Tips for resolving 
common problems. - Project Hosting on Google Code - Mozilla Firefox
DEBUG - service - Received mouse click - resetting buffer
DEBUG - interface - Window name: *Unsaved Document 1 - gedit
DEBUG - service - Key: a
DEBUG - service - Input stack at end of handle_keypress: [u'a']
DEBUG - interface - Window name: *Unsaved Document 1 - gedit
DEBUG - service - Key: a
DEBUG - service - Input stack at end of handle_keypress: [u'a', u'a']
DEBUG - interface - Window name: *Unsaved Document 1 - gedit
DEBUG - service - Key: a
DEBUG - service - Input stack at end of handle_keypress: [u'a', u'a', u'a']
DEBUG - interface - Window name: *Unsaved Document 1 - gedit
DEBUG - service - Key: <enter>
DEBUG - interface - Send special key: ['<backspace>']
DEBUG - interface - Send special key: ['<backspace>']
DEBUG - interface - Send special key: ['<backspace>']
DEBUG - interface - Send special key: ['<backspace>']
DEBUG - iomediator - Send via event interface
DEBUG - interface - Sending string: u'This is inserted by AutoKey: \xe4'
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send unicode char: ä
DEBUG - interface - Send modified key: modifiers: ['<ctrl>', '<shift>'] key: u
DEBUG - interface - Send special key: [u'<enter>']
X protocol error:
<class 'Xlib.error.BadValue'>: code = 2, resource_id = 0, sequence_number = 
176, major_opcode = 145, minor_opcode = 2
X protocol error:
<class 'Xlib.error.BadValue'>: code = 2, resource_id = 0, sequence_number = 
180, major_opcode = 145, minor_opcode = 2
DEBUG - interface - Sending string: u'[Should have been an "a" with the two 
dots on top of it]'
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u' ']
DEBUG - interface - Send special key: [u'<enter>']
DEBUG - service - Input stack at end of handle_keypress: []
DEBUG - interface - Window name: *Unsaved Document 1 - gedit
DEBUG - service - Key: <f12>

Original issue reported on code.google.com by quasipe...@gmail.com on 21 Jul 2010 at 10:09

GoogleCodeExporter commented 8 years ago
Thank you for your issue report. This bug is already fixed in the latest 
version of AutoKey, available from the PPA

Original comment by cdekter on 22 Jul 2010 at 12:12