-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
TODO.md | ||
.envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod download | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
build: | ||
go build -o ~/bin/anki | ||
go build -o ~/bin/anki-autogen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
A command line tool to autogenerate Spanish-English Anki cards. Can be combined with an automation tool like Keyboard Maestro to quickly generate cards while reading Spanish content. | ||
|
||
### Build | ||
|
||
``` | ||
go build | ||
``` | ||
|
||
### Usage | ||
|
||
``` | ||
Usage of anki-autogen: | ||
-collectionsDir string | ||
location of anki collections.media dir. (e.g. Users/username/Library/Application Support/Anki2/collection.media) | ||
-numberDefns int | ||
number of cards to create (default 1: will create a card for the top usage). | ||
-outputFile string | ||
csv output file name. import this file into anki. | ||
-word string | ||
the word to create card for. | ||
``` | ||
|
||
### Example | ||
generate card for word `carta` | ||
``` | ||
anki-autogen -word contar -outputFile cards.csv -collectionsDir "/MEDIA_DIR/collection.media" | ||
``` | ||
|
||
results in `./cards.csv` (cards are appended to this file, so `anki-autogen` can be run repeatedly and all of the cards loaded via a single import) | ||
|
||
```.csv | ||
Ya no se escriben tantas cartas como antes.,carta,"<img src=""carta1594235647385625000.jpg"">",[sound:carta1594235647047358000.mp3],letter, | ||
``` | ||
|
||
After importing into Anki | ||
|
||
![Image of example card](examples/example.png) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.