AnkiWeb
- Votes
- 3 (๐ 3 ยท ๐ 0)
- Updated
- 2019-07-12
- Anki versions
- unknown
- License
- Apache-2.0 (from the GitHub repository)
- Description language
- en
AnkiWeb addon 1852987770
Cleans Japanese text in Anki notes by removing unnecessary spaces and furigana while preserving reading spaces and HTML, with preview, diff, undo, and change-log safeguards.
Open on AnkiWeb GitHub Find alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | โ | 2019-07-12 |
Loadingโฆ
Adds or removes furigana on Japanese card content using editor toolbar buttons, with MeCab/Kakasi-generated readings and configurable output patterns and number reading support.
Adds or removes Japanese furigana in cards via editor buttons, bulk generation, bracket or ruby notation, using MeCab for readings across platforms.
Automatically bolds target Japanese vocabulary within sentence fields using morphology-aware matching, with dry-run preview, browser integration, custom readings, and optional furigana clearing.
Adds Japanese vocabulary to kanji-writing cards using known words from other decks, prioritizing common words, hiding target kanji, and saving results in fields for syncing.
Automatically generates and bulk-generates furigana readings and looks up Japanese pitch accents, adding them to configured Anki note fields.
Converts Migaku syntax annotations in card fields into HTML ruby tags, extracting readings so Japanese learners get clean furigana display in Anki cards.
Clean unnecessary furigana from the beginning, end, or within individual readings within text.
Both are designed to:
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.Fix action actually performs the changes.
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.
Support
If you experience a problem or have any comments/ideas, please open an issue at the Issues page for the project on Github.
Version History
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:
Dialog to check for unnecessary furigana:
HTML diff of proposed spacing changes:
HTML diff of proposed furigana changes:
Viewing the log of changes:
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.