I don’t see a link to the code, maybe I could do a PR with those features if I can get access to the code?
My bad, I never published it, but I always meant to do it. leave me some more days and I’ll do it. If in a week I have not done it, please nudge me…
[ the reason I didn’t publish it yet, is that I’m more a mercurial fan rather that git, but there are no more public free mercurial spaces, anyhow I’ll publish it on github…]
Great thanks! If I can make it work it will make my card creation flow so much easier.
Consider this a nudge
Great, thanks for the nudge! *
So the repo is: GitHub - sandroden/reverso-anki-addon: An addon to import from Reverso site
I don’t consider the story to be that important up to now. So I just imported the current repo.
As far as your issues:
the target deck is something that defy my comprehension. I tried hard, it seems to work in some circumstances (mostly for me) and fails in others. The API from anki are in my opinion quite cumbersome.
changing the format of the card is a nice feature, but I wonder if it’s the way to cope with “close”.
My typical workflow is that I
- add a card from Reverso
- I edit using some other dicts to get more examples
- after a week I add a close from the examples
I would have liked to make this last step as easy as possible and maybe add a reminder if no close was ever added from this note but I have never found a really satisfying solution. I’m happy to see your suggestions.
Sandro
*
Great thanks, I will give it a try but I’m new to add-on, python, and QT…so we’ll see
os: mac m1
Debug info:
Anki 2.1.56 (07fd88dd) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.2.1-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-04-02 01:57:17
Add-ons possibly involved: Reverso importer
Caught exception:
Traceback (most recent call last):
File “aqt.browser.table.table”, line 453, in _on_context_menu
File “_aqt.hooks”, line 1204, in call
File “anki.hooks”, line 34, in runHook
File “/Users/abderrahman/Library/Application Support/Anki2/addons21/2060267742/utils.py”, line 95, in setupMenu
menu_data = [x.data() for x in menu.children()]
File “/Users/abderrahman/Library/Application Support/Anki2/addons21/2060267742/utils.py”, line 95, in
menu_data = [x.data() for x in menu.children()]
AttributeError: ‘QMenu’ object has no attribute ‘data’