cards

a command-line tool for reviewing flashcards
git clone https://github.com/tanguyandreani/cards
Log | Files | Refs | README

README.md (1305B)


      1 # flashcards
      2 
      3 ![](https://lambdafun.neocities.org/assets/cards.gif)
      4 
      5 ## Online resources (older->newer)
      6 
      7 - https://soykaf.me/2019-03-28-exg.html
      8 - https://soykaf.me/2019-04-05-45Y.html
      9 - https://soykaf.me/assets/cards2.mp4
     10 
     11 ## Build and run
     12 
     13     make
     14     ./a.out -f hiragana.csv
     15     # at some point enter !save and exit with CTRL-D
     16 
     17 ## Tutorial
     18 
     19 Edit `cards.csv` and save your session by typing `!save` while studying.
     20 
     21 Here is a typical `cards.csv`:
     22 
     23     front1,back1,
     24     front2,back2,
     25     ...
     26 
     27 You can also use the `-f` flag to use another file such as hiragana.csv 
     28 for instance.
     29 
     30 WARNING! This tool won't care about the order in which cards were 
     31 written in the file!
     32 
     33 If you want `cards.c` to know which cards to show first, you'll have to 
     34 fill the last field of each line with a number. The higher it is the 
     35 earlier the card will appear. This number is altered by `cards.c` when 
     36 you type `!save`.
     37 
     38 If you want your cards to appear in the same order as in cards.csv, run 
     39 this:
     40 
     41     cat cards.csv | awk 'BEGIN{i=1000}{print $0 i--}' > cards2.csv
     42 
     43 ## Tips
     44 
     45     cat hiragana.csv katakana.csv > cards.csv
     46     ./a.out
     47 
     48 ## Credits
     49 
     50 This project includes files from csv_parser 
     51 
     52 https://github.com/semitrivial/csv_parser
     53 
     54 ## Development notes
     55 
     56 Known to compile and run on Debian Stretch and FreeBSD 12