Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JapaneseFurigana

Une langue s'apprend dans le système d'écriture qui lui est propre -- Julien Fontanier

JapaneseFurigana is an Anki 2.1 add-on providing support for adding or removing furigana on Japanese content in cards. It is intended to work cross-platforms, either on Windows, MacOS or Linux.

  • Supports ruby tags, bracket notation, bulk card generation
  • Apple Silicon (M1, M2...) has an experimental support.
  • Japanese readings are generated by MeCab.

Usage

JapaneseFurigana adds two buttons in the card editor toolbar that detects kanjis and generates or removes their respective furigana readings.

Tip

  • Add furigana reading with ⌘R or Ctrl+R
  • Remove furigana reading with ⌥⌘R or Ctrl+Alt+R

If text is selected inside a field, furigana is generated or removed only for the selection; otherwise the whole field is processed. When regenerating readings on already-annotated text, select whole words (a selection covering only part of an annotated word, such as the kanji without its bracket reading, leaves the old reading outside the selection untouched).

screenshot

This plugin will generate furigana using the recommended bracket notation by default, but also offers compatibility with ruby tags generated by other tools such as ClozeFuriganaTools.

I will try my best to offer a backward compatibility with older versions of Anki but I do not guarantee it. Anki moves pretty fast and we need to follow.

Options

  • Edit > Bulk Generate Furigana to generate furigana on selected cards in the browse window
  • Tools > Use ruby tags to generate furigana using ruby tags instead of bracket notation
  • Tools > Ignore numbers to avoid generating furigana for numbers

Tests

I try to include unit tests as much as possible, you can run them with python -m unittest.

Once installed on your system, the extension is located in

  • ~/Library/Application Support/Anki2/addons21/ on MacOS
  • ~/.local/share/Anki2/addons21/ on Linux
  • %APPDATA%\Anki2\addons21\ on Windows

Why

There is already plently of plugins available for Japanese, but most of them are incompatible with the lastest versions of Anki or do not work on MacOS.

JapaneseFurigana was originally inspired by ClozeFuriganaTools and Simple Furigana but has since been refactored to simplify and debloat it and does not include code from these two projects anymore.

About

Anki add-on providing support for adding furigana on Japanese text

Topics

Resources

Stars

33 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages