Roxen.git / server / modules / misc / randomtext.pike

version» Context lines:

Roxen.git/server/modules/misc/randomtext.pike:1: - // This is a roxen module. Copyright © 2000 - 2001, Roxen IS. + // This is a ChiliMoon module. Copyright © 2000 - 2001, Roxen IS.      // randomtext.pike -- random text generator module   //   // By Leif Stensson.   // - // This is a Roxen module for generating semi-random text based on + // This is a ChiliMoon module for generating semi-random text based on   // a set of rules. The functionality is available through a tag   //   // <make-random-text rules="NAME_OF_RULE_FILE" />   //   // Normally, the module will first look in its cache to see if a   // random text has recently been generated from the same rules,   // and if so, return the same result. The optional "nocache"   // attribute forces a new text to be generated no matter whether   // one has been cached or not.   //
Roxen.git/server/modules/misc/randomtext.pike:45:   // The result of a rule file like the one above will be that we start   // by invoking either "first-rule" twice, or "second-rule" twice (since   // these are the alternatives in the "main" rule). The "main" rule   // has the directive trim-spaces, which indicates that leading and   // trailing spaces should be removed, and any internal sequences of   // whitespace should be converted into a single space. The "second-rule"   // rule has the directive "single-shot", meaning it should only select   // randomly once, but then produce the same result every time it is   // called.   // - // ... any yes, this module was a quick hack for amusement and for + // ... and yes, this module was a quick hack for amusement and for   // use in some courses to help provide dummy contents for new sites, - // so don't use this as a model for how to write Roxen modules. + // so don't use this as a model for how to write ChiliMoon modules.      inherit "module";      #include <module.h>    - string version = "$Id: randomtext.pike,v 1.9 2002/10/22 00:24:20 nilsson Exp $"; + string version = "$Id: randomtext.pike,v 1.10 2004/06/05 15:19:47 _cvs_dirix Exp $";      constant module_type = MODULE_TAG;   constant module_name = "Random Text";   constant module_doc =    "This module provides a simple way of generating texts on a "    "semi-random basis according to a set of rules. Apart from its "    "amusement value, this can be useful for testing and educational "    "purposes, such as generating small quiz pages or producing "    "many different kinds of input for testing text processing tags.";