Permalink
Browse files

merged libanki and ankiqt into single distro

  • Loading branch information...
0 parents commit d477df8c28783c1d242b006473563f7cb2abc07d @dae committed Dec 21, 2012
Showing with 40,745 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +683 −0 LICENSE
  3. +20 −0 LICENSE.logo
  4. +32 −0 Makefile
  5. +34 −0 README
  6. +34 −0 README.development
  7. +53 −0 anki.1
  8. +4 −0 anki.bat
  9. +12 −0 anki.desktop
  10. BIN anki.png
  11. +14 −0 anki.xml
  12. +291 −0 anki.xpm
  13. +33 −0 anki/__init__.py
  14. +15 −0 anki/anki
  15. +55 −0 anki/ankiweb.certs
  16. +182 −0 anki/cards.py
  17. +715 −0 anki/collection.py
  18. +85 −0 anki/consts.py
  19. +104 −0 anki/db.py
  20. +471 −0 anki/decks.py
  21. +19 −0 anki/errors.py
  22. +299 −0 anki/exporting.py
  23. +522 −0 anki/find.py
  24. +62 −0 anki/hooks.py
  25. +19 −0 anki/importing/__init__.py
  26. +43 −0 anki/importing/anki1.py
  27. +356 −0 anki/importing/anki2.py
  28. +36 −0 anki/importing/apkg.py
  29. +35 −0 anki/importing/base.py
  30. +126 −0 anki/importing/csvfile.py
  31. +143 −0 anki/importing/mnemo.py
  32. +251 −0 anki/importing/noteimp.py
  33. +484 −0 anki/importing/supermemo_xml.py
  34. +14 −0 anki/js.py
  35. +101 −0 anki/lang.py
  36. +125 −0 anki/latex.py
  37. +431 −0 anki/media.py
  38. +569 −0 anki/models.py
  39. +158 −0 anki/notes.py
  40. +1,324 −0 anki/sched.py
  41. +312 −0 anki/sound.py
  42. +834 −0 anki/stats.py
  43. +4 −0 anki/statsbg.py
  44. +86 −0 anki/stdmodels.py
  45. +321 −0 anki/storage.py
  46. +721 −0 anki/sync.py
  47. +160 −0 anki/tags.py
  48. +20 −0 anki/template/LICENSE
  49. +8 −0 anki/template/README.anki
  50. +78 −0 anki/template/README.rst
  51. +7 −0 anki/template/__init__.py
  52. +33 −0 anki/template/furigana.py
  53. +21 −0 anki/template/hint.py
  54. +223 −0 anki/template/template.py
  55. +116 −0 anki/template/view.py
  56. +721 −0 anki/upgrade.py
  57. +327 −0 anki/utils.py
  58. +231 −0 aqt/__init__.py
  59. +44 −0 aqt/about.py
  60. +188 −0 aqt/addcards.py
  61. +161 −0 aqt/addons.py
  62. +1,545 −0 aqt/browser.py
  63. +431 −0 aqt/clayout.py
  64. +159 −0 aqt/customstudy.py
  65. +334 −0 aqt/deckbrowser.py
  66. +83 −0 aqt/deckchooser.py
  67. +283 −0 aqt/deckconf.py
  68. +78 −0 aqt/downloader.py
  69. +115 −0 aqt/dyndeckconf.py
  70. +66 −0 aqt/editcurrent.py
  71. +1,113 −0 aqt/editor.py
  72. +72 −0 aqt/errors.py
  73. +92 −0 aqt/exporting.py
  74. +169 −0 aqt/fields.py
  75. +354 −0 aqt/importing.py
  76. +1,069 −0 aqt/main.py
  77. +84 −0 aqt/modelchooser.py
  78. +178 −0 aqt/models.py
  79. +215 −0 aqt/overview.py
  80. +145 −0 aqt/preferences.py
  81. +273 −0 aqt/profiles.py
  82. +162 −0 aqt/progress.py
  83. +36 −0 aqt/qt.py
  84. +719 −0 aqt/reviewer.py
  85. +37 −0 aqt/sound.py
  86. +88 −0 aqt/stats.py
  87. +138 −0 aqt/studydeck.py
  88. +441 −0 aqt/sync.py
  89. +84 −0 aqt/tagedit.py
  90. +97 −0 aqt/taglimit.py
  91. +160 −0 aqt/toolbar.py
  92. +90 −0 aqt/update.py
  93. +299 −0 aqt/upgrade.py
  94. +406 −0 aqt/utils.py
  95. +151 −0 aqt/webview.py
  96. +1 −0 designer/.gitignore
  97. +87 −0 designer/about.ui
  98. +113 −0 designer/addcards.ui
  99. +150 −0 designer/addfield.ui
  100. +83 −0 designer/addmodel.ui
  101. +499 −0 designer/browser.ui
  102. +102 −0 designer/browserdisp.ui
  103. +149 −0 designer/browseropts.ui
  104. +93 −0 designer/changemap.ui
  105. +196 −0 designer/changemodel.ui
  106. +191 −0 designer/customstudy.ui
  107. +711 −0 designer/dconf.ui
  108. +61 −0 designer/debug.ui
  109. +190 −0 designer/dyndconf.ui
  110. +76 −0 designer/editaddon.ui
  111. +73 −0 designer/editcurrent.ui
  112. +70 −0 designer/edithtml.ui
  113. +149 −0 designer/exporting.ui
  114. +206 −0 designer/fields.ui
  115. +124 −0 designer/finddupes.ui
  116. +136 −0 designer/findreplace.ui
  117. +101 −0 designer/getaddons.ui
  118. +116 −0 designer/icons.qrc
  119. +1 −0 designer/icons/.gitignore
  120. +9 −0 designer/icons/_sources.txt
  121. BIN designer/icons/add16.png
  122. BIN designer/icons/addtag.png
  123. BIN designer/icons/addtag16.png
  124. BIN designer/icons/anki-logo-thin.png
  125. +992 −0 designer/icons/anki-logo.svg
  126. +1,303 −0 designer/icons/anki-logo2.svg
  127. +352 −0 designer/icons/anki-logo_BW.svg
  128. BIN designer/icons/anki-logo_black.png
  129. BIN designer/icons/anki-logo_white.png
  130. BIN designer/icons/anki-tag.png
  131. BIN designer/icons/anki.png
  132. +242 −0 designer/icons/anki.svg
  133. BIN designer/icons/ankibw.png
  134. BIN designer/icons/application-exit.png
  135. BIN designer/icons/arrow-down-double.png
  136. BIN designer/icons/arrow-down.png
  137. BIN designer/icons/arrow-up-double.png
  138. BIN designer/icons/arrow-up.png
  139. BIN designer/icons/clock-icon.png
  140. BIN designer/icons/clock16.png
  141. BIN designer/icons/colors.png
  142. BIN designer/icons/configure.png
  143. BIN designer/icons/contents.png
  144. BIN designer/icons/contents2.png
  145. BIN designer/icons/deck16.png
  146. BIN designer/icons/delete16.png
  147. BIN designer/icons/deletetag.png
  148. BIN designer/icons/deletetag16.png
  149. BIN designer/icons/document-export.png
  150. BIN designer/icons/document-import.png
  151. BIN designer/icons/document-new.png
  152. BIN designer/icons/download.png
  153. BIN designer/icons/edit-find 2.png
  154. BIN designer/icons/edit-find-replace.png
  155. BIN designer/icons/edit-find.png
  156. BIN designer/icons/edit-redo.png
  157. BIN designer/icons/edit-rename.png
  158. BIN designer/icons/edit-undo.png
  159. BIN designer/icons/edit.png
  160. BIN designer/icons/editclear.png
  161. BIN designer/icons/editdelete.png
  162. BIN designer/icons/emblem-favorite.png
  163. BIN designer/icons/emblem-important.png
  164. BIN designer/icons/fileclose.png
  165. BIN designer/icons/find.png
  166. BIN designer/icons/folder_image.png
  167. BIN designer/icons/folder_sound.png
  168. BIN designer/icons/format-stroke-color.png
  169. BIN designer/icons/games-solve.png
  170. BIN designer/icons/gears.png
  171. BIN designer/icons/go-first.png
  172. BIN designer/icons/go-jump-today.png
  173. BIN designer/icons/go-last.png
  174. BIN designer/icons/go-next.png
  175. BIN designer/icons/go-previous.png
  176. BIN designer/icons/green.png
  177. BIN designer/icons/help-contents.png
  178. BIN designer/icons/help-hint.png
  179. BIN designer/icons/help.png
  180. BIN designer/icons/image.png
  181. BIN designer/icons/info.png
  182. BIN designer/icons/kblogger.png
  183. BIN designer/icons/kbugbuster.png
  184. BIN designer/icons/kexi.png
  185. BIN designer/icons/khtml_kget.png
  186. BIN designer/icons/kpersonalizer.png
  187. BIN designer/icons/layout.png
  188. BIN designer/icons/list-add.png
  189. BIN designer/icons/mail-attachment.png
  190. BIN designer/icons/math_matrix.png
  191. BIN designer/icons/math_sqrt.png
  192. BIN designer/icons/media-playback-pause.png
  193. BIN designer/icons/media-playback-start.png
  194. BIN designer/icons/media-playback-start2.png
  195. BIN designer/icons/media-playback-stop.png
  196. BIN designer/icons/media-record.png
  197. BIN designer/icons/none.png
  198. BIN designer/icons/package_games_card.png
  199. BIN designer/icons/pause16.png
  200. BIN designer/icons/pause_off16.png
  201. BIN designer/icons/player-time.png
  202. BIN designer/icons/plus-circle.png
  203. BIN designer/icons/plus16.png
  204. BIN designer/icons/preferences-desktop-font.png
  205. BIN designer/icons/preferences-plugin.png
  206. BIN designer/icons/product_design.png
  207. BIN designer/icons/rating.png
  208. BIN designer/icons/speaker.png
  209. BIN designer/icons/spreadsheet.png
  210. BIN designer/icons/sqlitebrowser.png
  211. BIN designer/icons/star16.png
  212. BIN designer/icons/star_off16.png
  213. BIN designer/icons/stock_group.png
  214. BIN designer/icons/stock_new_template.png
  215. BIN designer/icons/stock_new_template_blue.png
  216. BIN designer/icons/stock_new_template_green.png
  217. BIN designer/icons/stock_new_template_red.png
  218. BIN designer/icons/system-shutdown.png
  219. BIN designer/icons/system-software-update.png
  220. BIN designer/icons/tex.png
  221. BIN designer/icons/text-speak.png
  222. BIN designer/icons/text-xml.png
  223. BIN designer/icons/text_bold.png
  224. BIN designer/icons/text_clear.png
  225. BIN designer/icons/text_italic.png
  226. BIN designer/icons/text_remove.png
  227. BIN designer/icons/text_sub.png
  228. BIN designer/icons/text_super.png
  229. BIN designer/icons/text_under.png
  230. BIN designer/icons/user-identity.png
  231. BIN designer/icons/view-calendar-tasks.png
  232. BIN designer/icons/view-pim-calendar.png
  233. BIN designer/icons/view-pim-news.png
  234. BIN designer/icons/view-refresh.png
  235. BIN designer/icons/view-sort-ascending.png
  236. BIN designer/icons/view-sort-descending.png
  237. BIN designer/icons/view-statistics.png
  238. BIN designer/icons/view_text.png
  239. +199 −0 designer/importing.ui
  240. +265 −0 designer/main.ui
  241. +115 −0 designer/modelopts.ui
  242. +115 −0 designer/models.ui
  243. +447 −0 designer/preferences.ui
  244. +48 −0 designer/preview.ui
  245. +120 −0 designer/profiles.ui
  246. +149 −0 designer/reposition.ui
  247. +183 −0 designer/reschedule.ui
  248. +87 −0 designer/setgroup.ui
  249. +74 −0 designer/setlang.ui
  250. +168 −0 designer/stats.ui
  251. +81 −0 designer/studydeck.ui
  252. +126 −0 designer/taglimit.ui
  253. +196 −0 designer/template.ui
  254. +15 −0 runanki
  255. 0 tests/__init__.py
  256. +23 −0 tests/shared.py
  257. BIN tests/support/anki12-due.anki
  258. BIN tests/support/anki12.anki
  259. BIN tests/support/anki2-alpha.anki2
  260. BIN tests/support/diffmodels1.anki
  261. BIN tests/support/diffmodels2-1.apkg
  262. BIN tests/support/diffmodels2-2.apkg
  263. BIN tests/support/diffmodels2.anki
  264. +1 −0 tests/support/fake.png
  265. BIN tests/support/invalid-ords.anki
  266. BIN tests/support/media.apkg
  267. BIN tests/support/mnemo.db
  268. +89 −0 tests/support/supermemo1.xml
  269. +11 −0 tests/support/text-2fields.txt
  270. +2 −0 tests/support/text-tags.txt
  271. +1 −0 tests/support/text-update.txt
  272. +114 −0 tests/test_cards.py
  273. +141 −0 tests/test_collection.py
  274. +135 −0 tests/test_decks.py
  275. +127 −0 tests/test_exporting.py
  276. +274 −0 tests/test_find.py
  277. +274 −0 tests/test_importing.py
  278. +55 −0 tests/test_latex.py
  279. +96 −0 tests/test_media.py
  280. +264 −0 tests/test_models.py
  281. +180 −0 tests/test_remote_sync.py
  282. +1,146 −0 tests/test_sched.py
  283. +32 −0 tests/test_stats.py
  284. +264 −0 tests/test_sync.py
  285. +88 −0 tests/test_undo.py
  286. +66 −0 tests/test_upgrade.py
  287. +2,017 −0 thirdparty/BeautifulSoup.py
  288. +3 −0 thirdparty/README
  289. +1,630 −0 thirdparty/httplib2/__init__.py
  290. +714 −0 thirdparty/httplib2/cacerts.txt
  291. +110 −0 thirdparty/httplib2/iri2uri.py
  292. +438 −0 thirdparty/httplib2/socks.py
  293. BIN thirdparty/py2.6-32/_portaudio.so
  294. BIN thirdparty/py2.6-64/_portaudio.so
  295. BIN thirdparty/py2.7-32/_portaudio.so
  296. BIN thirdparty/py2.7-64/_portaudio.so
  297. +1,082 −0 thirdparty/pyaudio.py
  298. +4 −0 tools/anki-wait.bat
  299. +41 −0 tools/build_ui.sh
  300. +15 −0 tools/tests.sh
@@ -0,0 +1,8 @@
+*.pyc
+*~
+*.mo
+*\#
+.*.swp
+samples
+unihan.db
+.coverage
Oops, something went wrong.
@@ -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.
@@ -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."
@@ -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/
@@ -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
+
@@ -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.
@@ -0,0 +1,4 @@
+set PYTHONPATH=../lib
+cd /d %~dp0
+python anki
+rem pause
@@ -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;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -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>
Oops, something went wrong.

0 comments on commit d477df8

Please sign in to comment.