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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.54 1997/08/19 02:31:58 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.55 1997/08/22 22:40:50 per Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image   # define Font font
Roxen.git/server/modules/graphics/graphic_text.pike:106:    catch(fnts = get_dir("fonts/32/") - ({".",".."}));    if(!fnts)    {    return ({});    }    return fnts;   }      void create()   { +  defvar("speedy", 0, "Avoid automatic detection of document colors", +  TYPE_FLAG|VAR_MORE, +  "If this flag is set, the tags 'body', 'tr', 'td', 'font' and 'th' " +  " will <b>not</b> be parsed to automatically detect the colors of " +  " a document. You will then have to specify all colors in all calls " +  " to &lt;gtext&gt;"); +     defvar("deflen", 300, "Default maximum text-length", TYPE_INT|VAR_MORE,    "The module will, per default, not try to render texts "    "longer than this. This is a safeguard for things like "    "&lt;gh1&gt;&lt;/gh&gt;, which would otherwise parse the"    " whole document. This can be overrided with maxlen=... in the "    "tag.");       defvar("location", "/gtext/", "Mountpoint", TYPE_LOCATION|VAR_MORE,    "The URL-prefix for the graphic characters.");   
Roxen.git/server/modules/graphics/graphic_text.pike:1128:    break;    }    c = c[..sizeof(c)-2];    }    id->misc->colors = c;   }      mapping query_tag_callers()   {    return ([ -  "body":tag_body, +     "gtext-id":tag_gtext_id, -  "font":tag_fix_color, +  ]) | (query("speedy")? +  (["font":tag_fix_color, +  "body":tag_body,    "table":tag_fix_color,    "tr":tag_fix_color,    "td":tag_fix_color,    "layer":tag_fix_color,    "ilayer":tag_fix_color,       "/td":pop_color,    "/tr":pop_color,    "/font":pop_color,    "/body":pop_color,    "/table":pop_color,    "/layer":pop_color, -  "/ilayer":pop_color, -  ]); +  "/ilayer":pop_color, ]):([]));   }         mapping query_container_callers()   {    return ([ "anfang":tag_graphicstext,    "gh":tag_graphicstext,    "gh1":tag_graphicstext, "gh2":tag_graphicstext,    "gh3":tag_graphicstext, "gh4":tag_graphicstext,    "gh5":tag_graphicstext, "gh6":tag_graphicstext, -  "gh7":tag_graphicstext, "gh8":tag_graphicstext, -  "gh9":tag_graphicstext, "gh10":tag_graphicstext, -  "gh11":tag_graphicstext,"gh12":tag_graphicstext, +     "gtext":tag_graphicstext, ]);   }