Wiki
Clone wikiXLIFF Toolkit / ITS
ITS (Internationalization Tag Set)
The library implements the experimental mapping of ITS (Internationalization tag Set) as an extension.
For example the following code creates a unit and add to the content of the source segment a Text Analysis annotation and a Localization Quality Issue annotation:
#!java Unit unit = new Unit("u1"); Fragment frag = unit.appendNewSegment().getSource(); frag.append("Blueberries and billberies"); // Mispelling on purpose TextAnalysis ta = (TextAnalysis)ITSWriter.annotate(frag, 0, 11, new TextAnalysis()); ta.setTaIdentRef("http://dbpedia.org/resource/Blueberry"); LocQualityIssue lqi = (LocQualityIssue)ITSWriter.annotate(frag, 20, -1, new LocQualityIssue()); lqi.setType("misspelling"); lqi.setComment("Should be 'bilberries'");
Updated