Skip to content

Commit e88a775

Browse files
authored
Merge pull request #60 from alanxoc3/50-readme
50 readme
2 parents 5506b81 + 4188731 commit e88a775

File tree

1 file changed

+41
-18
lines changed

1 file changed

+41
-18
lines changed

README.md

+41-18
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ Turning notes into flashcards, or should I say concards! Concards is my ongoing
99
attempt to make flashcards simple and easily embeddable into text document
1010
based notes. Concards is much lighter than other flashcard applications such as
1111
such as [Anki](https://apps.ankiweb.net/) or
12-
[Memrise](https://www.memrise.com/), but is also very powerful by following the
13-
[Unix Philosophy](https://en.wikipedia.org/wiki/Unix_philosophy) of "Do one
14-
thing and do it well".
12+
[Memrise](https://www.memrise.com/), but it is also very powerful striving to
13+
do one thing and do it well.
1514

1615
## Features
17-
- Implements the [SM2](https://www.supermemo.com/english/ol/sm2.htm) Repetition Algorithm.
16+
- Implements a repetition algorithm similar to [SM2](https://www.supermemo.com/english/ol/sm2.htm).
1817
- Reading from multiple files & directories.
1918
- Conveniently edit cards while reviewing them!
2019
- Helpful syntax for adding reversible cards.
@@ -27,7 +26,7 @@ page](https://github.com/alanxoc3/concards/releases). At the moment, only Linux
2726
and Mac are supported.
2827

2928
### Building From Source
30-
It should be super simple. Just use the `go install` command:
29+
It should be super simple:
3130
``` bash
3231
go install github.com/alanxoc3/concards
3332
```
@@ -42,11 +41,11 @@ This project currently depends on:
4241
Asian characters.
4342

4443
Concards wouldn't be where it is today without those open source projects &
45-
their contributors, so please check them out too :).
44+
their contributors, so please check them out too!
4645

4746
## Usage
4847
The complete syntax of embedding your flashcards into text documents consists
49-
of these keywords:
48+
of these symbols:
5049
```
5150
'@>' = Starts a concards block and also starts a question.
5251
'|' = Separates sides.
@@ -98,20 +97,44 @@ $ concards README.md
9897
```
9998

10099
## Advanced Usage
101-
### The Meta Data File
102-
Here is an example meta-data file:
100+
### The Predict File
101+
The predict file contains information needed to make a prediction when you
102+
should review a card next.
103+
104+
Here is an example predict file:
105+
```
106+
002141b9b9448a257b05da1f2eb78972 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 2 1 1 sm2
107+
3dda75cb44ed447186834541475f32e2 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 1 3 -2 sm2
108+
```
109+
110+
Here is that same file, but annotated:
103111
```
104-
3dda75cb44ed447186834541475f32e2 2019-01-01T00:00:00Z 0 sm2 2.5
105-
8525b45f883c05eec46b4f7a88e7f7ef 2020-01-01T00:00:00Z 0 sm2 2.5
112+
sha256sum cut in half | next timestamp | previous timestamp | total yes count | total no count | current streak | spaced repetition algorithm used
113+
---------------------------------+----------------------+----------------------+---+---+----+----
114+
002141b9b9448a257b05da1f2eb78972 | 2020-08-08T18:00:17Z | 2020-08-02T18:00:17Z | 2 | 1 | 1 | sm2
115+
3dda75cb44ed447186834541475f32e2 | 2020-08-08T18:00:17Z | 2020-08-02T18:00:17Z | 1 | 3 | -2 | sm2
106116
```
107117

108-
Here is the same file, but annotated:
118+
This file is read from `$CONCARDS_PREDICT`, or `$HOME/.config/concards/predict`
119+
if that environment variable doesn't exist.
120+
121+
### The Outcome File
122+
The outcome file contains the historical outcomes of every time a card has been
123+
passed off or failed. It differs only slightly from the predict file. Here is
124+
the corresponding outcome file for the predict file example above:
109125
```
110-
sha256sum cut in half | review timestamp | streak | alg | data
111-
---------------------------------+-----------------------+--------+-----+-----
112-
3dda75cb44ed447186834541475f32e2 | 2019-01-01T00:00:00Z | 0 | sm2 | 2.5
113-
8525b45f883c05eec46b4f7a88e7f7ef | 2020-01-01T00:00:00Z | 0 | sm2 | 2.5
126+
002141b9b9448a257b05da1f2eb78972 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 0 0 0 0
127+
002141b9b9448a257b05da1f2eb78972 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 0 1 -1 1
128+
002141b9b9448a257b05da1f2eb78972 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 1 1 0 1
129+
3dda75cb44ed447186834541475f32e2 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 0 0 0 1
130+
3dda75cb44ed447186834541475f32e2 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 1 0 1 0
131+
3dda75cb44ed447186834541475f32e2 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 1 1 0 0
132+
3dda75cb44ed447186834541475f32e2 2020-08-08T18:00:17Z 2020-08-02T18:00:17Z 1 2 -1 0
114133
```
115134

116-
This file is saved to `$CONCARDS_META`. If that environment variable doesn't
117-
exist, then it is saved to `$HOME/.concards-meta`.
135+
You can notice that there are two main differences from the predict file:
136+
- There are usually multiple lines with the same hash.
137+
- The last column is a boolean "pass or fail" instead of an algorithm name.
138+
139+
This file is read from `$CONCARDS_OUTCOME`, or `$HOME/.config/concards/outcome`
140+
if that environment variable doesn't exist.

0 commit comments

Comments
 (0)