Skip to content

Create Anki cards from subtitles using Language Reactor Chrome extension

Notifications You must be signed in to change notification settings

ClearlyKyle/Language-Learning-With-Anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language Learning With Anki

Langauge Reactor to Anki

Adds an option to create Anki flash cards with the Language Reactor chrome extension

Language Reactor can be found here:

https://chrome.google.com/webstore/detail/language-reactor/hoombieeljmmljlkjmnheibnpciblicm

Setup

  1. Must install the AnkiConnect plugin.
  2. Must leave the Anki desktop application open in order for Ankiconnect to connect to it.
  3. Install the unpacked Language-Learning-With-Anki extension.
  4. Setup the URL (default is http://localhost:8765), deck and model values, making sure the top field of your note type has a valid field value.

Usage

Click a word to bring up the definition popup. Clicking the Anki button will send the current word and definition straight to Anki. The "RC" option, will remove the colour from the selected word

If the highlight word option is turned on then all words sent to Anki will be saved and highlighted, with this setting turned off, words will not be saved so will not be highlighted if turned back on.

When using the audio field, the extension will replay the subtitle again to collect the audio. Let the video play and wait for the success popup before doing anything else, interupting the playblack may cause a half finished audio track. Subsequent cards made with the same subtitle, will not need to recreate the audio.

bubble-screenshot

Settings

Exported data fields:

  1. Screenshot - an image of video taken at time when button is pressed
  2. Subtitle - the current subtitle visible on screen
  3. Subtitle Translation - this is the translated subtitle when using the 'Show machine translation' option
  4. Word - selected word in the subtitle
  5. Basic Translation - the transaltion of the selected word
  6. Example Sentences - examaples bellow the definitons in the popup, either from current video or Tatoeba
  7. Example Source - Tatoeba or Current video
  8. Other Translation - the extra translations of the word, formatted in HTML
  9. Audio - audio for the current subtitle (limited to 16s)
  10. URL - URL of current video with the current timestamp
  11. Highlight - toggle wether to highlight words exported to Anki in the choosen colour

Settings allow you to choose which fields are filled with what data. A blank options means that data is skipped

options-screenshot

Poissible Errors

  • Acess to fetch at 'http://localhost:8765' from origin 'https://www.netflix.com' has been blocked by CORS policy

You need to make sure Netflix and Youtube are add to the "webCorsOriginList" in your AnkiConnect config. To do this, go to:

Anki > tools > Add-ons > AnkiConnect > config

Example of "webCorsOriginList"

    "webCorsOriginList": [
        "http://localhost",
        "https://www.netflix.com",
        "https://www.youtube.com"
    ]
  • cannot create note because it is empty

Make sure the field at position 1 in your Anki note type (Tools > Manage Note Types) is set to a value in the extentions settings page, if not, then you will get this error. See also

About

Create Anki cards from subtitles using Language Reactor Chrome extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published