Skip to content

Instantly share code, notes, and snippets.

@emk
Created August 22, 2012 15:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emk/3426673 to your computer and use it in GitHub Desktop.
Save emk/3426673 to your computer and use it in GitHub Desktop.
Anki 2 cards with hidden transliterations on the front
<div class="signes">{{Signes H}}</div>
<input type="button" value="Translittération" onclick="document.getElementById('transliteration').className += ' shown'; this.style.display = 'none'; return false;">
<div id="transliteration" class="transliteration">{{Translittération}}</div>
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: #ddf;
}
input[type="button"] {
font-size: 16px;
margin-top: 4px;
}
.transliteration {
font-size: 30px;
font-family: Gardiner;
display: none;
}
.transliteration.shown {
display: block;
}
.notes {
margin-top: 15px;
font-size: 15px;
color: #777;
}
<div class="signes">{{Signes H}}</div>
<div class="transliteration shown">{{Translittération}}</div>
<hr id=answer>
{{Traduction}}{{#Notes H}}
<div class="notes">
{{Notes H}}
</div>{{/Notes H}}

The "Signes H" and "Notes H" fields are actually created by passing two fields called "Signes" and "Notes" through a custom Anki 2 plugin that calls out to HieroTeX.

Here's an example of what it looks like in action:

Three states

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment