Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/llamaware/coffin-anki
- Owner: Llamaware
- Created: 2024-11-08T10:25:56.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2024-11-08T11:34:05.000Z (8 days ago)
- Last Synced: 2024-11-08T12:28:49.620Z (7 days ago)
- Topics: anki, language-learning
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)