Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/llamaware/coffin-anki

Generate Anki decks from Coffin of Andy and Leyley translations
https://github.com/llamaware/coffin-anki

anki language-learning

Last synced: 7 days ago
JSON representation

Generate Anki decks from Coffin of Andy and Leyley translations

Awesome Lists containing this project

README

        

# coffin-anki

A script to generate Anki decks from Coffin of Andy and Leyley translations.

![screenshot](/screenshot.png)

---

## Usage

Place the `dialogue.csv` file of your desired language in the same directory as the script.

Then run `python gen-anki.py`

`output.csv` will be generated in this format: `sort_number` | `tl_expression` | `en_meaning` | `TlName` | `EnName`

Then import the `.csv` file into Anki. You can use the below template, or create your own.

## Template

Front template:

```


TCAL{{#Tags}} | {{/Tags}}{{Tags}} {{#JaName}} | {{/JaName}}{{JaName}} {{#EnName}} | {{/EnName}}{{EnName}}

{{^Reverse}}


{{Expression}}

{{/Reverse}}

{{#Reverse}}


{{Expression}}

{{/Reverse}}
```

Back template:

```
{{FrontSide}}



{{furigana:Meaning}}

```

Styling:

```
@font-face {
font-family: "Yu Mincho";
src: url("_yumin.ttf") ;
}
@font-face {
font-family: "Yu Mincho DemiBold";
src: url("_yumindb.ttf") ;
}
.card {
font-family:Yu Mincho;
font-size: 22px;
background-color:#FFFAF0;
text-align: left;
color:#333;
}

.tag {
color:#585858;
font-size: 20px
}

.japanese {
font-size: 35px;
}
.meaning {
margin-top: 36px;
font-size: 22px;
}

b {
font-family: "Yu Mincho DemiBold";
color:#000;
}
```

## Sample decks

Some premade decks may be available from the releases.

---

CSS and inspiration from [steins;gate anki](https://github.com/asakura42/steins-gate-anki)