authotkey scripts for wordquery plugin in anki
definitely works on anki 2.0. i don't use 2.1
wordquery : https://ankiweb.net/shared/info/775418273 there is also fastwordquery.
you just download the stardict dictionaries and set it up and you're good to go. i use the c-e and c-j dics. Apparently you can set up website searches too but I never looked into that. http://download.huzheng.org/
https://www.chinese-forums.com/forums/topic/52517-subs2srs-anki-deck-index/
https://www.chinese-forums.com/forums/topic/49841-here-is-huge-collection-of-simplified-chineseenglish-subtitle-anki-flashcards-from-most-of-my-favourite-tv-shows-around-600000/?tab=comments#comment-424043 (subtitles deck with no audio)
so I got a bunch of subs2srs decks from the chinese forums site and I thought that wordquery works really well with mandarin since there's no conjugation (compared to every other language lol) and you just have to run wordquery with the word plugged in but morphman isn't good for isolating the word. I realized that authotkey is the solution. Morphman is good at sorting cards so I see useful stuff first with the priority.db, external.db and whatnot. i also filter by length of the card so that I'm not shown long cards.
https://massimmersionapproach.com/table-of-contents/anki/morphman/
these plugins are cool too! https://ankiweb.net/shared/info/417709332 https://ankiweb.net/shared/info/2129668097
to use authotkey you have a windows computer, install it, open a notepad field, paste the script, save as whatever.ahk with file type set as ALL, then open the .ahk to run it. you can put the .ahk script in the startup folder to make it run at startup
So I use this script while doing the subs2srs anki reviews (first time seeing them). I highlight the word, press f5 THEN the script appends the word a .txt (so I can import into anki and run wordquery through them) AND it also edits the anki card. If you don't want to append text you can delete that line... I set the anki card up so that the wordquery field is in field 9 so in the script it presses control +9 (send ^ 9 means control +9) to paste the text into the correct field. The control + 9 shortcut works because I have the quick field navigation plugin installed https://ankiweb.net/shared/info/734297936 if you can't install that plugin for whatever reason you could insert a bunch of tabs into the script to make it work...
#IfWinActive, ahk_class QWidget
$F5:: ; select text press alt-x
send ^c
Sleep, 100
ClipWait
FileAppend, %clipboard%`n, C:\Users\MYUSERNAME\OneDrive\Documents\mand.txt
send {e}
send ^9
send ^a
send ^v
You can add "Send {Escape}" at the end of the script so that it exits of the edit window after it's done pasting. I put a code in the beginning of both codes so that this authotkey only executes when I'm on the anki window (like nothing will happen if you're on notepad, internet browser etc).
Wordquery comes with control + q as a default shortcut for running it but it doesn't work for me no matter what I do so I made an authotkey for it. So with the edit window open and the mouse on the edit window, I press f7 and it runs wordquery and closes the edit window when it is done.
#IfWinActive, ahk_class QWidget
$F7:: ; select text press alt-x
Send {RButton}
Send {Up}
Send {Enter}
Send {Enter}
sleep, 4500 ;(wait 2 seconds)
Send {Escape}
Return
The other option is to batch run wordquery in the browser at the end if you don't care to know what the word means at that very moment. you'd do that by searching for cards that contain text in the wordquery field THEN run wordquery.
My strategy with subs2srs is to curate cards by marking them and then moving them into a curated deck (doing reviews in that deck) by searching tag:Marked.
these are the dictionaries i use on wordquery
Posted Sep 5, 2019, 6:59 PM UTC · edited
[removed]