[Fork][Updated] Japanese Reading and Pitch Accent

AnkiWeb addon 905390048

Fork of Japanese Readings and Pitch Accent

1 other version of this addon exists. Compare versions โ†“

Generates Japanese furigana readings and pitch-accent data for single notes, automatically, or in bulk, with customizable accent coloring, graphs, hover/tap reveal, and Migaku-style display.
AI-generated summary; may contain mistakes.

card-creationnote-managementformattingappearancecard-templatesfork-or-reuploadmobile-compatiblebeta

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
1 (๐Ÿ‘ 1 ยท ๐Ÿ‘Ž 0)
Updated
2026-11-30
Anki versions
26.09~
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, CSV, JavaScript, CSS, Common Lisp, JSON, SCSS, HCL
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-30 (1 days before the snapshot).
  • Test files: 4.
  • GitHub Actions workflows: 1.
  • Commits in the last year: 24.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 9 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
26.09+2026-11-30
History across monthly snapshots

Loadingโ€ฆ

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.4MaintenanceLast activity VotesApprovalGitHub starsNotes
Japanese Readings and Pitch Accent original supported abandoned 2 Jan 2023 ๐Ÿ‘ 12 ยท ๐Ÿ‘Ž 1 67% 35 beta
โ†ณ [Fork][Updated] Japanese Reading and Pitch Accent this addon supported active 30 Nov 2026 ๐Ÿ‘ 1 ยท ๐Ÿ‘Ž 0 21% 1 beta

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Description

This is a fork of Ben Kerman's add-on, updated for Anki 26.09 and extended with: MeCab that runs inside Anki on Windows, macOS and Linux, automatic generation for new notes, output in Anki's built-in furigana syntax, reveal-on-hover/tap options for the card front, a Migaku-like style, particle pitch in the accent graph, {{FrontSide}} support, and dictionary data rebuilt from current sources.

Aside from making Ben Kerman's add-on compatible with Anki 26.09, this updated version also makes its usage slightly more convenient. Providing built-in support for things users needed to setup themselves previously. To get started, check out the README.md on GitHub.

If you encounter any issues, please include your Anki version and other add-ons that could cause incompatibilities. If you used the Migaku-Editor-Addon before (I am not affiliated with Migaku), I've created an updated version of that Addon as well that is not yet available on AnkiWeb and needs to be installed manually. If you use that Addon, please leave a comment, I'll go ahead and add the updated version to AnkiWeb as well then :)

README

Japanese Readings and Pitch Accent Add-on

This Anki add-on allows automatically generating readings (furigana) and pitch accent information for an entire field with a single button press. It can also convert any amount of cards in bulk, or fill in fields automatically when notes are added.

This is a fork of Ben Kerman's add-on, updated for Anki 26.09 and extended with: MeCab that runs inside Anki on Windows, macOS and Linux, automatic generation for new notes, output in Anki's built-in furigana syntax, reveal-on-hover/tap options for the card front, a Migaku style, particle pitch in the accent graph, {{FrontSide}} support, and dictionary data rebuilt from current sources.

The add-on is currently experimental and you'll probably encounter bugs or crashes. Data corruption is extremely unlikely (probably even impossible), the specific notes being changed aside, but you should still make backups, especially when bulk converting notes, and enable Anki's built-in automatic backups if you haven't already.
See below for details on how to report issues.

Getting Started

  1. Use Anki 26.09 or later. Both Anki's regular editor and its experimental new editor are supported.
  2. Download the file ending in _full.ankiaddon from the latest release and install it with Tools โ†’ Add-ons โ†’ Install from file... (or by double-clicking it). The version on AnkiWeb is the original add-on without the changes in this fork.
    • The full file contains everything the add-on needs out of the box: pitch accent data, MeCab and its dictionary. MeCab runs inside Anki on Windows (x64), macOS and Linux, so there's nothing else to install. (Up to version 0.3 this file was called ipadic.)
    • The no-dictionary file has everything except the MeCab dictionary, which you then need to install yourself and select in the preferences. (Up to version 0.3 this file was called full.)
    • The lite file contains only the add-on itself, which means you will need to supply your own pitch accent/variant data and install MeCab as well as a MeCab dictionary for it to use externally; see Installing MeCab.
  3. Restart Anki, open the Manage Note Types menu (Ctrl+โ‡ง+N) and set up your templates as described in the note type setup.
  4. Open the add-on's preferences (Tools โ†’ JRP Add-on Preferences...), go to the Note Types tab, then select and Add all note types you set up in the last step.
    Click Remove MIA/Migaku for any note types you previously used the Migaku Japanese Add-on with to remove the script and styling from that add-on, otherwise this add-on will not work properly.
  5. Save your preferences. The add-on inserts its card script and stylesheet into the note types you added. You should now be able to preview or review any cards that contain reading/accent syntax with furigana and accent coloring / indicators.

When you update the add-on, the script and stylesheet in your note types are updated automatically the next time Anki starts. Only the sections marked as managed by the add-on are changed.

Adding Readings and Pitch Accent Information

Individual

To generate or remove readings and accent info for a single note, open it in the Anki browser or the Add window, focus the field you want to change and click one of the conversion buttons at the right of the editor toolbar or press the associated shortcut:

Shortcut Result
F2 Generate readings and accents in the default syntax
Ctrl+F2 Generate readings and accents in Migaku syntax
Shift+F2 Generate readings in Anki's built-in furigana syntax
F4 Remove all reading/accent syntax and restore the plain text

Running a conversion again on a field that already contains syntax regenerates it.

Anki's Built-in Furigana Syntax

Readings can also be written in Anki's own furigana syntax (ๆ—ฅๆœฌ[ใซใปใ‚“]ใฎ ่พžๆ›ธ[ใ˜ใ—ใ‚‡]), which the built-in {{furigana:Field}} filter displays without this add-on, for example in shared decks. Use the button next to the other conversion buttons (Shift+F2) or the Anki furigana type in bulk conversion. This syntax can't hold pitch accent information, and fields in it should be shown with {{furigana:Field}} rather than inside a data-jrp-generate element. Remove (F4) works on it as well.

Automatically When Adding Notes

In the add-on's preferences, on the Note Types tab, enter the names of the fields to fill in under Auto-generate fields (comma-separated, e.g. Sentence, Word). Whenever a note of that type is added, through Anki's Add screen or from another add-on such as AnkiConnect (used by Yomitan), those fields get readings and accents in the default syntax. Fields that are empty or already contain reading/accent syntax are left alone, and a note is always added, even if generation fails.

Bulk Conversion

The Notes entry in the browser's menu bar contains an action for converting notes in bulk.

Select any notes you want to change, choose the bulk conversion action from the menu bar, adjust the configuration dialog to what you want and click Convert. All notes need to be of the same note type, since it wouldn't be possible to determine the target field otherwise.

With the Default and Migaku conversion types, any notes that already contain reading/accent syntax will be converted directly to the closest equivalent in the target syntax without regenerating (unless the corresponding option is checked), or left unchanged if the existing syntax type is the same as the target.

If you're converting large amounts of notes, such as sentence mining decks containing hundreds or thousands of cards, make sure to back everything up before running the conversion. Exporting the deck(s) with scheduling information (but without media, since the conversion only changes the notes themselves) should be sufficient.

Card Display

How readings and accents look on cards is set per note type in the add-on's preferences: Tools โ†’ JRP Add-on Preferences... โ†’ Note Types โ†’ Edit Style. Save the preferences afterwards to apply changes to the note type.

  • Coloring and indicators: every word is colored by its accent pattern (heiban, atamadaka, nakadaka, odaka, kifuku) and gets an indicator: bars by default, or diamonds with Use diamond indicators. The colors can be changed in the same dialog.
  • Accent graph: hovering over a word shows a graph of its pitch, written in katakana (in hiragana with Migaku style). With Show particle pitch in graph (on by default), a faded โ—Œ after the word shows the pitch of a following particle: high after heiban words, low after accented ones, which is how e.g. ็ซฏใŒ (heiban) and ๆฉ‹ใŒ (odaka) differ.
  • Front of the card: with Hide information on the front of cards (on by default), furigana, coloring, indicators and graphs are hidden in elements with the class jrp-front (see the note type setup). Under Show on hover or tap on the front you can choose any of these to appear while hovering over a word. On devices without a mouse, such as AnkiDroid or AnkiMobile, tapping a word shows them and tapping it again hides them.
  • Migaku style: makes cards look like the Migaku Japanese add-on: diamond indicators, a hiragana graph with pattern labels (H, A, N3, O, K2) below it, and furigana only while hovering over or tapping a word. Templates made for the Migaku add-on also work with it as they are; see migrating.
  • Vertical writing is supported; see the note type setup.

Syntax

The add-on supports its own fully-featured syntax and is also compatible with the syntax from the old Migaku Japanese Add-on.

Default

In the default syntax, readings are written in square brackets with kanji on the left and furigana on the right separated by a |, like [ๆŒฏ|ใต]ใ‚Š[ไปฎๅ|ใŒใช].
Words with pitch accent information are enclosed in curly braces that contain the word (including reading tags) itself and accent information after a semicolon: {[ๅ—|ใ†]ใ‘[ๅ…ฅ|ใ„]ใ‚Œใ‚‹;Y4,0}.

The accent information normally consists of a comma-separated list of numbers, each representing the accented mora, or 0 for unaccented (ๅนณๆฟ) words. The only special cases are unknown accents marked with a ?, which can only occur by converting from Migaku syntax, and split accents like ไธ€็›ฎ็žญ็„ถ (ใ„ใกโ†“ใ‚‚ใใƒปใ‚Šใ‚‡โ†’ใ†ใœใ‚“) which are composed of several parts separated by dashes. Each part consists of the number of the accented mora, an @ sign, and the number of moras it applies to. For example: {[ไธ€็›ฎ็žญ็„ถ|ใ„ใกใ‚‚ใใ‚Šใ‚‡ใ†ใœใ‚“];2@4-0@4,0}.

An ! and Y can be placed before the actual pitch accent information.
Exclamation marks indicate ambiguous accents, such as for many kana-only words or certain words with multiple accents. The add-on automatically inserts ambiguity marks if it found more than one possible set of accents with the same reading for a word. You should then manually look up the words in question and adjust the accent tags as necessary.
If present, a Y (from ็”จ as in ๆดป็”จใƒป็”จ่จ€) will cause all accents other than [0] to be displayed as the kifuku (่ตทไผ) pattern. Ys are added to all words identified as ๅ‹•่ฉž (verbs) or ๅฝขๅฎน่ฉž (i-adjectives) by MeCab.

Base readings for conjugated words can be indicated in two ways, inline like {[่กŒ|ใ„][ใฃใฆ=ใ];Y0}, or after the accent(s) like {[ๆฅ|ใ]ใŸ;Y1|ใใ‚‹}.

Migaku

For backwards compatibility, Migaku-style syntax is also supported, but it has some limitations compared to the new syntax:

  • Only one reading per word is possible, leading to furigana frequently duplicating characters from the word, like ใ“ใฎๅ…ˆใ“ใฎใ•ใ, ไป˜ใๅˆใคใใ‚ใ† or ๅค‰ใ‚ใ‚Š่บซใ‹ใ‚ใ‚Šใฟ.
  • The base reading of conjugable words must always be included in full, even the part identical to the reading of the conjugated form. This is also true if the base reading and actual reading are the same, so the Migaku version of what would be {[้™ฅ|ใŠใจใ—ใ„]ใ‚Œใ‚‹;Y5,0} in default syntax is ้™ฅ[ใŠใจใ—ใ„,ใŠใจใ—ใ„ใ‚Œใ‚‹;k5,h]ใ‚Œใ‚‹.
  • Since words are space-separated, regular ASCII spaces can't be represented properly and are replaced with en spaces (U+2002).
  • Ambiguous accents can't be marked and thus won't be highlighted.
  • Split accents can't be accurately represented and will be displayed as unknown.

Migrating from the Migaku Japanese Add-on

Follow the guide to getting started above, including Remove MIA/Migaku for your existing note types.

To keep the look of the Migaku add-on, enable Migaku style in the note type's style settings: diamond indicators, a hiragana accent graph with pattern labels (H, A, N3, O, K2), and furigana only while hovering over or tapping a word. With it, Migaku templates (class="wrapped-japanese" with a display-type) also work without changes; see the note type setup. You'll need to manually transfer your accent pattern colors to the note type style settings if you want to keep them. The add-ons have different default colors.

You can easily migrate existing notes to the new syntax without losing any manual changes by selecting them in the browser and bulk converting them with the Default conversion type as long as Regenerate contents is disabled. Make sure to back up all notes in case there are bugs in the conversion algorithm.

Data Sources and Licenses

The add-on's code is licensed under the GNU GPL v3. The packages built by this repository's GitHub workflow also include data and software from other projects, under their own licenses. NOTICE.md has the full attribution and license details; it's included in every package and shown on the About tab of the add-on's preferences.

  • Word variants (data/variants.xz) are generated from the JMdict dictionary file. This file is the property of the Electronic Dictionary Research and Development Group, and is used in conformance with the Group's licence. Like JMdict, variants.xz is licensed under CC BY-SA 4.0. It's rebuilt from the current JMdict for every release.
  • Pitch accents (data/accents.xz) combine two sources:
    • Kanjium (CC BY-SA 4.0), converted to the add-on's format: "The pitch accent notation, verb particle data, phonetics, homonyms and other additions or modifications to EDICT, KANJIDIC or KRADFILE were provided by Uros O. through his free database."
    • For words Kanjium doesn't have, the pitch accent data compiled by Yoga for the Migaku Japanese add-on (ยฉ Migaku ltd.) from NHKใ‚ขใ‚ฏใ‚ปใƒณใƒˆ (1998), ๅคง่พžๆž—, ๆ–ฐๆ˜Ž่งฃ and ๅ’Œ็‹ฌ่พžๅ…ธ, as included in earlier releases of this add-on. Its authors haven't stated a license for it, so the CC BY-SA license covers only the Kanjium entries. The source of every entry is marked in the file.
  • MeCab (BSD license) and the MeCab libraries for macOS and Linux from fugashi (MIT). Their license texts are in the lib folder.
  • IPAdic, the MeCab dictionary in the full package (ยฉ Nara Institute of Science and Technology, partly ICOT Free Software). Its license is in data/ipadic/COPYING.

Troubleshooting

  • "The MeCab dictionary wasn't found", or a MeCab error mentioning param.cpp(69) and ipadic\dicrc: the installed package doesn't include the MeCab dictionary. Install the _full.ankiaddon file (called _ipadic.ankiaddon up to version 0.3). Other MeCab problems are covered in Installing MeCab.
  • Cards show the raw syntax (like {[่พžๆ›ธ|ใ˜ใ—ใ‚‡];1}) instead of furigana: the note type hasn't been added on the Note Types tab of the preferences, Manage script is unchecked for it, or the field isn't inside an element with data-jrp-generate (see the note type setup).
  • โš  Error during parsing: invalid segment on a card: the field's syntax doesn't match what the template expects. Fields in Migaku syntax (่พžๆ›ธ[ใ˜ใ—ใ‚‡;a]) need data-jrp-generate="migaku" in the template, fields in the default syntax ({[่พžๆ›ธ|ใ˜ใ—ใ‚‡];1}) a plain data-jrp-generate. Converting the field with F2 or Ctrl+F2 also fixes it.
  • "Dictionary is not (yet) loaded": the pitch accent data is still being loaded in the background after Anki started. Wait a moment and try again.

Development

Building the add-on, running the tests, the GitHub workflow and how to make a release are described in Development.

Reporting Issues

If you encounter a bug or crash while using the add-on please report it by opening a GitHub issue in this repository.

Explain what you were doing when the issue occurred as accurately as possible, ideally with a list of steps to reproduce it. If the problem is related to specific cards, consider including an .apkg export of those cards (Notes โ†’ Export Notes... in the Anki browser while having the cards in question selected). If there was an error message include its full contents as well, if possible as selectable text.