Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Idonex AB.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.203 2000/02/10 05:29:05 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.204 2000/02/16 14:20:28 per Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:56:      string status() {    array s=image_cache->status();    return sprintf("<b>Images in cache:</b> %d images<br>\n<b>Cache size:</b> %s",    s[0]/2, sizetostring(s[1]));   }      void start(int num, Configuration conf)   {    image_cache = roxen.ImageCache( "gtext", draw_callback ); +  roxen.dump( "etc/modules/GText.pmod" );    if(query("colorparse")) module_dependencies(conf, ({ "wiretap" }) );   }      constant nbsp = iso88591["&nbsp;"];   constant replace_from = indices( iso88591 )+ ({"&ss;","&lt;","&gt;","&amp;",});   constant replace_to = values( iso88591 ) + ({ nbsp, "<", ">", "&", });      #define simplify_text( from ) replace(from,replace_from,replace_to)      mixed draw_callback(mapping args, string text, RequestID id)