|
||||||||||||||||||||||||||||||||||||
3. Our server applies any modificationsWell, if we're at this stage, we should have gotten all the user's text in and checked that everything is in order to proceed. So, now the real fun begins... Several things happen behind the scenes before we get onto the real fun of processing text.
At that point, we are ready to go. In each module, there is a special function (miniature program) called 'revoice_text', which is given the text to work with and outputs the changed text back to text.php in order to set it up nicely for you. The problem is that it is very hard to explain how revoice_text works, because it is different for every single module, and isn't just a case of searching for one thing and replacing it with another. Some modules, like Morse code, can function pretty simply like that (although that removes anything which isn't a letter or digit before processing), but for example the Elmer Fudd module is a lot more complicated. A snippet of the logic behind the Elmer Fudd module goes like this:
At the time of writing, the Elmer Fudd dialect was actually the most complex on the site, due to the rulesets and the nature of rules being within rules. It is not implemented quite as above, but that it how the logic would follow through. (It is, in fact, written as a series of regular expressions) Once the modifications are applied to all the text, it sends it back to text.php with a message which basically says, "All done, you can send that back to the browser now". text.php does a little more processing, converting special characters back into entites (as above), and setting up a bit more of the page. Basically, the result is the transformed text plus a bit of nice formatting and layout before it and again after it, with a function to change the method of transform to a different one if you wish. At that point, text.php sends the entire new webpage back to the server and says "I'm all done" and the server then has to worry about it. Find out in part 4 what the server does once the PHP system has finished with text.php. |
About
About index: Copyright Credits Disclaimer Ethics How It Works 1. Supply 2. Receipt 4. Return Website Removal Timeline |
|||||||||||||||||||||||||||||||||||
| The Voices of Many, thevoicesofmany.com are copyright (site content and code) © 2005-6 Pete Spicer. Please read our Disclaimer/Privacy Policy. | ||||||||||||||||||||||||||||||||||||