{"word_count": 592, "character_count": 3886}
[caption id="attachment_844" align="aligncenter" width="500"] Biserică Stavropoleos, București[/caption]A chance meeting at the Conventus Vindobonensis* last week reminded me of the TEI CE Toolbox framework I prepared last autumn during my visit at SyncRo headquarters in Romania. As I headed for Craiova straight from Vienna it was easy to remember to make this framework a bit more state of the art. Outcome, as usual, can be found on GitHub, but let me describe here what I did today and why.Having TEI CE Toolbox in oXygen is all very well, but most probably we’d want the full TEI framework support as well. Thus it is sensible to use TEI framework for oXygen, maintained by TEI consortium, as a starting point. And, obviously, this is what I did last November. But, TEI consortium regularly publishes new releases of TEI so any framework based on previous release will miss the new additions.The mechanism of extending the oXygen framework comes to the rescue. You might want to see Octavian Nadolu’s presentation on the subject from DiXiT Camp 2 in Graz.What to extend then? For the update of the TEI framework to take place automatically it is necessary to install it as an add-on from here as described by James Cummings in his blog post. Once you do that, you’ll have two versions of TEI P5 framework, so it’s wise to deactivate the one shipped with oXygen and switch to add-on version in Options-Preferences-Document Type Associations dialog.[caption id="attachment_825" align="aligncenter" width="500"] Extending the framework[/caption]This will be our starting point in extending TEI Framework. From Document Type Associations dialog you need to select TEI P5 (add-on) and then Extend option (see illustration above). The extended framework needs to be given a name, and a place to live. Choose external storage option to be able to save it on your hard drive and share it later. I called mine TEI P5 - CE Toolbox Extension and saved it in tei framework directory.[caption id="attachment_826" align="aligncenter" width="500"] Create new extended framework[/caption]As TEI CE Toolbox requires additional resources - XSL transforms, JS libraries and CSS stylesheets - I had to copy all that where the framework can reach it, in this case to teicetoolbox subdirectory in tei framework directory.[caption id="attachment_827" align="aligncenter" width="500"] Contents of TEI framework directory[/caption]Then I had to recreate TEI CE Toolbox transformation scenario, as it is the whole point of TEI CE Toolbox. In general case, you might want to provide not only transformation scenarios but new document templates, validation schemas, Author mode custom actions or CSS styling. The procedure was exactly the same as last time, in short putting in ANT build file and configuring the transformation: specifying the build file to use, parameters for the build and location for the output. Everything happens in the Transformation tab of the Document Type dialog for our new extended framework.[caption id="attachment_828" align="aligncenter" width="500"] Configuring ANT transformation scenario[/caption]Framework created in this manner will provide all the functionality of original TEI framework plus everything we build into it. Moreover it will automatically reflect changes made to original framework as new versions are released.If you created the extension for your private enjoyment, this is the end of the story. Chances are, though, that you will need to share it with other TEIers out there. The easiest way for dissemination with automated updates is to release it as an add-on. This post already got quite long, so bear with me and wait a day or two for the continuation of the add-on adventure.[caption id="attachment_829" align="aligncenter" width="500"] To be continued...[/caption]* Societas Internationalis Studiis Neolatinis Provehendis Conventum sextum decimum