convert asciidoc notes to anki notes
Project description
ankidoc
ankidoc is a short python script intended to make writing
anki notes in asciidoc easier.
Synopsis
ankidoc [-h] [ -d | -n | -l ] [-o OUT] [-a ATTR] [-L LV] files
Short introduction
The script can be used to generate a text file for import into anki from notes written in asciidoc.
The asciidoc notes need to be in a specific format in order for the script to
be able to work with them; The idea is that each note -- or at least each of the
notes the user wants to have in one deck -- is assigned a unique ID. It is then
split into two asciidoc files, one with the content of the front side of the
note, and one of the back side. These two files must now be saved as ID.front
and ID.back, ID being the unique note ID that was assigned to the note.
If, for example, two notes, NoteOne and NoteTwo were to be created, four
files would be needed for that:
NoteOne.back
NoteOne.front
NoteTwo.back
NoteTwo.front
Now, the list of .front files desired to be in the final import file can be
passed to ankidoc. The script will then find the corresponding .back files
(which have to be in the same directory), convert all files to HTML and output
a properly formatted anki import file named out. The name and location of the
output file can be adjusted using the -o option.
Anki Import File Format
When importing a file generated with ankidoc into anki, the following points
should be considered
ankidocseparates note fields with a semicolon (;).ankidoccreates all notes with three fields: the previously defined note ID, the front side and the back side. It is recommended to use a note type with three fields in the import, so that the note ID can be used to avoid duplicates and update already present notes instead.
More information
For more information and generally more detailed documentation, please refer to the manual page.
If you want to view the manual page without installing it, clone the repository
and navigate your terminal to it. You can then use the man command on
ankidoc.1 to display the manual page as usual.
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ankidoc-0.2.0.tar.gz.
File metadata
- Download URL: ankidoc-0.2.0.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f53a247e3074b8bd1dca648d51698e4c4d4d063b0070aa558ef7d21be5638666
|
|
| MD5 |
9a4a35cbff0cbfcb50358a9e1b295234
|
|
| BLAKE2b-256 |
06d0e166b13d59064fc2a6613571c7a792cd960723bf080945c852849b5694e5
|
File details
Details for the file ankidoc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ankidoc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53450b7c14210ce0cb2f4e66ccde9d79cdb62191d7bce818e2f74f0a4b4dfdf8
|
|
| MD5 |
3727219d7ac08038dc342085313749d7
|
|
| BLAKE2b-256 |
b8d8447a166a9072820d243b274916c96189333e26a5d2fa0d680a161f933230
|