raghuram534 / autokey

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

non-latin (unicode devanagari abbreviation) abr does not work, even though the configuration file does has it right. #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I want to replace य़ character with '?' 
2. but after adding the य़ as abbr, and '?' as value does not work with 
autokey 0.71.0

What is the expected output? What do you see instead?
when I enter य़ it should be replaced with ? char

What version of the product are you using? On what operating system?
autokey 0.71.0

Please provide any additional information below.
please see the attachment not-working.aky file, with the phrase:

---------------------the output of the file is here-----------------------
[
    {
        "usageCount": 0, 
        "omitTrigger": false, 
        "prompt": true, 
        "description": "New Phrase", 
        "abbreviation": {
            "ignoreCase": false, 
            "wordChars": "[\\w]", 
            "immediate": true, 
            "abbreviation": "\u095f", 
            "backspace": true, 
            "triggerInside": true
        }, 
        "hotkey": {
            "hotKey": null, 
            "modifiers": []
        }, 
        "phrase": "?", 
        "modes": [
            1
        ], 
        "showInTrayMenu": false, 
        "matchCase": false, 
        "filter": null, 
        "type": "phrase", 
        "sendMode": "<ctrl>+v"
    }
]
---------------------the output of the file is here-----------------------

Original issue reported on code.google.com by fast.riz...@gmail.com on 7 Aug 2010 at 2:03

Attachments:

GoogleCodeExporter commented 8 years ago
My suspicion would be that the abbreviation characters are not actually decoded 
correctly. When you run AutoKey from the terminal using autokey-gtk -l or 
autokey-qt -l, it will print out every key you press. Do the keys it prints out 
match what you expect wrt these devanagari chars?

Original comment by cdekter on 26 Aug 2010 at 11:16

GoogleCodeExporter commented 8 years ago
-----------------
DEBUG - service - Input stack at end of handle_keypress: [u'/', u'?']
य़DEBUG - iomediator - <shift> released
DEBUG - iomediator - <shift> pressed
य़DEBUG - service - Raw key: u'/', modifiers: ['<shift>'], Key: u'?'
-----------------
Yes, the य़ key (shift+/ or ?) in devanagari keyboard layout character is 
shown correctly. 

Actually, I

Original comment by fast.riz...@gmail.com on 26 Aug 2010 at 12:27

GoogleCodeExporter commented 8 years ago
Actually no, it's not detected correctly, it's being detected as '?'. How have 
you configured your keyboard layout? Are you using the Gnome panel applet to 
switch layouts?

Original comment by cdekter on 26 Aug 2010 at 12:31

GoogleCodeExporter commented 8 years ago
no, kde 4 keyboard layout. I use autokey-qt.

It seems autokey is not knowing the 'keyboard layout' change. Or does it really 
need to know?

Original comment by fast.riz...@gmail.com on 27 Aug 2010 at 6:21

GoogleCodeExporter commented 8 years ago
Same thing really... If you disable keyboard layouts and just use a single 
layout it should work. You can't switch layouts while AutoKey is running, 
otherwise it will just use the layout that was active at startup. This is 
mentioned on the Troubleshooting wiki 
http://code.google.com/p/autokey/wiki/Troubleshooting

Original comment by cdekter on 28 Aug 2010 at 5:10