Back

Nayr's Core5000 deck (Frequency Dictionary of Japanese)

#54
Hi and sorry for the stupid questions, kinda new to learning japanese/anki/etc.
Can I use this deck for learning vocabulary?
Should I use this deck for learning vocabulary? :p

I'm not a programmer and I don't know anki, so this will be wrong in a million ways, but this quick hack seems to work for highlighting the word in the sentence:

in the styling section:

Code:
.word {
font-size: 150%;
color: red;
}
and in the front section:

Code:
<script>
var $$ = function(e) {return document.getElementById(e);}
var word = "{{Word}}";
var word0 = word.split(" ")[0];

var expr = "{{Expression}}";
expr = expr.replace(word0, "<span class=\"word\">" + word0 + "</span>");
$$("expr").innerHTML = expr;
</script>
Would this kind of thing work for learning vocab?

Hi and sorry again.
Reply

Messages In This Thread