Go to Google Groups Home [IMG] [IMG] Advanced Groups Search Preferences Groups Help Groups [IMG] _______________________________ [ Google Search ] Groups search result 1 for vocab-test.el group:*emacs* Search Result 1 From: Cyprian Laskowski (swagbelly@yahoo.com) Subject: vocab-test.el Newsgroups: gnu.emacs.sources View: (This is the only article in this thread) | Original Format Date: 2001-04-25 03:23:32 PST Hi, vocab-test.el is a vocabulary-testing program, meant as an Emacs alternative to "flash cards" when learning the vocabulary of a foreign language. You set up some basic parameters like the languages that you want and related Emacs input methods and coding systems, as well as some related datafiles in a simple syntax. Then you can type M-x vocab-test and start a test. If you're interested, take a look at the "Quick Start" section in the Commentary. Please give me your opinions/ideas on documentation, code, and new features; I'm still quite a novice with elisp, and would like to feed off you gurus. You can of course email me, but I'm using emacs-wiki.el under httpd.el, so consider also contributing your ideas on my Wiki at http://24.113.146.75:8080/wiki?VocabModeIssues The latest version of Vocab Mode is available at: http://24.113.146.75:8080/elisp/lib/ cyp ;;; vocab-test.el --- foreign language vocabulary-testing program ;; Copyright (C) 2001 Cyprian Laskowski ;; Author: Cyprian Laskowski ;; Created: 21 Apr 2001 ;; Version: 0.2 ;; Keywords: language, international ;; This file is NOT currently part of Emacs. ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or (at ;; your option) any later version. ;; This program is distributed in the hope that it will be useful, but ;; WITOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;;; Commentary: ;; Vocab Test is an Emacs alternative to flash cards for learning vocabulary ;; lists of foreign languages, although it could be used for other purposes as ;; well, like learning those intolerable trigonometric formulas or some ;; essential Emacs key bindings. A new reason never to leave Emacs. ;; There is a fair bit of customization that can optionally be done, especially ;; with respect to display formats, but to get a feel for the purpose, setup and ;; default configuration of Vocab Test, please read through the "Quick Start" ;; section here. ;;; Quick Start: ;; Scenario: Say you are a French speaker, and are currently taking a course in ;; Japanese. You have a textbook with chapters numbered 1 through 10, each with ;; its own vocabulary list. You can use this library to help learn this ;; vocabulary. To set up, put this file in your emacs load-path, and the ;; following in your .emacs file: ;; (autoload 'vocab-test "Test vocabulary of a foreign language." t) ;; (autoload 'vocab-test-edit "Edit a datafile for Vocab Test." t) ;; Then load this file or restart Emacs, and customize a few variables: ;; Type M-x customize-group vocab-test ;; Add two entries to vocab-test-languages: ;; ("French" . "latin-1-prefix") ;; ("Japanese" . "japanese-hiragana") ;; Add an entry to vocab-test-labels: ;; ("Japanese-Course" "French" "Japanese" japanese-iso-8bit-with-esc-unix) ;; Create directories "~/vocab" and "~/vocab/Japanese-Course". ;; Type M-x vocab-test-edit, supplying as arguments "Japanese-Course" and ;; "test.txt" (completion works here). Note that the buffer gets put into a ;; Japanese input method; you can toggle between the Japanese and French input ;; methods with C-c C-t (and, of course, type C-\ to toggle being in and out of ;; input methods altogether). ;; Now create some entries: ;; (You can get a bogus sample (bogus since I don't know any Japanese) at ;; http://24.113.146.75:8080/elisp/lib/vocab-test-sample.txt. Make sure that ;; you get it with an appropriate coding system, like ;; japanese-iso-8bit-with-esc-unix; doing this through Netscape seems to work. ;; There's also an unrelated but more realistic vocab-test-sample2.txt available ;; there.) ;; Lines beginning with `#' are comments. Otherwise, the line is a word entry. ;; A word entry has the form: ;; meta-info; question word; answer word ;; (meta-info must have at least one character, but can be anything for now, ;; unless you look into `vocab-test-forms-all-numbers': this is mostly a ;; provision to allow for word type information being stored in the future.) ;; Once you have set up a few entries or downloaded my sample file, save it, and ;; type M-x vocab-test, providing the same arguments as before. ;; You're being tested! Note that the input method is set to ;; "japanese-hiragana", which is what you specified above, and both the Japanese ;; and French characters appear properly (although this may depend on whether ;; you have appropriate fonts: there's a huge and wonderful set designed for ;; Emacs at ftp://ftp.gnu.org/pub/gnu/intlfonts/intlfonts-1.2.tar.gz; watch your ;; disk space!). ;; When you have completed the test, a log of the results is appended to the ;; new file ~/vocab/Japanese-Course/vocab-test.log. ;;; Features ;; ;; - automatic setting up of appropriate coding systems and input methods to ;; handle other languages properly, provided you've set some simple preferences ;; once. See `vocab-test-languages' and `vocab-test-labels'. ;; ;; - randomized word selection, and recursive asking of incorrectly ;; answered questions until all words originally asked are answered correctly. ;; See `vocab-test-repeat-method' and `vocab-test-selection-method' ;; ;; - logging of test results. See `vocab-test-log-method' and ;; `vocab-test-log-format'. ;; ;; - flexible and easily customizable format specifications for just about ;; anything that appears in Vocab Test buffers or logs. See the various ;; `...-format' variables, and `vocab-test-process-format'. ;; ;; - many hooks, including test-type-specific ones. See the various `...-hook' ;; variables. ;; ;; - togglable answer filtering mechanisms, so that you can have, for example, ;; long answer entries in your datafile, and gradually increase the amounts that ;; are actually tested as you learn. See `vocab-test-forms-strict-flag', ;; `vocab-test-forms-strict-regexp', `vocab-test-forms-all-flag', and ;; `vocab-test-forms-all-numbers'. ;; ;; - a corresponding (albeit, not very developed) mode for easier editing of ;; VocabTest datafiles. See `vocab-test-edit-mode'. ;; ;; - a frame parameters setting, which can be used to have Vocab Test open up a ;; new frame with the given set of parameters (such as a font) when it starts up ;; a new test. See `vocab-test-frame-properties'. ;;; Test-specific hooks ;; I couldn't fit this documentation in elsewhere, so here it is. ;; ;; Each label you define for your tests (in `vocab-test-labels') is automatically ;; associated with a couple of hooks: `vocab-test-label-