Currently this tool just exists to take an Anki deck in .apkg form and convert all Chinese text in it to add Pleco links and tone tags.
For example, "你怎么样" gets converted to:
<a href="plecoapi://x-callback-url/s?q=你怎么样" style="text-decoration:none">
<span class="tone3">你</span>
<span class="tone3">怎</span>
<span class="tone5">么</span>
<span class="tone4">样</span>
</a>
To use this:
- Export your deck from Anki in .apkg form (remember to tick the boxes that asks if you want to include scheduling information and media)
- Run this program on it - by default this will produce
out.apkg
. - Delete your original deck from Anki (don't worry, if I've messed up you can always re-import your deck that you exported).
- Import
out.apkg
into Anki - If you want to take advantage of the tone tags, add some CSS - for e.g. something like
.tone1 {color: #00e304;}
.tone2 {color: #b35815;}
.tone3 {color: #f00f0f;}
.tone4 {color: #1767fe;}
.tone5 {color: #777777;}
- Add tone colours CSS automatically
- Add options to perhaps not modify the front of the card