GithubHelp home page GithubHelp logo

ajatt-tools / furigana Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 4.0 134 KB

Automatically generate furigana on Anki cards.

Home Page: https://ankiweb.net/shared/info/1344485230

License: GNU Affero General Public License v3.0

Python 56.99% CSS 18.62% HTML 22.89% Shell 1.50%
anki anki-addon japanese furigana readings ajatt

furigana's People

Contributors

andrewchenk avatar tatsumoto-ren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

furigana's Issues

Optional configuration to only provide furigana for only 1 reading?

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.
image

Thanks for your help. This addon is great btw, a huge time saver!

KeyError: 'generate_furigana_no_kanji' in Anki 2.1.54

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:

  1. Open browser
  2. Right-click on any field in the browser's editor

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'

Implement more precise furigana

I'm not sure how feasible this would be, but would it be possible to generate more precise furigana?
For example:

  • 関[かん]連[れん] instead of 関連[かんれん]
  • 指[し]揮[き]者[しゃ] instead of 指揮者[しきしゃ]
  • 自[うぬ]惚[ぼ]れる instead of 自惚[うぬぼ]れる

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

Error message in field

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:

imagen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.