Giter Club home page Giter Club logo

kindle-flashcards's Introduction

Kindle Flashcards

  1. Plug Kindle into the computer.
  2. Open the terminal.
  3. Download this repository and navigate to its folder: cd ./kindle-flashcards.
  4. Execute ./bin/export. This will create files with words and quotes for each book and save them to ./output.
  5. To add translations, run FROM_LANG=de TO_LANG=en ./bin/translate output/Schachnovelle.txt > flashcards.txt.
  6. ...
  7. The flashcards are ready!

screen shot 2016-06-28 at 21 43 20

screen shot 2016-06-28 at 21 43 23

Importing into Anki

  • Create a new deck or use an existing deck.
  • Import the flashcards file (File -> Import).

The flashcards file looks like this:

 staubig	staubig	Sein langer grüner Umhang war staubig und verschlissen.	Sein langer grüner Umhang war {{c1::staubig}} und verschlissen.	dusty

The file has five fields:

  1. The base form of the word (i.e. infinitive for verbs, nominative singular for nouns etc).
  2. The original word form.
  3. The sentence where the word was encountered.
  4. The same sentence with the word clozed out. See Cloze Deletion in the Anki manual.
  5. The translation of the word.

The final result may look like this:

Adding audio

You can also add recordings of words' pronunciations to your cards. Run the following command:

./bin/add-audio flashcards.txt > flashcards_with_audio.txt

The audio will be saved into ./output/audio. Copy the audio files into the Anki media collection directory (typically ~/Documents/Anki/User 1/collection.media).

Audio files are downloaded from Wiktionary and encoded from ogg to mp3. Please note that this requires ffmpeg to be installed on your system (e.g. brew install ffmpeg).

However, you can simply add this JavaScript to your card layout to enable the built-in text-to-speech:

<script>
var speech = new SpeechSynthesisUtterance();
speech.text = '{{Front}}';
speech.lang = 'de-DE';
speechSynthesis.speak(speech);
</script>

kindle-flashcards's People

Contributors

katspaugh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.