ajatt-tools / furigana Goto Github PK
View Code? Open in Web Editor NEWAutomatically generate furigana on Anki cards.
Home Page: https://ankiweb.net/shared/info/1344485230
License: GNU Affero General Public License v3.0
Automatically generate furigana on Anki cards.
Home Page: https://ankiweb.net/shared/info/1344485230
License: GNU Affero General Public License v3.0
I'm using the master
build of Anki. AJT furigana seems to crash in that version, and probably it will affect future releases.
To reproduce:
Anki 2.1.54 (e6f158e4) Python 3.10.5 Qt 5.15.4 PyQt 5.15.7
Platform: Linux
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2022-06-28 00:11:24
Possible reason: AJT Furigana
Caught exception:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/aqt/editor.py", line 1359, in contextMenuEvent
gui_hooks.editor_will_show_context_menu(self, m)
File "/usr/lib/python3.10/site-packages/aqt/hooks_gen.py", line 2372, in __call__
hook(editor_webview, menu)
File "/home/user/.local/share/Anki2/addons21/1344485230/context_menu.py", line 76, in add_context_menu_items
if Action.enabled():
File "/home/user/.local/share/Anki2/addons21/1344485230/context_menu.py", line 29, in enabled
return config['context_menu'][cls.key]
KeyError: 'generate_furigana_no_kanji'
I don't know why but in some cards this message is in the field where the addon should generate the readings: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.", the reding is in the sentence so it does the work but I need to delete that message in some cards.
OS name: Windows 10
OS version: 21H2 Build 19044.2364
Anki version: 2.1.56
Screenshot:
I'm not sure how feasible this would be, but would it be possible to generate more precise furigana?
For example:
It'd be a better representation of the readings of the kanji and more applicable to learners. An example would be jp-mining-note's kanji hover: https://aquafina-water-bottle.github.io/jp-mining-note/ui/#kanji-hover
Is it possible to revert to the old behavior where furigana for only 1 reading is generated? This used to be the behavior a few weeks ago but it's changed recently. Now I end up having to make more adjustments now than before when it only provided 1.
Windows 10 Home
OS Build: 19044.2728
Anki version: 2.1.56 (07fd88dd)
Here's an image of what I mean. The addon used to only generate 1 of the potential furigana but now it's generating multiple.
Thanks for your help. This addon is great btw, a huge time saver!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.