Skip to main content
Home About Privacy Contact

Posts

Showing posts with the label AnkiDroid

Anki JS API addon for getting decks and cards info like AnkiDroid JS API

AnkiDroid JavaScript API allow deck developer to add functionality to cards that can call native functions defined in AnkiDroid. This can be used to design whole new layout for buttons, cards info, top bar card counts, mark, flag etc. But Anki Desktop there are no official support like this JS API.  So, this is Anki addon for supporting the AnkiDroid-JS-API . Download AnkiJS API Addon View Source Code Usages To know more about the options view  AnkiDroid-JS-API .  New Count pycmd("AnkiJS.ankiGetNewCardCount()", (ret) => { console.log(ret); }); Learn Count pycmd("AnkiJS.ankiGetLrnCardCount()", (ret) => { console.log(ret); }); Review Count pycmd("AnkiJS.ankiGetRevCardCount()", (ret) => { console.log(ret); }); Mark pycmd("AnkiJS.ankiGetCardMark()", (ret) => { console.log(ret); }); Flag pycmd("AnkiJS.ankiGetCardFlag()", (ret) => { console.log(ret); }); Card Id pycmd("AnkiJS.ankiGe...

Add progress bar in AnkiDroid decks

For Anki Desktop there is already addons for showing progress bar. But in AnkiDroid there is no addons support so many cool features are not available for AnkiDroid. In this post, learn to add Progress Bar to AnkiDroid.  1. Download _js_addon_progress_bar.js scripts. Download 2. Extract the downloaded zip file and copy  _js_addon_progress_bar.js . 3. Paste it inside AnkiDroid/collection.media folder 4. Add this single line to front and back side of cards <script src="_js_addon_progress_bar.js"></script> Note: If backside of card template contains {{FrontSide}} Then don't add the above line. <script src="_js_addon_progress_bar.js"></script> 5. Turn on fullscreen 6. Restart reviewing View JavaScript Code Demo

Generate Anki Decks in browser from CSV, TSV and text files

For desktop it is very easy to create Anki deck from csv, tsv and text files. But this feature still not implemented for Android and iOS version of Anki. So this is workaround for creating Anki deck in browser. Steps to create Anki deck in browser 1. Visit  genanki-js   (Older and slower version  Anki-Export-Deck-tkinter ) Note: It is working on desktop, android phone and iOS v13 and v14. But on some devices it may failed to load and show loading page indefinitely. So use this  2. Import csv or tsv files  3. Enter fields name  4. Export the decks  5. Download the decks  In mobile the export file may be downloaded with .zip extension so after download complete, rename the file and remove .zip extension from the file then import in Anki. Demo

Practice linux commands using ankidroid, termux and ttyd

1. Download Linux Basic Commands Anki Decks from Anki-Custom-Card-Layout GitHub release page 2. Import it in AnkiDroid 2.13  Note: AnkiDroid.A parallel build can be installed for testing purpose. 3. Open  termux  and install package ttyd 4. Then run following command to access it in AnkiDroid 5. Now open AnkiDroid.A, by default in back side of card "practice_in_termux" is set to "false". Change "practice_in_termux" value to "true" 6. Start practicing linux commands!  Demo   Disclaimer The software, code and website links available in this GitHub repo are provided "as is" without warranty of any kind, either express or implied. Use at your own risk.

Add Google translate option to Anki Deck for AnkiDroid only

Many good Anki decks are in English language and reviewing the decks help to learn the subjects. But if we want to learn it in different language then it needs to be translated to other language.  In this post learn to add translate option to Anki Deck. (* AnkiDroid only) 1. Open Note Editor  2. Copy the following to Front / Back side of card template. 3. Save it and reopen the decks. Now select language it will translate automatically. Demo More: https://www.w3schools.com/HOWTO/howto_google_translate.asp