Aquafina-water-bottle / anki-backfill-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anki-backfill-scripts

Currently contains backfill_context.py, a simple script to search for sentences within your source and add the surrounding sentences to your Anki card.

TODO

  • (done) Search sentences better! A better way of searching sentences would be:
    • Remove whitespace from string
    • Concatenate all lines into one string
    • Search for substring in processed string
    • Use a structure to map the begin/end index of the processed string back to the array of lines
      • i.e. an array with each row being: og_sentence, modified_sentence, length of all modified_sentences before this row
  • Support epub better: Integrate calibre
  • Support subtitle files
  • Support list of files (i.e. to backfill an entire season of subtitle files)

Also See

About


Languages

Language:Python 100.0%