AnkiWeb
- Rating
- 13 (๐ 12 ยท ๐ 1)
- Updated
- 2023-01-02
- Anki versions
- 2.1.55~
- Description language
- en
AnkiWeb addon 1845503807
Generates readings (furigana) and pitch accent information for an entire field or many cards in bulk, supporting default and Migaku syntax.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.49 | โ | 2022-03-07 |
| 2.1.55 | + | 2023-01-02 |
Loadingโฆ
Generates and bulk-generates Japanese furigana readings and adds pitch accents to Anki cards, with configurable fields and compatible note types.
Adds or removes Japanese furigana in Anki cards via toolbar buttons, shortcuts, bracket or ruby tags, bulk generation, and MeCab readings.
Automatically adds Japanese pitch accent information to a chosen field, highlighting accented mora, marking flat words, and parsing square-bracket furigana or separate readings using unambiguous Kanjium data.
Performs bulk operations on selected Anki cards, extracting readings from Migaku dictionary output and coloring notes by pitch accent graph.
Parses HTML ruby furigana from Japanese expression fields into separate hiragana/reading and kanji fields for selected decks and note types, enabling better compatibility with other addons.
Looks up and fills Japanese pitch accent pronunciations for expression fields, supports bulk lookup, and displays pitch notations during review.
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.
<img src="https://i.imgur.com/8NFw0HB.png">
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.
.ankiaddon files from the
latest release
and manually install it from the add-on menu.
full file has everything except a MeCab dictionary, but including
a MeCab exe for Windows.ipadic file contains everything the add-on needs out of the box and
is probably what most users will want to install initially.Ctrl+โง+N) and set up
your templates as described here.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.To generate or remove readings and accent info for a single note, select it in the Anki browser, 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.
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.
The add-on supports its own fully-featured syntax and is also compatible with the syntax from the old Migaku Japanese Add-on.
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|ใใ}.
For backwards compatibility, Migaku-style syntax is also supported, but it has some limitations compared to the new syntax:
{[้ฅ|ใใจใใ]ใใ;Y5,0} in default syntax is ้ฅ[ใใจใใ,ใใจใใใใ;k5,h]ใใ.Follow the guide to getting started above. 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.
If you encounter a bug or crash while using the add-on please report it. You can either open a GitHub issue in this repository or contact me on Discord, where you can find me in the Refold community servers.
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.