Japanese Pronunciation / Pitch Accent13.77MB. Updated 2019-08-13. Supports both Anki 2.0.x and 2.1.x.
This item is large, and may take some time to download.
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
To download this add-on, please copy and paste the following code into the desktop program:
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
Other Anki 2.0.x Add-Ons Other Anki 2.1.x Add-Ons Ask a Question
The actual installation took me a while to figure out, since I'm a buffoon who can't comprehend these simple instructions. For anyone else who is new to Anki, here is my detailed description of the installation process:
You have to select "browse", then selected your desired deck. On the bottom left you select the "field" button, then select "add," and add a new field type with same name as the name used in the dstFields category in the "Tools --> Addons --> Japanese Pitch Accent --> config". Then close fields, and select the button next to it, "cards", and add the new field type, pronunciation, to your cards. I hope this isn't improper, but I figure the worst it can do is help someone.
Works like a charm! love it
Backup my Anki deck.
Sync on my phone and my desktop.
Install Japanese Support. (https://ankiweb.net/shared/info/3918629684)
Install Mecab (https://pypi.org/project/mecab-python3/). Not sure if actually needed.
Edit python file to remove newlines, replace *** marker with |. (https://apps.ankiweb.net/docs/addons.html)
Add "Pronunciation" empty field to all my cards.
Select-all, "bulk add pronunciation".
Upload to AnkiWeb (overwrite).
Toggling the \ in the regex for the file search to Unix / fixes the issue.
Btw, katakana_to_hiragana can be simplified into a single line:
return to_translate.decode('utf-8').translate(dict((i, i - 0x60) for i in range(0x30A1, 0x30F7)))
Also, I couldn't get it to use hiragana instead of katakana through the settings file, but you can just remove the condition in the python file, which works great.
The database isn't very encompassing, but it is what it is. I wish there was a way to get it to include the OJAD database.
MAKE SURE THE NAME OF YOUR CARD NOTE TYPE INCLUDES THE WORD japanese IN IT otherwise it won't work!
If you're having trouble getting this to give you the accent for certain words, or you're using 2.0 and it's just not working, you have to update the add-on by replacing the .py file with the one in the updated branch I'm linking here (and add the bs4 folder to your Anki addon folder). I made these fixes while the real maintainer was MIA. More details here: https://github.com/javdejong/nhk-pronunciation/pull/12 (and note that there are multiple commits, each with their own comment/explanation of the bug fixes).
Update: The original maintainer is back and released a 2.1 version (with the old bugs). We're working together to bring my fixes to 2.1. My patch is still what you want for 2.0.
Apparently there's a fork that added 2.1 support at some point, could someone use this to update the main add-on??
Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/editor.pyc", line 468, in onUpdate
File "aqt/editor.pyc", line 540, in loadNote
AttributeError: 'NoneType' object has no attribute 'media'
(1) There are a lot of missing entries after a bulk-add pronunciation. Not just obscure words, but many basic and high frequency words. A few examples I just noticed are 基本, 寄付, 義務, 教科書, etc etc. These are very common words but nothing appears in the pronunciation field. There are literally hundreds of omissions in my vocabulary list after the bulk-add.
(2) The lookup feature mentioned (Ctrl+6) doesn't work for me, nor does the Tools-Lookup feature mentioned.
(3) There seems to be no way to troubleshoot problems, such as installation issues, feature errors, etc.
Overall, this could be a good resource but in its current state it is not fit for purpose. What is the point in studying pitch accent if a large part of your vocab list contains no information and another part does?
I have 2 questions though...
1. Is there a way to add the pronunciation in mass to all my cards? I have a lot and going one by one could take awhile.
2. When I make new cards....Is there a way when I tab the kanji expression to add furigana to the reading field to also add the pronunciation at the same time?
and line 261:
#ml = mw.form.menuLookup
In regard to lines 14-15, apparently Japanese character support is enabled automatically.
U are my saviour, dude! This is one of the best Anki add-ons out there, srsly! Thank you so much!
This add-on works *perfectly*, just as described.
Especially good features:
Has "bulk add" feature, so I could apply it to all of my cards at once
Simply works--everything gets looked up without a fuss. (Some obscure words/spellings are not in the dictionary: 馭者 did not get auto-added, but 御者 did.) Most words that aren't super-rare get included (and who cares about accents on super-rare words, anyway?)
Fast--it took only a flash-second to bulk-add thousands of words. I note no lag or delay adding single words.
Pronunciation is *very* easy to read--anyone experienced with NHK偏日本語アクセント辞典 should be able to just pick it up and use it without any fuss (devoiced morae are blue).
Had to add a "pronunciation" field to my vocab cards, and redesign the cards to put it in there. Had to figure out some way of combining my current cards with the dictionary's readings (which sometimes differ on words with multiple pronunciations). But that's just a temporary problem, and there's no good solution around it.
The add-on does what it promises, but there are a number of points i don't quite like.
(I couldn't find any other way to contact the author. I would have tried an e-mail first.)
It works all right, when you have Japanese text in the field Expression, and you have an empty field Pronunciation, you get the text with overlines, elision and nasal indicators. When the word is in the list it brings along, that is.
The main thing i didn't like:
*The idea to use a Pronunciation field, that should be empty and than to add the pitch accent text at the last moment has. That means it doesn't work with AnkiWeb/AnkiDroid(/AnkiMobile)
That could be fixed when the pitch accent text is added permanently to the field like the reading is to its field.
Also, less important for typical users:
*The add-on isn't very hacker-friendly. I wanted to use other names for the classes used internally. That's harder to do than it should be.
*... oh, that's enough. I'll keep the rest to me.