Code Monkey home page Code Monkey logo

anki_furigana's Introduction

Anki Automatic Kanji Readings and Definitions Add-on

Welcome to my Anki add-on! This add-on provides the ability to automatically populate fields in Anki flashcards with kanji readings and definitions. The add-on utilizes JMdict (Japanese-Multilingual Dictionary) for the definition lookups. It was created primarily because I was a little annoyed that the rubytext never seemed to line up with characters properly with any of the existing addons I could find.

Plus, I didn't really get why I needed to use the internet when there's already readily available dictionaries to be downloaded.

Features

With this add-on, you can:

  • Automatically populate Anki flashcards with kanji readings and definitions.
  • Limit the number of definitions to top X number
  • Work entirely offline.

References

I have used JMdict for fetching kanji readings and definitions. More information about JMdict can be found here: JMdict

Screenshots

Here's an example of what this addon does for a note, please note that there are no note types provided with the addon so you'll need to make your own.

From this

Input

To this

Output

Usage

After installation, please update the following settings found here:

Settings

The following settings are provided

SettingsOptions

  • Input field: This is the field in which Kanji is entered
  • Furigana field: This is where rubytext will be generated for the Kanji input
  • Kana field: This is the hiragana reading from the input field
  • Definition field: This gives you the top X definitions as defined in "Number of Defs"
  • Type field: Gives you the type of word, keiyoushi, meishi etc
  • Number of Defs: Limits the number of definitions in the Definition field

To use simply type in the word like so

Input

Hit tab or move off the field and the rest of the fields will be populated.

Output

To remove the outputs, for example if the card is a duplicate then use the following to clear all fields.

Clear Fields Button

Contribution

Your contributions are welcome! If you have any ideas or suggestions, please feel free to Submit an issue.

License

Please see the LICENSE file for details.

anki_furigana's People

Contributors

kit-nya avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jupiterjesus

anki_furigana's Issues

Error and hang when populating by loss of focus

Sometimes when I tab out of my Kanji field, I get an error box. I can dismiss the box, but the progress popup, "Processing", remains on the screen forever. I can't interact with Anki at all. To regain control, I have to open the task manager and force kill the anki process. The result of "copy debug info" is below.

An example of a word that causes this problem is ๅๆœˆ.

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in
File "aqt.taskman", line 104, in wrapped_done
File "aqt.progress", line 230, in finish
File "aqt.progress", line 275, in _closeWin
TypeError: isdeleted() argument 1 must be PyQt6.sip.simplewrapper, not None

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Japanese ['1344485230', 2024-04-22T01:46, 'None', mod]
Clickable Tags v20 ['1739176371', 2022-01-30T14:58, 'None', '']
HyperTTS - Add speech to your flashcards ['111623432', 2024-04-15T15:11, 'None', mod]
Japanese Automatic Word Definition rt Reading Offline ['1657733540', 2024-04-14T01:30, 'None', mod]
Japanese Pitch Accent ['148002038', 2023-05-07T06:01, 'None', '']
Simple Forvo Audio Downloader ['560814150', 2023-10-31T09:47, 'None', mod]

===IDs of active AnkiWeb add-ons===
111623432 1344485230 148002038 1657733540 1739176371 560814150

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
External Note Editor for the Browser ['1996266159', 2020-03-31T13:59, 'None', '']

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.