Back

Feeding Anki with Tagaini Jisho

#1
Hi there,

For those who already know Anki and Tagaini Jisho, they probably know that Tagaini Jisho provide a nice function to export an entry set into a TSV file, which can be easily imported into Anki (with the appropriate models). However, compared to what Tagaini Jisho is bundled with, I found it only exports some very basic data: kanji, reading and translation. That’s why I quickly modified it’s source code to make it export some more complete (function like adj-i etc., other translations…) and HTML formatted data. This helped me a lot so I just wanted to share this quick and dirty hack here (without going any further). One can apply this patch on Tagaini Jisho 0.9.3’s source with
Code:
patch -p0 < tagainijisho-0.9.3-HTML_export.patch
. I’ve been too lazy to write good code, this ain’t to be included in the official version.
Reply
#2
Oh, and here is the CSS code that makes this data to look like Tagaini Jisho’s :
Code:
<style type="text/css">
abbr { color: blue; text-decoration: none; border-bottom: 1px blue dotted; }
abbr:hover { border-bottom-style: solid; cursor:help; }
.mainwriting { font-size: 45pt; }
.furigana { font-size: 13pt; color: red; }
.senses { font-size: 12pt; text-align: left; }
.meanings { font-size: 12pt; padding-bottom: 40px; }
.sense { padding-bottom: 6px; }
.glosses { padding-left: 8px;}
.lang { font-family: monospace; }
</style>
You must put this in the Question part of the card layout, along with the {{field}}s.
Reply
#3
Thank you very much.

I just looked up the program and it actually looks very neat.
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101