AnkiWeb
- Rating
- 3 (๐ 3 ยท ๐ 0)
- Updated
- 2019-07-12
- Anki versions
- unknown
- Description language
- en
AnkiWeb addon 1852987770
Cleans unnecessary spaces and furigana in Japanese Anki text while preserving needed reading spaces and HTML, with check, diff, fix, undo, and change log safeguards.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | โ | 2019-07-12 |
Loadingโฆ
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.
Adds or removes Japanese furigana in Anki cards via toolbar buttons, shortcuts, bracket or ruby tags, bulk generation, and MeCab readings.
Converts Migaku syntax annotations into HTML ruby tags for furigana display in Anki cards via the {{migakuFurigana:FieldName}} template field.
Generates and bulk-generates Japanese furigana readings and adds pitch accents to Anki cards, with configurable fields and compatible note types.
Adds or removes furigana on Japanese Anki card content using toolbar buttons, selected-text support, and configurable HTML ruby or square-bracket readings.
Generates readings (furigana) and pitch accent information for an entire field or many cards in bulk, supporting default and Migaku syntax.
This is a plugin for Anki that can help clean up Japanese text in the following ways:
Clean unnecessary spaces, while preserving those spaces that are necessary for indicating the start of a Japanese reading (as in the Japanese Support plugin).
<b> ไธ[ใใก]</b>ใใ ๅง[ใฏใ]ใใพใใใใ
=>
<b>ไธ[ใใก]</b>ใใ ๅง[ใฏใ]ใใพใใใใ
ๅฝผๅฅณ[ใใฎใใ]ใฏใคใฟใชใข ่ช[ใ]ใ<b> ใงใใพใ</b>ใ
=>
ๅฝผๅฅณ[ใใฎใใ]ใฏใคใฟใชใข ่ช[ใ]ใ<b>ใงใใพใ</b>ใ
Clean unnecessary furigana from the beginning, end, or within individual readings within text.
ๅฅใซ[ในใคใซ]
=>
ๅฅ[ในใค]ใซ
ไธใฎไธญ[ใใฎใชใ]
=>
ไธ[ใ]ใฎ ไธญ[ใชใ]
Both are designed to:
In addition, there are some features to guard against accidental changes or bugs in the plugin:
Check action logs all changes that would be made without taking any action.Diff action produces a colorful HTML diff highlighting in green what will been added and in red what will be removed for each note.Despite these safety features, it's a good idea to back up or export your collection before using this plugin just to be safe.
You can access the dialogs by clicking Browse to open the card browser and then clicking Edit -> Japanese Text Cleaner. The fixer dialgos require you to select some cards first. These are the cards that will be checked.
Dialog to check for unnecessary spacing:
<img src="https://raw.githubusercontent.com/matthayes/anki_japanese_text_cleaner/master/screenshots/check_spacing_dialog.png" width="70%">
Dialog to check for unnecessary furigana:
<img src="https://raw.githubusercontent.com/matthayes/anki_japanese_text_cleaner/master/screenshots/check_furigana_dialog.png" width="70%">
HTML diff of proposed spacing changes:
<img src="https://raw.githubusercontent.com/matthayes/anki_japanese_text_cleaner/master/screenshots/check_spacing_diff.png" width="50%">
HTML diff of proposed furigana changes:
<img src="https://raw.githubusercontent.com/matthayes/anki_japanese_text_cleaner/master/screenshots/check_furigana_diff.png" width="35%">
Viewing the log of changes:
<img src="https://raw.githubusercontent.com/matthayes/anki_japanese_text_cleaner/master/screenshots/view_log.png" width="70%">
I have tested against the following shared decks which I found on Anki's Japanese shared decks page. Below I include some stats as of July 10, 2019 when I lasted tested the plugin against the decks.
| Deck | Notes | Field | Spacing Fixes | Furigana Fixes |
|---|---|---|---|---|
| Japanese Core 2000 2k - Sorted w/ Audio | 2007 | Reading | 266 | 1 |
| Japanese Visual Novel, Anime, Manga, LN Vocab - V2K | 1988 | Reading | 4 | 55 |
To get a better idea about how the plugin works, I've included some examples from each deck.
Unnecessary space removed from beginning of line:
<b> ไธ[ใใก]</b>ใใ ๅง[ใฏใ]ใใพใใใใ
=>
<b>ไธ[ใใก]</b>ใใ ๅง[ใฏใ]ใใพใใใใ
<b> ๆๆๆฅ[ใใคใใใณ]</b>ใซ ไผ[ใ]ใใพใใใใ
=>
<b>ๆๆๆฅ[ใใคใใใณ]</b>ใซ ไผ[ใ]ใใพใใใใ
Unnecessary space removed from within line:
ๅฝผๅฅณ[ใใฎใใ]ใฏใคใฟใชใข ่ช[ใ]ใ<b> ใงใใพใ</b>ใ
=>
ๅฝผๅฅณ[ใใฎใใ]ใฏใคใฟใชใข ่ช[ใ]ใ<b>ใงใใพใ</b>ใ
Redundant furigana removed from end of word:
ๅฝผๅฅณ[ใใฎใใ]ใฏใใ<b>ๅใ[ใใในใ]</b>ใญใ
=>
ๅฝผๅฅณ[ใใฎใใ]ใฏใใ<b>ๅ[ใใใน]ใ</b>ใญใ
Redundant furigana removed from the end:
ๅฅใซ[ในใคใซ]
=>
ๅฅ[ในใค]ใซ
็ฒใใ[ใคใใใ]
=>
็ฒ[ใคใ]ใใ
็ธๅคใใใ[ใใใใใใ]
=>
็ธๅค[ใใใ]ใใใ
Redunant furigana removed from the middle:
ๅฝใใๅ[ใใใใพใ]
=>
ๅฝ[ใ]ใใ ๅ[ใพใ]
ๆฏใ่ฟใ[ใตใใใใ]
=>
ๆฏ[ใต]ใ ่ฟ[ใใ]ใ
ไธใฎไธญ[ใใฎใชใ]
=>
ไธ[ใ]ใฎ ไธญ[ใชใ]
Unnecessary space removed:
ๆฏ[ใฏใ], ๆฏ[ใใใใ]
=>
ๆฏ[ใฏใ], ๆฏ[ใใใใ]
Copyright 2019 Matthew Hayes
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.