Giter Site home page Giter Site logo

davidgaya / anki-remote-decks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c-okelly/anki-remote-decks

1.0 2.0 0.0 112.33 MB

Addon for Anki - Creating remote decks in Google Docs

Home Page: https://ankiweb.net/shared/info/911568091

License: GNU General Public License v3.0

Shell 0.40% Python 16.61% HTML 82.99%

anki-remote-decks's Introduction

anki-remote-decks

Build Status

Anki add-on to allow users to create decks in Google Docs that can then be synced with Anki. The remote deck acts as the source of truth. When a user syncs, cards are added / updated / deleted in the local deck. When cards are updated (excluding the primary field) their history is preserved.

Official Add-on => Anki Remote Decks

Overview

  • This add-on is still in beta and so only supports very basic functionality
  • Only Basic cards are currently supported
  • Support for text formatting
  • More features will come in the future

GIF of adding a new deck Basic Example using Google Docs

Create a new deck

There are two steps:

  • Creating a Google Doc
  • Publishing the Google Doc

Example remote deck

Example Editable Google docs deck

Example Published Google docs deck

Creating Google doc

  • Create a new Google Docs page
  • Write your Questions and Answers in the following format using bullet points
# Some comment you don't want included
* Question 1
  * Answer 1
* Question 2
  * Answer 2

An example is shown below:

Google Docs image

This would produce the following:

  • A deck named test_deck
  • Two basic notes with the associated questions and answers

Publishing the Google docs

The Google Docs page must be published in order to be publically accessible.

  • File > Publish to Web

  • Click on the publish button

  • The link provided is your key for syncing new decks.

An example published deck Example Google docs deck

Adding the deck to Anki

To add a new remote deck:

  • Click on Tools => Manage Remote Decks => Add new remote deck
  • Add the URL of your remote deck
  • Click OK

The new deck will be added to Anki.

Adding new content and syncing decks to update with changes

Go to the original Google doc and make the changes you wish to see. It can take up to 5 minutes for changes to be published to the public version. Keep checking until you see your changes.

To sync all current remote decks:

  • Click on Tools => Manage Remote Decks => Sync remote deck

GIF of adding new content and syncing Syncing new content

Remove a remote deck

Removed decks are only unlinked from the remote doc. The local copy is not deleted.

  • Click on Tools => Manage Remote Decks => Remove remote deck

How does the add-on manage changes with note history?

  • New notes are added without any history
  • Notes removed from the Google doc are removed from the local deck
  • If the answer section changes, the note is updated and history is preserved
  • If the question line (primary field) changes, the old note is deleted and a new note is added.
    • History is lost for the note

Formatting support

Currently the following formatting is supported:

  • Bold
  • Underlined
  • Italics
  • Colors

Manage image size

Images can be sized by change their size within the Google doc itself. The heigh and width in PX of the image is added to the Anki card.

Controlling note type

The note type can be set as follows:

This would set the note to a basic and reversed type:

* Question line
# type = Basic (and reversed card)
    * Answer line

This would set the note to a Cloze:

* When was Dublin founded {{c1::1204}}
# type=Cloze
    * Extra Info

HTML list types => list

* Answers on cards are displayed as list
* By default this will use an unordered

Unordered list (Default)

# list=ul
# list=unordered

Produces a card like below

Question
_______________________________________________________________________
* Answer 1
* Answer 2

Ordered list

# list=ol
# list=ordered

Produces a card like below

Question
_______________________________________________________________________
1. Answer 1
2. Answer 2

No list

# list=false
# list=None

Produces a card like below

Question
_______________________________________________________________________
Answer 1
Answer 2

Contributing

The repo is not really setup up currently for contributing.

In order to package the repository run the following scripts. This will generate a zip with the required files for an Anki Add-on

./installOrgToAnki.sh
./package.sh

Issues

If you have an issue please file a github issue! Thanks

Future development

Future development will be tracked under issues as feature requests

Contributors

Github user fneurohr22

anki-remote-decks's People

Contributors

c-okelly avatar snoyes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.