About
Trauma itself is an extremely interesting language developed by Devine Lu Linvega and after developing an interest in it, I decided to write Lib Trauma. Lib Trauma is an totally rad set of Trauma Generation Tools written entirely in PHP. It outputs regular Trauma from its not-so-cool looking romanized counterpart, saving you the hassle of laying out each individual glyph bit by bit. The current version is 0.1 and is available for download below. The current version includes support for only linear Trauma in two glyph sizes as the grid generation and colourizing code isn't final due to language development. I mean, how do you code something which isnt finalized yet?
Usage
Lib Trauma is rather easy to use, it takes just three lines of code in your PHP file to get you running. In the first line of your PHP document, you must have the following line of code:
require_once("libtrauma.php");
This allows your document to access the Lib Trauma, but to actually utilize Lib Trauma, you first need to construct a new libTrauma Object, which is done by:$var=new libTrauma();
This constructs a new traumaTools object assigned to your variable $var, and after doing that, you can invoke the parseMe() method to generate Trauma through this line of code:$var->parseMe('illoo', 0, 'images');
The parseMe() method takes three arguments, all which are required for the operation of this method. The first argument is the string of Trauma which does not contain spaces and uses the loo to seperate expressions. An example of the proper formatting of this argument would be the string trieskiflookefisloo.
The second argument is the glyph size, which is either set to 0 (small) or 1 (large), a classic example of a binary choice.
The third and final argument is the directory where the images for libtrauma are stored. The actual names of each of the images cannot be changed, but the directory in which those images reside in can be changed.
Download
Now for the section all of you have been waiting for, the files! The download is a zip archive containing 2 major items, the images and libtrauma.php.
Libtrauma.zip (12KB Zipped)