Scripts (5)

Get flashcards from flashcardexchange.com

in
Type: 
Card Collection
Compatibility: 
Mnemosyne 1.x +
Status: 
Incomplete
Author: 
Adam Raizen
Source: 

Written by me.

Description: 

Simple python script to download a full set of flashcards from the site http://www.flashcardexchange.com. Simply run the script with the flashcard set number that you see in the URL of the set of cards you want. A few additional options are explained in the program's help message.

svgtoquiz

in
Type: 
Plugin
Status: 
Complete
Author: 
Timothy Bourke
Description: 

Svgtoquiz generates card sets for memorising details of images, such as states or countries from a map, or the names of bones or muscles from a schematic of the body. It reads an svg file and extracts all path elements whose id attributes match a given regular expression. It highlights each path in turn, by changing the fill colour, and produces image files that Mnemosyne can read. The script also produces an XML file, containing a set of questions and answers linked to the generated graphic files, for import into Mnemosyne. If the id values are not suitable as questions, a separate csv file can be created, in Excel for example, to map each id value to more appropriate text.

Helper for Images, Removing Formatting, Cloze and Microsoft Word [AutoHotkey, Windows]

in
Type: 
Plugin
Status: 
Testing
Author: 
irv
Source: 

A continuation from http://sourceforge.net/forum/message.php?msg_id=4956853

If you haven't changed the Word keyboard shortcuts from Ctrl-F9 for New Field and F9 for Update Field, you can use the compiled EXE version if you like and don't want to install AutoHotkey(more info). Otherwise, please feel free to edit the script to your purposes.

Description: 

Download includes both the compiled EXE and the original AutoHotkey script so you may tailor it to your needs.

How to use:

  1. Insert Image: press Ctrl-Shift-I to bring up a Select Image dialog. A Mnemosyne-friendly image tag will be inserted and in Word, the image will be inserted as well.
  2. Cloze: Select text and press RightCtrl-/ (the ? key) and the text will be replaced with ??? and pasted in the next field
  3. Paste plain text: press RightCtrl-V [Fixed June 2, 2008]
  4. Copy to Notepad and Save as UTF-8 (experimental): Press Ctrl-Shift-C

New features June 2, 2008[Download Below]:

  1. Pasting plain text with RightCtrl-V now preserves unicode characters!
  2. In Word templates, row numbers are formatted as hidden text. To import into Mnemosyne, simply select the table and press Ctrl-Shift-C (if you're using the helper script) or copy and paste into Notepad manually. The hidden row numbers won't copy, which I find desirable. Copying a table right into Notepad gives you each column separated by a Tab and each row on a separate line. (NB: No paragraph marks in Word tables!)
  3. New Simple Q&A Table Templates for Word 97-2003 & 2007
  4. Pretty Purple Template is now for Word 2007 only, because the alternating rows don't translate to previous versions of Word well.

New features May 25, 2008 [Download Below]:

  1. Ctrl-Shift-I now copies the image to a folder in your .mnemosyne folder corresponding to your current collection and produces relative img tags to that copy... much better portability!
  2. Other little tweaks

New features May 20, 2008:

  1. Adding an image in Microsoft Word with Ctrl-Shift-I now also includes manual line breaks that are hidden, so copying text (convert from table first, if appropriate!) into Notepad will skip these hidden line breaks so easier importing of a tab-delimited txt file into Mnemosyne
  2. New command: Ctrl-Shift-C copies text and opens a new Notepad document, pastes the text, and prompts you to save it in UTF-8 encoding
  3. Paste plain text: Right Ctrl-V pastes clipboard content without white space or line breaks (sadly, not Unicode-aware)
  4. Right Ctrl-/ for tables: Cuts the selected text, replaces it with "???", tabs to the next field, and pastes

Special Notes:

  1. Please turn off smart quotes AutoFormat as you type in Word; it screws with the img tags for Mnemosyne.
  2. You might have to display Hidden Text in Word for the manual line breaks to work
  3. Saving to a plain text file within Word itself sadly converts the hidden line breaks into real line breaks, which can screw up the file for importing into Mnemosyne

Songs intro

in
Type: 
Plugin
Status: 
Complete
Author: 
Luc Tanguay
Description: 

I created a Python program to build a card collection to learn song names.
The program reads all the OGG files, extract 10 seconds from the beginning of the file, then display a card collection in Tab Separated format on the screen.
Ususally you redirect the output to file (ending in .txt) and then import the file into Mnemosyne. You need to specify the category since it is a TSV (not XML).
Requires:
sox : to extract first non-silence 10 seconds from OGG file
Mutagen Python module : to copy and read OGG tags

Timestamp cards (AutoHotkey script)

in
Type: 
Plugin
Status: 
Testing
Author: 
irv
Description: 

An AutoHotkey script for adding a timestamp to cards. Please edit the script to suit your purposes.

Alt-Q: move to question field
Alt-A: move to answer field
Shift-Enter: add card with initial grade of 0 and timestamp new card
\:print timestamp

Note: timestamp is enclosed in tags so they show up in the Edit Deck dialog but not during review. Of course, you can edit or change this behavior however you like.

#IfWinActive ahk_class QWidget
!q::ControlFocus, QWidget27, A
!a::ControlFocus, QWidget15, A
+enter::
Send ^0
Sleep 250
gosub timestamp
return
\::
timestamp:
FormatTime, yo,, MMddHHmmss
FormatTime, easy,, ddd
Send <%yo% %easy%>
return
#IfWinActive

Syndicate content