<commit_before># anki-slides-import

This is a fork of [<NAME>'s](https://github.com/musically-ut) [anki-slides-import](https://github.com/musically-ut/anki-slides-import) code for importing pdf slides + text notes into [Anki](http://ankisrs.net/) that includes some additional functionality.

Convert:

<p align="center">
<img alt="Slides and notes" src="http://musicallyut.in/docs/anki-import-slides/slides-notes.png" width="80%" />
</p>

to:

<p align="center">
<img alt="Anki deck" src="http://musicallyut.in/docs/anki-import-slides/in-anki.png" width="80%" align="center" />
</p>

## Usage

 0. Use `pip` to install it on your system: 
  
        pip install git+https://github.com/musically-ut/anki-slides-import

 1. Write your notes slide by slide in a [plain text file](https://github.com/musically-ut/anki-slides-import/blob/master/test/example_notes.txt). 
 2. Obtain the slides in pdf format.
 3. Run `slides2anki <notes.txt> <slides.pdf> <output.deck.name>`. 
     - Currently, you need to add `-U "~/Documents/Anki/User 1"` to explicitly provide you [user profile folder](http://ankisrs.net/docs/manual.html#file-locations).
     - If you cloned this repository, then replace `slides2anki` with `./slides_import.py` while in the repository root.
 4. Open Anki and import the `<output.deck>` as a CSV file.

The deck should be ready to use.

### Dependencies 
<commit_msg>Updated README.<commit_after># anki-slides-import

This is a fork of [<NAME>'s](https://github.com/musically-ut) [anki-slides-import](https://github.com/musically-ut/anki-slides-import) code for importing pdf slides + text notes into [Anki](http://ankisrs.net/) that includes some additional functionality.  This modified version allows for slides to be displayed either in the Anki card question or answer, to be invluded alongside some additional text either before or after the slide, or to be left out completely.

Convert:

<p align="center">
<img alt="Slides and notes" src="http://musicallyut.in/docs/anki-import-slides/slides-notes.png" width="80%" />
</p>

to:

<p align="center">
<img alt="Anki deck" src="http://musicallyut.in/docs/anki-import-slides/in-anki.png" width="80%" align="center" />
</p>

## Usage

 0. Use `pip` to install it on your system: 
  
        pip install git+https://github.com/musically-ut/anki-slides-import

 1. Write your notes slide by slide in a [plain text file](https://github.com/musically-ut/anki-slides-import/blob/master/test/example_notes.txt). 
 2. Obtain the slides in pdf format.
 3. Run `slides2anki <notes.txt> <slides.pdf> <output.deck.name>`. 
     - Currently, you need to add `-U "~/Documents/Anki/User 1"` to explicitly provide you [user profile folder](http://ankisrs.net/docs/manual.html#file-locations).
     - If you cloned this repository, then replace `slides2anki` with `./slides_import.py` while in the repository root.
 4. Open Anki and import the `<output.deck>` as a CSV file.

The deck should be ready to use.

### Dependencies 

{'fraction_non_alphanumeric': 0.143479718404291, 'fraction_numerical': 0.008045591686221924, 'mean_word_length': 4.015126050420168, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '30540', 'n_tokens_mistral': 1028, 'n_tokens_neox': 974, 'n_words': 297}