Skip to content

jacksonriley/inflate_anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inflate anki flashcards

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:

  1. Export your deck from Anki in .apkg form (remember to tick the boxes that asks if you want to include scheduling information and media)
  2. Run this program on it - by default this will produce out.apkg.
  3. Delete your original deck from Anki (don't worry, if I've messed up you can always re-import your deck that you exported).
  4. Import out.apkg into Anki
  5. 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;}

TODO

  • Add tone colours CSS automatically
  • Add options to perhaps not modify the front of the card

About

Inflate anki flashcards with extra treats

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages