All Projects → Pseudonium → Obsidian_to_anki

Pseudonium / Obsidian_to_anki

Licence: gpl-3.0
Script to add flashcards from text/markdown files to Anki

Programming Languages

python
139335 projects - #7 most used programming language
typescript
32286 projects

Labels

Projects that are alternatives of or similar to Obsidian to anki

Anki-Chinese-Vocabulary-Generator
Enter only simplified characters and create word meaning with Traditional, Pinyin, Meaning, Audio and example sentences
Stars: ✭ 17 (-95.55%)
Mutual labels:  anki
anki-mode
An Emacs major mode for creating anki cards
Stars: ✭ 47 (-87.7%)
Mutual labels:  anki
chinese-support-redux
Anki add-on providing support for Chinese study
Stars: ✭ 88 (-76.96%)
Mutual labels:  anki
markdown-anki-decks
Tool for converting markdown files into anki decks
Stars: ✭ 31 (-91.88%)
Mutual labels:  anki
Anki Templates
For language Grammar
Stars: ✭ 70 (-81.68%)
Mutual labels:  anki
vocage
A minimalistic spaced-repetion vocabulary trainer (flashcards) for the terminal
Stars: ✭ 68 (-82.2%)
Mutual labels:  anki
anki-canvas
🖌️ Drawing area widget for Anki to practice Kanji writing
Stars: ✭ 25 (-93.46%)
Mutual labels:  anki
Anki Android
AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
Stars: ✭ 4,425 (+1058.38%)
Mutual labels:  anki
anki-youdao2anki
转换有道单词本到Anki格式
Stars: ✭ 24 (-93.72%)
Mutual labels:  anki
brain-brew
Automated Anki flashcard creation and extraction to/from Csv
Stars: ✭ 55 (-85.6%)
Mutual labels:  anki
anki-awesome-select
This is the select template for Anki with awesome interface/Anki选择题模板
Stars: ✭ 59 (-84.55%)
Mutual labels:  anki
slipbox
A static site generator for Zettelkasten notes
Stars: ✭ 32 (-91.62%)
Mutual labels:  anki
closet
The Web Framework for Flashcards
Stars: ✭ 45 (-88.22%)
Mutual labels:  anki
kindle vocab anki
Export Kindle Vocabulary Builder to Anki
Stars: ✭ 38 (-90.05%)
Mutual labels:  anki
Anki-decks-deeplearning.ai
This repository contains flashcard decks for DeepLearning.ai courses.
Stars: ✭ 43 (-88.74%)
Mutual labels:  anki
anki-slides-import
📇 Import pdf slides + text notes into Anki.
Stars: ✭ 24 (-93.72%)
Mutual labels:  anki
Fabricius
Fabricius is an Anki plugin that bidirectionally syncs between Roam and Anki.
Stars: ✭ 54 (-85.86%)
Mutual labels:  anki
Anki Sync Server
Self-hosted Anki sync server
Stars: ✭ 352 (-7.85%)
Mutual labels:  anki
Anki Ultimate Geography
Geography flashcard deck for Anki
Stars: ✭ 330 (-13.61%)
Mutual labels:  anki
image-occlusion-in-browser
Create image occlusion in browser
Stars: ✭ 20 (-94.76%)
Mutual labels:  anki

Obsidian_to_Anki

Plugin to add flashcards from a text or markdown file to Anki. Run in Obsidian as a plugin, or from the command-line as a python script. Built with Obsidian markdown syntax in mind. Supports user-defined custom syntax for flashcards.
See the Trello for planned features.

Getting started

Check out the Wiki! It has a ton of information, including setup instructions for new users. I will include a copy of the instructions here:

Setup

All users

  1. Start up Anki, and navigate to your desired profile.
  2. Ensure that you've installed AnkiConnect.

Obsidian plugin users

  1. Have Obsidian downloaded
  2. Search the 'Community plugins' list for this plugin
  3. Install the plugin.
  4. In Anki, navigate to Tools->Addons->AnkiConnect->Config, and change it to look like this:
{
    "apiKey": null,
    "apiLogPath": null,
    "webBindAddress": "127.0.0.1",
    "webBindPort": 8765,
    "webCorsOrigin": "http://localhost",
    "webCorsOriginList": [
        "http://localhost",
        "app://obsidian.md"
    ]
}
  1. Restart Anki to apply the above changes
  2. With Anki running in the background, load the plugin. This will generate the plugin settings.

You shouldn't need Anki running to load Obsidian in the future, though of course you will need it for using the plugin!

To run the plugin, look for an Anki icon on your ribbon (the place where buttons such as 'open Graph view' and 'open Quick Switcher' are). For more information on use, please check out the Wiki!

Python script users

  1. Install the latest version of Python.
  2. If you are a new user, download obstoanki_setup.py from the releases page, and place it in the folder you want the script installed (for example your notes folder).
  3. Run obstoanki_setup.py, for example by double-clicking it in a file explorer. This will download the latest version of the script and required dependencies automatically. Existing users should be able to run their existing obstoanki_setup.py to get the latest version of the script.
  4. Check the Permissions tab below to ensure the script is able to run.
  5. Run obsidian_to_anki.py, for example by double-clicking it in a file explorer. This will generate a config file, obsidian_to_anki_config.ini.

Permissions

The script needs to be able to:

  • Make a config file in the directory the script is installed.
  • Read the file in the directory the script is used.
  • Make a backup file in the directory the script is used.
  • Rename files in the directory the script is used.
  • Remove a backup file in the directory the script is used.
  • Change the current working directory temporarily (so that local image paths are resolved correctly).

Features

Current features (check out the wiki for more details):

  • Custom note types - You're not limited to the 6 built-in note types of Anki.
  • Updating notes from file - Your text files are the canonical source of the notes.
  • Tags, including tags for an entire file.
  • Adding to user-specified deck on a per-file basis.
  • Markdown formatting.
  • Math formatting.
  • Embedded images. GIFs should work too.
  • Audio.
  • Auto-deleting notes from the file.
  • Reading from all files in a directory automatically - recursively too!
  • Inline Notes - Shorter syntax for typing out notes on a single line.
  • Easy cloze formatting - A more compact syntax to do Cloze text
  • Frozen Fields
  • Obsidian integration - A link to the file that made the flashcard, full link and image embed support.
  • Custom syntax - Using regular expressions, add custom syntax to generate notes that make sense for you. Some examples:
    • RemNote single-line style. This is how to use::Remnote single-line style
      Remnote 1
    • Header paragraph style.
    # Style
    This style is suitable for having the header as the front, and the answer as the back
    
    Header 1
    • Question answer style.
    Q: How do you use this style?
    A: Just like this.
    
    Question 1
    • Neuracache #flashcard style.
    In Neuracache style, to make a flashcard you do #flashcard
    The next lines then become the back of the flashcard
    
    Neuracache 1
    • Ruled style
    How do you use ruled style?
    ---
    You need at least three '-' between the front and back of the card.
    
    Ruled 1
    • Markdown table style
    | Why might this style be useful? |
    | ------ |
    | It looks nice when rendered as HTML in a markdown editor. |
    
    Table 2
    • Cloze paragraph style
    The idea of {cloze paragraph style} is to be able to recognise any paragraphs that contain {cloze deletions}.
    
    Cloze 1

Note that all custom syntax is off by default, and must be programmed into the script via the config file - see the Wiki for more details.

Buy Me a Coffee at ko-fi.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].