This chapter is a step-by-step guide that tells how to transform the output module template in a translation module and will also give some hints about programming the actual translation progress.
Output modules are translation modules for the Transtalo Translation System that have to perform the translation to a human language. They go futher where input modules stop: the translation from a human language.
Output modules are simply binaries that accept command line options. They output their results to standard output.
Output modules are specialized in a single language: the target language. The only thing they have to do is translating a SENTENCE object into a real sentence.
The first thing you need to do is contacting the project maintainer. You can do that by joining the transtalo IRC channel (#transtalo at irc.oftc.net) or contacting via email (tijmen@users.sourceforge.net).
There is a template available for output modules in CVS. To use it, check it out in a directory:
$ cd DIRECTORY $ cvs -d:ext:username@cvs.sf.net:/cvsroot/transtalo co templates/output-template
The result will be in templates/output-template. (If you aren't a Transtalo developer, use -d:pserver:anonymous@cvs.sf.net:/cvsroot/transtalo.)
The next thing you do is renaming the dir into transtalo_output_xx (with xx changed into the language code) and removing all CVS subdirectories:
$ mv output-template transtalo_output_xx $ cd transtalo_output_xx $ rm -rf $(find | grep /CVS)
The src/ subdirectory already has five source files:
You will create more source files that are specialized in one or some language elements.
After getting the template, you need to make it ready for your language. Perform the following steps:
transtalo_output_xx
: change xx in your language code
Do the following to store your module in CVS for the first time (i.e. importing it):
$ cd transtalo_output_xx $ make distclean $ cvs -d:ext:username@cvs.sf.net:/cvsroot/transtalo import \ transtalo_output_xx vendor start -m "Initial import of output_xx"
To be written