elieobeid7 / autokey

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

Feature request: detect, add abbreviation to existing phrase #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use Autokey mainly as a global spell-corrector, and I have a simple script 
(attached) to read a string of the form "<misspelled> # <corrected>" which 
replaces <misspelled> with <corrected> and adds a new phrase to Autokey to 
automatically make the replacement in the future.

It would be nice if, in addition, the script could (1) detect if there is 
already a phrase with the same name, and (2) *add* an abbreviation for it, 
rather than creating a new phrase each time.  (I tend to mis-type words in many 
ways.)

Original issue reported on code.google.com by justin.y...@gmail.com on 5 Nov 2012 at 4:35

Attachments:

GoogleCodeExporter commented 9 years ago
You should be able to do this by checking the contents of the folder object. 
This is only partially tested, but it would be something along these lines:

folder = engine.get_folder("Spelling")
if title not in [ x.description for x in folder.items ]:
    ....

Hope that is helpful.

Original comment by Titan8...@gmail.com on 1 Mar 2013 at 5:38

GoogleCodeExporter commented 9 years ago
I am new to this. I used AHK for spell checking in the past using this 
script:http://www.autohotkey.com/download/AutoCorrect.ahk

I know there is a way to do this on Autokey, and I think this script would be 
great for it. 

The only thing is I have no idea where to start. Any insight?

Original comment by ryanrod...@gmail.com on 18 Apr 2013 at 4:33