Internationalization Tag Set (ITS) 2.0 in BlueGriffon
I have been contracted by german company DFKI under a European contract to implement a part of the Internationalization Tag Set (ITS) 2.0 specification into BlueGriffon and I now have a first runnable prototype. So there is a new floating panel in BlueGriffon:
- The "Locally" tab shows the ITS state of the container element of the selection. The ITS state is computed from the local ITS attributes, the global ITS rules applying to the element and potentially the ITS state inherited from the ancestors of the element (the inheritance rules of ITS 2.0 are fully implemented). That tab of course allows to override that local state and apply local attributes.
- Three data categories are implemented under the current contract: Translate, Localization Note and Terminology
- The "Global" tab allows to create and manipulate global ITS rulesets attached to the document, either inline (through a
<script type="application/its+xml">element) or external (through a
linkelement). The order of rulesets attached to the document can be modified. Parameters and ITS rules can be added to the rulesets or moved into the rulesets. During a creation of a ruleset, both XPath and CSS query languages are available. The rule creation/modification dialog has a magic button computing automatically an Xpath or CSS selector for the currently selected element. All global properties defined by the spec are editable with respect to the cardinality defined by the spec. For XPath, the code looks for an already defined HTML namespace in the ITS rules and adds one (that is reported to the user) if that namespace is not present.
- Parameters are correctly expanded in XPath and CSS selectors during global rules' application.
- All operations are undoable.
- The code was architectured with extensibility in mind and it will be pretty easy to add new ITS 2.0 data categories in the future.
All the above will be available in forthcoming BlueGriffon 1.8 to all users for free, thanks to the European Commission!