Coder Social home page Coder Social logo

ankimaker's Introduction

AnkiMaker


Status License

English 简体中文


About

AnkiMaker is a tool that generates flashcards for Anki.

AnkiMaker can generate flashcards from .toml files to .txt files which can be imported into Anki.

Configuration

default mode

You can edit the flashcards by editing the .toml file. One file is one deck.

The following is an example of a .toml file generated by ankimaker --default filename.toml

[info]
deck = ""
mode = "default"
notetype = ""

[content]
paragraph = []

These fields are essential.

You can look An .toml file (written in Chinese) that can be used by AnkiMaker.

You can also use some other toml grammar, such as replacing """ with ".

default mode is suitable for almost all Anki decks.

poem mode

If you don't want to recite ancient Chinese poems in Chinese for the exam which requires you to write them without any mistakes, you needn't to read this.

If you want, read the 简体中文 please.

Prerequisites

Please make sure you are using the latest version of Anki to import the flashcards generated by AnkiMaker. Flashcards may not be imported correctly if you are using an older version (<=2.1.54).

And you need to configure the notetype you want use in Anki.

What's more, you should create the deck you want to import the flashcards into (If you use -o, you don't need it).

Usage

To use AnkiMaker, run the following command:

cargo r --release -- <PATH>...

For example, if you want to generate flashcards from file1.toml and file2.toml, run:

cargo r --release -- file1.toml file2.toml

It will generate file1.txt and file2.txt in the their current directory. You can then import this file into Anki.

You can also use the --default argument to generate a default.toml file:

cargo r --release -- --default default.toml

You can use -o or --output argument to specify the output file name:

cargo r --release -- file1.toml file2.toml -o output.txt

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request if you find a bug or have a feature request.

Authors

You can also check the list of contributors who participated in this project.

ankimaker's People

Stargazers

 avatar

Watchers

 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.