Skip to content
UrsZeidler edited this page Jun 21, 2015 · 16 revisions

model to text transformations

To produce text based output we use the acceleo m2t engine which has a nice support for emf, is tight integrated in the eclipse community and supports all our usecases and requirements.

exporting the model to text

For a lot of objects a model to text report is available. export this action open a dialog where you select the export target, as this always produces an output file you need to select the target directory where the files will generated in. export dialog Here you select the export target suitable for the selected object.

varios pdf character sheets:

fo character sheet svg2pdf
export dialog export dialog
[example](https://raw.githubusercontent.com/wiki/UrsZeidler/shr5rcp/m2t/PC Ki Adept Gunter von Kintzel.fo.pdf) example
For a Shr5Generator:

For a Shr5Generator system:

For a managed character

The model to text export action is available at the following object pages

  • shrList
  • managed character
  • shr5 generator
  • character group

provide new templates

To provide new templates you simply need a reference file, describing the content. As acceleo is primary a model to text engine we can produce all kinds of text files like html/xml(svg/fo) plain text etc but no binary ones.

So if you have a nice character sheet design feel free to open an issue and attach the example.

provide and develop transformations

As the Acceleo has cool documentation you should really come along with it. eclipse-help

The syntax of the MTL language is quite simple , for an quite easy example take the character to phpBoard transformation boardCharacterSheet.mtl.

For reusing some code, we have provide a lot of helping modules

The enum helper modules are generated by another acceleo tranformation generateEEnumHelper to provide helper queries getting the localized names from the enum literals.

Clone this wiki locally