SignWriting Image Server for web servers, Windows, and Mac

Steve Slevinski slevin at SIGNPUDDLE.NET
Wed May 12 14:07:32 UTC 2010


Hi Adam,

The column.php script produces an image.  The columns.php script is an 
example HTML page.  The iframe may be your best option, but here are 2 
additional options.

First, the column.php script takes an optional "col" attribute.  By 
default, "col" is equal to 1, the first column.  If you knew how many 
columns were in the sign text, you could duplicate the image code with 
the same BSW code and only need to modify the "col" attribute.  For 
example, if a sign text had 3 columns, you could use 3 images, all with 
the same BSW, but add "&col=2" for the second column and "&col=3" for 
the third.

Another option is to code in PHP.  Open the "columns.php" script and 
take a look.  It's not very long.  The 2 most important lines are...

$st = new SignText($bsw,$size,$height);
$cols = $st->getCols();

The $cols variable is a simple array of BSW.  This automatically splits 
the BSW up into segments for the "column.php" image script.   It does 
the same thing that you were doing by hand.

Regards,
-Steve



More information about the Sw-l mailing list