Coder Social home page Coder Social logo

genki_anki_deck_generator's Introduction

python projekt for extracting vocabulary sounds from official genki audio files and generating anki decks
Genki 1: https://ankiweb.net/shared/info/1742947823
Genki 2: https://ankiweb.net/shared/info/969261095

How to build

  • clone repo
  • install ffmpeg
  • run: python -m venv venv
  • run: source venv/bin/activate
  • run: pip install -r requirements.txt
  • run: python download_genki_sound_files.py
  • run: python download_fonts.py
  • run: python main.py
  • ...
  • profit

Project Structure

  • Folders in data/ directory are turned into anki-decks
  • deck generation uses yaml files in templates/ directory

Template file explanation

  • "sound_file": (string) sound file used for this deck (starts searching in sound/ directory)
  • "skip_on_beginning": (integer) how many words should be skiped at the beginning of the sound file
  • "skip_with_new_category": (boolean) if true skips a word if new category starts
  • "skip_on_semikolon": (boolean) if true skips as many words as there are semikolons in the english translation, after a note
  • "uid": (integer) uniqe id, used for anki (should not be too high)
  • "sound_silence_threshold": (integer) magic number used for splitting genki-audiofiles into many seperate words. (default: 600)
  • "cards": list of categories
  • "category": (string) name of the category (only matters for tags)
  • "vocabulary": list of vocabs
  • "japanese": (string) japanese meaning in kana
  • "english": (string) english meaning
  • "kanji": (string) japanese meaning in kanji (should be left out, if the vocab has no kanjis)

Notes

  • I have only tested this under linux

Pull-Requests Welcome

  • add Windows support (if you care)
  • extend Deck for Genki II
  • write a better description for the anki deck
  • add devops
  • bugfixes, etc.

copyright note

I do not own the Copyright to the Genki audiofiles (thats why they are not inculded in this repo and downloaded elsewhere) but they are puplicly available without needing to prove ownership of a genki book.

genki_anki_deck_generator's People

Contributors

mi-ael avatar alchzh avatar pfif avatar james-laidlaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.