General Information about Exports

There are three kinds of saved items:

A phrase is saved when you click on the star next to a subtitle.

A word with context is saved when you mark a work in the subtitles or the dictionary examples. The work is saved together with the context inw which it was saved. When these are exported as flashcards, the context is presented with the marked word removed.

A word without context is saved when you mark a word in the words panel directly. In this case, no context is saved with the word. When the word is exported as a flashcard, one side contains a translation of the word, the other the word itself. It is more desirable to save a word with an example. You can do this by clicking on the word (to open the dictionary), then right clicking on the word in one of the examples there.

Image 8

Anki Export

To install Anki see this video: https://www.youtube.com/watch?v=Pzmxbvg3j4E

We recently updated the Anki Export with new features! You need to change how you import cards into Anki.

To export cards from the extension, first click this button in the extension side panel, to open the export dialogue.

Image 1

In the dialogue, select 'Saved Items' and 'Anki'.

Image 1

The 'Include media' option will export Anki notes (as a CSV file) along with media files (images and audio) together in a zip archive. You will need to unzip the archive, then copy the media files into the Anki media folder. Depending on your operating system, you can find this folder in a different location:

On Windows

The latest Anki versions store your Anki files in your appdata folder. The full path is something like: C:\Users\[WINDOWS USERNAME]\AppData\Roaming\Anki2\[ANKI USERNAME]\collection.media . Older versions of Anki stored your Anki files in a folder called Anki in your Documents folder.

On Mac

Recent Anki versions store all their files in the [HOME DIRECTORY]/Library/Application Support/Anki2 folder. Then open a folder with your username, and finally, open collection.media folder. The Library folder is hidden by default, but can be revealed in Finder by holding down the option key while clicking on the Go menu. If you’re on an older Anki version, your Anki files will be in your Documents/Anki folder.

On Linux

Recent Anki versions store your data in [HOME DIRECTORY]/.local/share/Anki2, or $XDG_DATA_HOME/Anki2 if you have set a custom data path. Then open a folder with your username, and finally, open collection.media folder. Older versions of Anki stored your files in [HOME DIRECTORY]/Documents/Anki or [HOME DIRECTORY]/Anki.

To export the notes into Anki, go to 'file' and 'import'.

Image 3

In the import dialogue, you must select 'Cloze' type, Field seperator should be '\t' (Tab), and select 'Allow HTML in fields'. You must check these options are set correctly every time you import, or the notes will not be imported correctly.

Image 4

Here's how it looks when you set the field seperator.

Image 5

That's it. Click 'Import'. From the main screen, you can now browse your cards.

Image 6

Click 'Whole Collection' to see all your cards.

Image 7

You can sync your cards to your the Anki App on your phone (AnkiMobile on iOS and AnkiDroid on Android).

Image 7

CSV Export

This export format exports one item per line (Tab seperated). It can be imported into Anki using a custom note type.

This feature hasn't been reviewed in a while and could probably be improved.

The CSV fields are:

Forum user Weissblattangst created an Anki Custom Note type, get it here: https://ankiweb.net/shared/info/1580143799 .

JSON Export

This option will export a JSON document with your saved items. Here's typescript 'schema' for the data.

type saved_item_EXPORT_t = word_EXPORT_t|phrase_container_EXPORT_t;

interface word_EXPORT_t {
    itemType: 'WORD'
    langCode_G: string; // ISO-639-1
    context: {
        wordIndex: number; // Which token in the phrase was saved.
        phrase: phrase_EXPORT_t;
    }|null,
    color: 'C0' | 'C1' | 'C2' | 'C3' | 'C4';
    wordTranslationsArr: string[]|null; // Most likely translations (up to three).
    translationLangCode_G: string; // ISO-639-1

    wordType: 'lemma'|'form';

    word: {
        text: string;
        translit?: string; // currently only Korean, Thai, Japanese (kana)
        pinyin?: string[]; // Chinese
        tones?: number[]; // Chinese
    }

    freq?: number; // frequency in the language
    audio: itemAudio_EXPORT_t | null;
    timeCreated: number;
}

interface phrase_container_EXPORT_t {
    itemType: 'PHRASE'
    langCode_G: string; // ISO-639-1
    translationLangCode_G: string; // ISO-639-1
    context: {
        phrase: phrase_EXPORT_t;
    }
    timeCreated: number;
}

interface phrase_EXPORT_t {

    subtitleTokens: {
        0: Array<ud_single_EXPORT_t|ud_group_EXPORT_t>|null,
        1: Array<ud_single_EXPORT_t|ud_group_EXPORT_t>,
        2: Array<ud_single_EXPORT_t|ud_group_EXPORT_t>|null
    },
    subtitles: {
        0: string|null,
        1: string,
        2: string|null
    },
    mTranslations: {
        0: string|null,
        1: string,
        2: string|null
    }|null,
    hTranslations: {
        0: string|null,
        1: string,
        2: string|null
    }|null,
    reference: NF_reference_EXPORT_t|YT_reference_EXPORT_t;
    thumb_prev: thumbImage_EXPORT_t|null;
    thumb_next: thumbImage_EXPORT_t|null;
    audio: itemAudio_EXPORT_t | null;
}

interface ud_single_EXPORT_t {

    form: {
        text: string;
        translit?: string; // currently only Korean, Thai, Japanese (kana)
        pinyin?: string[]; // Chinese
        tones?: number[]; // Chinese
    }
    pos:
    // 17 Universal POS tags:
        'ADJ'|'ADP'|'ADV'|'AUX'|'NOUN'|
        'PROPN'|'VERB'|'DET'|'SYM'|'INTJ'|
        'CCONJ'|'PUNCT'|'X'|'NUM'|'PART'|
        'PRON'|'SCONJ'|
        // Unknown text, either NLP returned nothing
        // for this token, or simpleNLP identified it as
        // not whitespace and not punctuation:
        '_'|
        // Whitespace:
        'WS';
    index?: number;
    lemma?: {
        text: string;
        translit?: string; // currently only Korean, Thai, Japanese (kana)
        pinyin?: string[]; // Chinese
        tones?: number[]; // Chinese
    }
    xpos?: string;
    features?: any;
    pointer?: number;
    deprel?: string;
    freq?: number; // frequency in the language
}

interface ud_group_EXPORT_t {
    form: {
        text: string;
        translit?: string; // currently only Korean, Thai, Japanese (kana)
        pinyin?: string[]; // Chinese
        tones?: number[]; // Chinese
    }
    pos: 'GROUP'
    members: Array<ud_single_EXPORT_t>;
    index?: number;
    freq?: number; // frequency in the language
}

interface YT_reference_EXPORT_t {
    source: 'YOUTUBE';
    channelId: string|null,
    ownerChannelName: string|null,
    langCode_YT: string; // Youtube langauge code
    langCode_G: string|null; // ISO-639-1
    title: string|null; // not always available
    movieId: string;
    subtitleIndex: number;
    numSubs: number;
    startTime_ms: number|null; // not available for older items
    endTime_ms: number|null; // not available for older items
}

interface NF_reference_EXPORT_t {
    source: 'NETFLIX';
    movieId: string;
    langCode_N: string;
    langCode_G: string|null; // ISO-639-1
    title: string|null;
    subtitleIndex: number;
    numSubs: number;
    startTime_ms: number|null;
    endTime_ms: number|null;
}

interface thumbImage_EXPORT_t {
    height: number,
    width: number,
    time: number,
    dataURL: string
}

interface itemAudio_EXPORT_t {
    source: 'microsoft' | 'google' | 'movie',
    voice: string | null,
    outputFormat: string, // e.g. 'Audio24Khz48KBitRateMonoMp3'
    dateCreated: number, // unix timestamp
    dataURL: string
}