Skip to content

Commit

Permalink
merged libanki and ankiqt into single distro
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Dec 21, 2012
0 parents commit d477df8
Show file tree
Hide file tree
Showing 300 changed files with 40,745 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.pyc
*~
*.mo
*\#
.*.swp
samples
unihan.db
.coverage
683 changes: 683 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions LICENSE.logo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Anki's logo is copyright Alex Fraser, and is licensed under the AGPL3
like the rest of Anki's code, but with extra provisions to allow more
liberal use of the logo under limited conditions.

Under the following conditions, Anki's logo may be included in blogs,
newspaper articles, books, videos and other such material about Anki.

* The logo must be used to refer to Anki, AnkiMobile or AnkiDroid,
and a link to http://ankisrs.net must be provided. When your
content is focused specifically on AnkiDroid, a link to
http://code.google.com/p/ankidroid/wiki/Index may be provided
instead of the first link.
* The branding of your website or publication must be more prominent
than the Anki logo, to make it clear that the text/video/etc you
are publishing is your own content and not something originating
from the Anki project.
* The logo must be used unmodified - no cropping, changing of colours
or adding or deleting content is allowed. You may resize the image
provided the horizontal and vertical dimensions are resized
equally.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX=/usr

all:
@echo "You can run Anki with ./runanki"
@echo "If you wish to install it system wide, type 'sudo make install'"
@echo "Uninstall with 'sudo make uninstall'"

install:
@test ! -d .git || (echo "Install from git is not supported. Please use a tarball."; false)
rm -rf ${DESTDIR}${PREFIX}/share/anki
mkdir -p ${DESTDIR}${PREFIX}/share/anki
cp -av * ${DESTDIR}${PREFIX}/share/anki/
cd ${DESTDIR}${PREFIX}/share/anki && (\
mv runanki ${DESTDIR}${PREFIX}/local/bin/;\
mv anki.xpm anki.png ${DESTDIR}${PREFIX}/share/pixmaps/;\
mv anki.desktop ${DESTDIR}${PREFIX}/share/applications;\
mv anki.1 ${DESTDIR}${PREFIX}/share/man/man1/)
xdg-mime install anki.xml --novendor
xdg-mime default anki.desktop application/x-anki
xdg-mime default anki.desktop application/x-apkg
@echo
@echo "Install complete."

uninstall:
rm -rf ${DESTDIR}${PREFIX}/share/anki
rm -rf ${DESTDIR}${PREFIX}/local/bin/anki
rm -rf ${DESTDIR}${PREFIX}/share/pixmaps/anki.{xpm,png}
rm -rf ${DESTDIR}${PREFIX}/share/applications/anki.desktop
rm -rf ${DESTDIR}${PREFIX}/share/man/man1/anki.1
-xdg-mime uninstall ${DESTDIR}${PREFIX}/share/mime/packages/anki.xml
@echo
@echo "Uninstall complete."
34 changes: 34 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Anki
-------------------------------------

Prerequisites
---------------

To install the prerequisites on Ubuntu/Debian, please use the following
command:

sudo apt-get install python-qt4 mplayer lame libportaudio2

If you're on another distribution the packages may be named differently, so
please consult your package manager.

Your Python version will need to be 2.6 or 2.7 (not 3+), and both Qt and PyQt
need to be 4.7 or later.

Installation & Running
------------------------

Anki does not need installing, and can be run from the directory it is
extracted to. If you extracted it to ~/anki-2.0 for example, you can run Anki
by simply typing ~/anki-2.0/runanki in a terminal.

If you'd like to install it system wide, change to the folder you extracted it
to, and run 'sudo make install'. If you need to uninstall Anki in the future,
you can do so by typing 'sudo make uninstall'.

More information
-----------------

For more information and the latest version, please see the website at:

http://ankisrs.net/
34 changes: 34 additions & 0 deletions README.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Please see the README file for basic requirements.

You also need to have the python-pyqt development packages installed
(specifically, you need the binary pyuic4).

To use the development version:

$ git clone https://github.com/dae/anki.git
$ cd anki
$ ./tools/build_ui.sh

Make sure you rebuild the UI every time you update the sources.

The translations are stored in a bazaar repo for integration with Launchpad's
translation services. If you want to use a language other than English:

$ cd ..
$ mv anki dtop # i18n code expects anki folder to be called dtop
$ bzr clone lp:anki i18n
$ cd i18n
$ ./update-mos.sh
$ cd ../dtop

And now you're ready to run Anki:
$ ./anki

Windows users may find the following document useful:
http://ankisrs.net/docs/WindowsDevEnvironment.html

Before contributing code, please read the LICENSE file.

If you'd like to contribute translations, please see the translations section
of http://ankisrs.net/docs/manual.html#_contributing

53 changes: 53 additions & 0 deletions anki.1
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions anki.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set PYTHONPATH=../lib
cd /d %~dp0
python anki
rem pause
12 changes: 12 additions & 0 deletions anki.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=Anki
Comment=An intelligent spaced-repetition memory training program
GenericName=Flashcards
Exec=anki
TryExec=anki
Icon=anki
Categories=Education;Languages;KDE;Qt;
Terminal=false
Type=Application
Version=1.0
MimeType=application/x-apkg;application/x-anki;
Binary file added anki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions anki.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>

<mime-type type="application/x-anki">
<comment>Anki 1.2 deck</comment>
<glob pattern="*.anki"/>
</mime-type>

<mime-type type="application/x-apkg">
<comment>Anki 2.0 deck</comment>
<glob pattern="*.apkg"/>
</mime-type>

</mime-info>
Loading

0 comments on commit d477df8

Please sign in to comment.