mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
add makefile and support files
This commit is contained in:
parent
1d8fd1437b
commit
f52073f2e9
6 changed files with 383 additions and 14 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
all:
|
||||||
|
@echo "You can run Anki with ./anki"
|
||||||
|
@echo "If you wish to install it system wide, type 'sudo make install'"
|
||||||
|
@echo "Uninstall with 'sudo make uninstall'"
|
||||||
|
|
||||||
|
install:
|
||||||
|
rm -rf /usr/share/anki
|
||||||
|
mkdir -p /usr/share/anki
|
||||||
|
cp -av * /usr/share/anki/
|
||||||
|
cd /usr/share/anki && (\
|
||||||
|
mv anki /usr/local/bin/;\
|
||||||
|
mv anki.xpm anki.png /usr/share/pixmaps/;\
|
||||||
|
mv anki.desktop /usr/share/applications;\
|
||||||
|
mv anki.1 /usr/share/man/man1/)
|
||||||
|
@echo
|
||||||
|
@echo "Install complete."
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -rf /usr/share/anki
|
||||||
|
rm -rf /usr/local/bin/anki
|
||||||
|
rm -rf /usr/share/pixmaps/anki.{xpm,png}
|
||||||
|
rm -rf /usr/share/applications/anki.desktop
|
||||||
|
rm -rf /usr/share/man/man1/anki.1
|
||||||
|
@echo
|
||||||
|
@echo "Uninstall complete."
|
24
anki
24
anki
|
@ -1,15 +1,15 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
if __name__ == "__main__":
|
# system-wide install
|
||||||
try:
|
sys.path.insert(0, "/usr/share/anki")
|
||||||
modDir=os.path.dirname(os.path.realpath(__file__))
|
sys.path.insert(0, "/usr/share/anki/libanki")
|
||||||
runningDir=os.path.split(modDir)[0]
|
# running from extracted folder
|
||||||
except NameError:
|
base = os.path.dirname(os.path.realpath(__file__))
|
||||||
# py2exe
|
sys.path.insert(0, base)
|
||||||
runningDir=os.path.dirname(sys.argv[0])
|
sys.path.insert(0, os.path.join(base, "libanki"))
|
||||||
modDir=runningDir
|
# or git
|
||||||
sys.path.insert(0, os.path.join(modDir, "libanki"))
|
sys.path.insert(0, os.path.join(base, "..", "libanki"))
|
||||||
sys.path.insert(0, os.path.join(os.path.join(modDir, ".."), "libanki"))
|
# start
|
||||||
import anki, aqt
|
import anki, aqt
|
||||||
aqt.run()
|
aqt.run()
|
||||||
|
|
53
anki.1
Normal file
53
anki.1
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
|
.\" First parameter, NAME, should be all caps
|
||||||
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
|
.TH ANKI 1 "August 11, 2007"
|
||||||
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
|
.\"
|
||||||
|
.\" Some roff macros, for reference:
|
||||||
|
.\" .nh disable hyphenation
|
||||||
|
.\" .hy enable hyphenation
|
||||||
|
.\" .ad l left justify
|
||||||
|
.\" .ad b justify to both left and right margins
|
||||||
|
.\" .nf disable filling
|
||||||
|
.\" .fi enable filling
|
||||||
|
.\" .br insert line break
|
||||||
|
.\" .sp <n> insert n+1 empty lines
|
||||||
|
.\" for manpage-specific macros, see man(7)
|
||||||
|
.SH NAME
|
||||||
|
anki \- flexible, intelligent flashcard program
|
||||||
|
.SH DESCRIPTION
|
||||||
|
\fBAnki\fP is a program designed to help you remember facts (such as words and
|
||||||
|
phrases in a foreign language) as easily, quickly and efficiently as possible.
|
||||||
|
To do this, it tracks how well you remember each fact, and uses that
|
||||||
|
information to optimally schedule review times. With a minimal amount of
|
||||||
|
effort, you can greatly increase the amount of material you remember, making
|
||||||
|
study more productive, and more fun.
|
||||||
|
|
||||||
|
Anki is based on a theory called \fIspaced repetition\fP. In simple terms, it means
|
||||||
|
that each time you review some material, you should wait longer than last time
|
||||||
|
before reviewing it again. This maximizes the time spent studying difficult
|
||||||
|
material and minimizes the time spent reviewing things you already know. The
|
||||||
|
concept is simple, but the vast majority of memory trainers and flashcard
|
||||||
|
programs out there either avoid the concept all together, or implement
|
||||||
|
inflexible and suboptimal methods that were originally designed for pen and
|
||||||
|
paper.
|
||||||
|
|
||||||
|
.SH OPTIONS
|
||||||
|
.B \-b ~/.anki
|
||||||
|
Use ~/.anki instead of ~/Anki as Anki's base folder
|
||||||
|
|
||||||
|
.B \-p ProfileName
|
||||||
|
Load a specific profile
|
||||||
|
|
||||||
|
.B \-l <lang>
|
||||||
|
Start the program in a specific language (de=German, en=English, etc)
|
||||||
|
.SH SEE ALSO
|
||||||
|
Anki home page: <http://ankisrs.net/>
|
||||||
|
.SH AUTHOR
|
||||||
|
Anki was written by Damien Elmes <anki@ichi2.net>.
|
||||||
|
.PP
|
||||||
|
This manual page was written by Nicholas Breen <nbreen@ofb.net>,
|
||||||
|
for the Debian project (but may be used by others), and has been
|
||||||
|
updated for Anki 2 by Damien Elmes.
|
|
@ -1,8 +1,8 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Anki
|
Name=Anki
|
||||||
Comment=An intelligent spaced-repetition memory training program
|
Comment=An intelligent spaced-repetition memory training program
|
||||||
GenericName=Language Learning Flashcards
|
GenericName=Flashcards
|
||||||
Exec=anki %f
|
Exec=anki
|
||||||
TryExec=anki
|
TryExec=anki
|
||||||
Icon=anki
|
Icon=anki
|
||||||
Categories=Education;Languages;KDE;
|
Categories=Education;Languages;KDE;
|
||||||
|
|
BIN
anki.png
Normal file
BIN
anki.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
291
anki.xpm
Normal file
291
anki.xpm
Normal file
|
@ -0,0 +1,291 @@
|
||||||
|
/* XPM */
|
||||||
|
static char * anki_xpm[] = {
|
||||||
|
"32 32 256 2",
|
||||||
|
" c None",
|
||||||
|
". c #525252",
|
||||||
|
"+ c #515151",
|
||||||
|
"@ c #505050",
|
||||||
|
"# c #4F4F4F",
|
||||||
|
"$ c #4D4D4D",
|
||||||
|
"% c #4B4B4B",
|
||||||
|
"& c #4A4A4A",
|
||||||
|
"* c #494949",
|
||||||
|
"= c #484848",
|
||||||
|
"- c #474747",
|
||||||
|
"; c #464646",
|
||||||
|
"> c #454545",
|
||||||
|
", c #444444",
|
||||||
|
"' c #424242",
|
||||||
|
") c #404040",
|
||||||
|
"! c #595959",
|
||||||
|
"~ c #5E5E5E",
|
||||||
|
"{ c #707070",
|
||||||
|
"] c #787878",
|
||||||
|
"^ c #7C7C7C",
|
||||||
|
"/ c #7B7B7B",
|
||||||
|
"( c #7A7A7A",
|
||||||
|
"_ c #797979",
|
||||||
|
": c #777777",
|
||||||
|
"< c #767676",
|
||||||
|
"[ c #757575",
|
||||||
|
"} c #747474",
|
||||||
|
"| c #737373",
|
||||||
|
"1 c #727272",
|
||||||
|
"2 c #6D6D6D",
|
||||||
|
"3 c #606060",
|
||||||
|
"4 c #636363",
|
||||||
|
"5 c #828282",
|
||||||
|
"6 c #808080",
|
||||||
|
"7 c #7F7F7F",
|
||||||
|
"8 c #7E7E7E",
|
||||||
|
"9 c #7D7D7D",
|
||||||
|
"0 c #6C6C6C",
|
||||||
|
"a c #616161",
|
||||||
|
"b c #898989",
|
||||||
|
"c c #888888",
|
||||||
|
"d c #868686",
|
||||||
|
"e c #848484",
|
||||||
|
"f c #818181",
|
||||||
|
"g c #989898",
|
||||||
|
"h c #656565",
|
||||||
|
"i c #646464",
|
||||||
|
"j c #8A8A8A",
|
||||||
|
"k c #8E8E8E",
|
||||||
|
"l c #8C8C8C",
|
||||||
|
"m c #858585",
|
||||||
|
"n c #838383",
|
||||||
|
"o c #929292",
|
||||||
|
"p c #A7A7A7",
|
||||||
|
"q c #949494",
|
||||||
|
"r c #C7C7C7",
|
||||||
|
"s c #E8E9E9",
|
||||||
|
"t c #6E6E6E",
|
||||||
|
"u c #696969",
|
||||||
|
"v c #959595",
|
||||||
|
"w c #939393",
|
||||||
|
"x c #919191",
|
||||||
|
"y c #8F8F8F",
|
||||||
|
"z c #999999",
|
||||||
|
"A c #F6FBFE",
|
||||||
|
"B c #DFEFFB",
|
||||||
|
"C c #E6F1F9",
|
||||||
|
"D c #BADEF5",
|
||||||
|
"E c #D4E9F7",
|
||||||
|
"F c #A5A5A5",
|
||||||
|
"G c #575757",
|
||||||
|
"H c #979797",
|
||||||
|
"I c #969696",
|
||||||
|
"J c #8D8D8D",
|
||||||
|
"K c #8B8B8B",
|
||||||
|
"L c #878787",
|
||||||
|
"M c #E5EFF5",
|
||||||
|
"N c #97CDF1",
|
||||||
|
"O c #8DC8EF",
|
||||||
|
"P c #7ABFED",
|
||||||
|
"Q c #D4EAF9",
|
||||||
|
"R c #C6C6C6",
|
||||||
|
"S c #5B5B5B",
|
||||||
|
"T c #9E9E9E",
|
||||||
|
"U c #9C9C9C",
|
||||||
|
"V c #9B9B9B",
|
||||||
|
"W c #E5E7E8",
|
||||||
|
"X c #B4DAF5",
|
||||||
|
"Y c #90C9F0",
|
||||||
|
"Z c #94CBF1",
|
||||||
|
"` c #ABD6F3",
|
||||||
|
" . c #E4F2FB",
|
||||||
|
".. c #D6D7D7",
|
||||||
|
"+. c #5F5F5F",
|
||||||
|
"@. c #A2A2A2",
|
||||||
|
"#. c #A0A0A0",
|
||||||
|
"$. c #9F9F9F",
|
||||||
|
"%. c #9D9D9D",
|
||||||
|
"&. c #9A9A9A",
|
||||||
|
"*. c #B5B5B5",
|
||||||
|
"=. c #E8F3FA",
|
||||||
|
"-. c #AED8F4",
|
||||||
|
";. c #A9D5F3",
|
||||||
|
">. c #ADD7F4",
|
||||||
|
",. c #CDE7F8",
|
||||||
|
"'. c #EAF5FC",
|
||||||
|
"). c #E7E7E7",
|
||||||
|
"!. c #626262",
|
||||||
|
"~. c #909090",
|
||||||
|
"{. c #A1A1A1",
|
||||||
|
"]. c #D8D8D8",
|
||||||
|
"^. c #EFF2F3",
|
||||||
|
"/. c #ECF1F4",
|
||||||
|
"(. c #E8F3FC",
|
||||||
|
"_. c #F0F0F0",
|
||||||
|
":. c #B6B6B6",
|
||||||
|
"<. c #666666",
|
||||||
|
"[. c #010101",
|
||||||
|
"}. c #686868",
|
||||||
|
"|. c #A9A9A9",
|
||||||
|
"1. c #B0B0B0",
|
||||||
|
"2. c #E9EAEA",
|
||||||
|
"3. c #F7FBFD",
|
||||||
|
"4. c #D7D7D7",
|
||||||
|
"5. c #6A6A6A",
|
||||||
|
"6. c #000000",
|
||||||
|
"7. c #5D5D5D",
|
||||||
|
"8. c #585858",
|
||||||
|
"9. c #A8A8A8",
|
||||||
|
"0. c #E1E1E1",
|
||||||
|
"a. c #ACACAC",
|
||||||
|
"b. c #5A5A5A",
|
||||||
|
"c. c #717171",
|
||||||
|
"d. c #EEF0F1",
|
||||||
|
"e. c #CCCCCC",
|
||||||
|
"f. c #565656",
|
||||||
|
"g. c #676767",
|
||||||
|
"h. c #C9C9C9",
|
||||||
|
"i. c #AAD6F4",
|
||||||
|
"j. c #DBEBF6",
|
||||||
|
"k. c #ADADAD",
|
||||||
|
"l. c #6F6F6F",
|
||||||
|
"m. c #ECF3F7",
|
||||||
|
"n. c #4CA9E7",
|
||||||
|
"o. c #4EAAE7",
|
||||||
|
"p. c #D2E9F9",
|
||||||
|
"q. c #319CE3",
|
||||||
|
"r. c #118CDF",
|
||||||
|
"s. c #E4E4E4",
|
||||||
|
"t. c #C2C2C2",
|
||||||
|
"u. c #C0C0C0",
|
||||||
|
"v. c #C8C8C8",
|
||||||
|
"w. c #EEEFF0",
|
||||||
|
"x. c #9DD0F2",
|
||||||
|
"y. c #2998E2",
|
||||||
|
"z. c #1C91E0",
|
||||||
|
"A. c #92CBF0",
|
||||||
|
"B. c #96CDF1",
|
||||||
|
"C. c #98CEF1",
|
||||||
|
"D. c #99CEF1",
|
||||||
|
"E. c #F0F8FD",
|
||||||
|
"F. c #5C5C5C",
|
||||||
|
"G. c #ECECEC",
|
||||||
|
"H. c #EEF5F9",
|
||||||
|
"I. c #C1E1F7",
|
||||||
|
"J. c #93CBF0",
|
||||||
|
"K. c #58AEE9",
|
||||||
|
"L. c #3BA0E5",
|
||||||
|
"M. c #2F9AE3",
|
||||||
|
"N. c #2596E2",
|
||||||
|
"O. c #1990E0",
|
||||||
|
"P. c #108BDF",
|
||||||
|
"Q. c #0686DD",
|
||||||
|
"R. c #47A6E7",
|
||||||
|
"S. c #E9EFF3",
|
||||||
|
"T. c #171717",
|
||||||
|
"U. c #DBEDFA",
|
||||||
|
"V. c #70BAEB",
|
||||||
|
"W. c #67B6EA",
|
||||||
|
"X. c #5BB0E8",
|
||||||
|
"Y. c #52ABE7",
|
||||||
|
"Z. c #45A5E6",
|
||||||
|
"`. c #3CA1E5",
|
||||||
|
" + c #309BE3",
|
||||||
|
".+ c #2796E2",
|
||||||
|
"++ c #50ABE8",
|
||||||
|
"@+ c #DCEDF9",
|
||||||
|
"#+ c #A5A6A6",
|
||||||
|
"$+ c #4C4C4C",
|
||||||
|
"%+ c #0F0F0F",
|
||||||
|
"&+ c #ECEDEE",
|
||||||
|
"*+ c #E1F1FB",
|
||||||
|
"=+ c #94CBF0",
|
||||||
|
"-+ c #7ABEED",
|
||||||
|
";+ c #6EB9EB",
|
||||||
|
">+ c #64B4EA",
|
||||||
|
",+ c #58AEE8",
|
||||||
|
"'+ c #4FAAE7",
|
||||||
|
")+ c #43A4E5",
|
||||||
|
"!+ c #3FA2E5",
|
||||||
|
"~+ c #CBE6F8",
|
||||||
|
"{+ c #D0D0D0",
|
||||||
|
"]+ c #101010",
|
||||||
|
"^+ c #F1F6FA",
|
||||||
|
"/+ c #B7DCF5",
|
||||||
|
"(+ c #84C4EE",
|
||||||
|
"_+ c #7BBFED",
|
||||||
|
":+ c #6FB9EB",
|
||||||
|
"<+ c #66B5EA",
|
||||||
|
"[+ c #5AAFE8",
|
||||||
|
"}+ c #5BAFE8",
|
||||||
|
"|+ c #F1F5F7",
|
||||||
|
"1+ c #6B6B6B",
|
||||||
|
"2+ c #D1D1D1",
|
||||||
|
"3+ c #E2F1FB",
|
||||||
|
"4+ c #8EC8F0",
|
||||||
|
"5+ c #82C2EE",
|
||||||
|
"6+ c #78BEED",
|
||||||
|
"7+ c #6CB8EB",
|
||||||
|
"8+ c #63B3EA",
|
||||||
|
"9+ c #D5EBF9",
|
||||||
|
"0+ c #B9B9B9",
|
||||||
|
"a+ c #545454",
|
||||||
|
"b+ c #111111",
|
||||||
|
"c+ c #C5C5C5",
|
||||||
|
"d+ c #E7F4FC",
|
||||||
|
"e+ c #A5D3F3",
|
||||||
|
"f+ c #AAD5F4",
|
||||||
|
"g+ c #ACD7F4",
|
||||||
|
"h+ c #8FC9F0",
|
||||||
|
"i+ c #CACACA",
|
||||||
|
"j+ c #ECF6FC",
|
||||||
|
"k+ c #C2E1F6",
|
||||||
|
"l+ c #CBE5F7",
|
||||||
|
"m+ c #F0F7FD",
|
||||||
|
"n+ c #F9FCFE",
|
||||||
|
"o+ c #C7E4F7",
|
||||||
|
"p+ c #B1D9F4",
|
||||||
|
"q+ c #F1F8FC",
|
||||||
|
"r+ c #121212",
|
||||||
|
"s+ c #CFCFCF",
|
||||||
|
"t+ c #F5FAFD",
|
||||||
|
"u+ c #EFF7FC",
|
||||||
|
"v+ c #F3F3F4",
|
||||||
|
"w+ c #F1F1F1",
|
||||||
|
"x+ c #0D0D0D",
|
||||||
|
"y+ c #BFBFBF",
|
||||||
|
"z+ c #FDFEFE",
|
||||||
|
"A+ c #EBEBEB",
|
||||||
|
"B+ c #AEAEAE",
|
||||||
|
"C+ c #040404",
|
||||||
|
"D+ c #1B1B1B",
|
||||||
|
"E+ c #A3A3A3",
|
||||||
|
"F+ c #0E0E0E",
|
||||||
|
"G+ c #020202",
|
||||||
|
" ",
|
||||||
|
" . + @ # $ $ % & * = - ; > , ' ' ) ",
|
||||||
|
" ! ~ { ] ^ / ( _ _ ] : < [ } | | 1 2 3 $ ' ",
|
||||||
|
" 4 / 5 6 7 8 9 ^ / ( ( _ ] : < [ } } | 0 % ",
|
||||||
|
" a ^ b c d e 5 f 6 7 8 9 ^ / ( _ 9 g f < [ h & ",
|
||||||
|
" i j k l j c d m n 5 f 6 o p q j r s g _ ] t + ",
|
||||||
|
" u v w x y k l j b d m n z A B C D E F ^ / } G ",
|
||||||
|
" 0 z H I q o x y J K b L j M N O P Q R 6 8 < S ",
|
||||||
|
" { T U V z H I q o x y J y W X Y Z ` ...o ( +. ",
|
||||||
|
" } @.#.$.%.U &.g H v w x *.=.-.;.>.,.'.).T 9 !. ",
|
||||||
|
" @ ~.o g T {.$.%.U &.g %.].^./.(.Q _.:.K L 6 <. ",
|
||||||
|
" [.+.!.}.2 ] c T #.T U %.|.1.1.2.3.4.o J K e 5. ",
|
||||||
|
" 6.3 ~ 7.S ! 8.S t L w T T %.V 9.0.a.q w x b t ",
|
||||||
|
" 6.4 !.3 +.7.S b.c.! a { e U $.%.9.V g H v J 1 ",
|
||||||
|
" 6.<.h 4 !.3 +.~.d.e.0 G f.! } w T $.%.U &.o < ",
|
||||||
|
" 6.5.}.g.h 4 !.h.i.j.k.b.! G f.3 [ &.@.#.$.I ( ",
|
||||||
|
" 6.2 0 5.u g.l.m.n.o.=.m 7.b.! G f.! 1 w {.V 8 ",
|
||||||
|
" 6.{ l.2 0 5.z p.q.r.Z s.t.u.u.a.l.G f.~ : V 5 ",
|
||||||
|
" 6.} [ J T v.w.x.y.z.z.A.B.C.D.E.*.S b.8.G G F. ",
|
||||||
|
" 6./ 1.G.H.I.J.K.L.M.N.O.P.Q.R.S.~.~ 7.S b.* T. ",
|
||||||
|
" 6.d ].U.O V.W.X.Y.Z.`. +.+++@+#+h !.3 ~ 7.$+%+ ",
|
||||||
|
" 6.8 &.&+*+=+-+;+>+,+'+)+!+~+{+2 g.h i !.3 # ]+ ",
|
||||||
|
" 6.f 6 K v.^+/+(+_+:+<+[+}+|+z 1+5.}.g.h i . ]+ ",
|
||||||
|
" 6.e n f m 2+3+N 4+5+6+7+8+9+0+l.2 1+5.}.g.a+b+ ",
|
||||||
|
" 6.c L m e c+d+-.e+f+g+h+_+g+2.} c.l.t 0 1+8.b+ ",
|
||||||
|
" 6.K j c L i+j+k+l+m+n+ .o+p+q+b } 1 c.l.t b.r+ ",
|
||||||
|
" 6.7 J l j s+t+u+v+0+~.*.4._.w+L ] < } | c.G x+ ",
|
||||||
|
" 6.a x y J y+z+A+B+d e 5 L V V 8 / _ ] < [ & C+ ",
|
||||||
|
" D+[ o x H E+y K b c d e n f 6 8 ^ / _ g.F+ ",
|
||||||
|
" G+D+4 n o x y k l K b c d m n 5 7 | $ D+6. ",
|
||||||
|
" 6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6. ",
|
||||||
|
" "};
|
Loading…
Reference in a new issue