omoidasu

a flashcard review system built on oboeru
git clone anongit@rnpnr.xyz:omoidasu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: d13f2eee3110ef5242a132a09f2719b862bc7337
Parent: e4502622c568e3efca8fff6f0b16ebe2fa048111
Author: Randy Palamar
Date:   Thu, 19 Aug 2021 15:29:53 -0600

update review to use oboerudata

this is not as pretty as I would like it to be but it works for now.

Diffstat:
MREADME.md | 6++++--
Mreview | 11+++++------
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -18,6 +18,7 @@ These scripts assume a directory structure as follows: ./ config deck1.deck + deck1.data deck1/ cardid1/ front.md @@ -28,6 +29,7 @@ These scripts assume a directory structure as follows: cardid2/ ... deck2.deck + deck2.data deck2/ ... ... @@ -40,9 +42,9 @@ utils. If they don't open an issue. * `omoidasu`: creates a default `config` in the current directory. * `gencard`: creates a new card and associated directory for the specified deck and opens the front and back in an `$EDITOR`. +* `deck2data`: converts the front and back of the card to the data format + expected by oboerudata * `review`: ties all the programs together starts reviews on the specified decks -* `card2html`: converts the front and back of the card to the format - expected by oboeruhttp * `fetchcard`: takes the deck and id output by oboeru and finds the cards path * `nextcardid`: finds the next available id in a supplied deck file diff --git a/review b/review @@ -11,17 +11,16 @@ usage() { [ ! -f $1 ] && usage fifo=fifo.$$ +sync=sync.$$ die() { - rm -f $fifo + rm -f $fifo $sync } trap die EXIT INT TERM -mkfifo -m 0600 $fifo +mkfifo -m 0600 $fifo $sync -oboeru $fifo "$@" \ -| $FETCHCARD \ -| $CONVERTCARD \ -| $FILTER \ +oboeru $fifo "$@" > $sync & +oboerudata $sync \ | oboeruhttp -p "$PORT" -F "$FAIL" -P "$PASS" -Q "$QUIT" -S "$SHOW" -q "$BYE" \ > $fifo &