maxprograms logo

OpenXLIFF Filters

OpenXLIFF Filters logo

An open source set of Java filters for creating, merging and validating XLIFF 1.2 and 2.0 files.

The source code of OpenXLIFF Filters is available under Eclipse Public License v1.0 at https://github.com/rmraya/OpenXLIFF.

Features

With OpenXLIFF Filters you can:

  • Create XLIFF files that don't use proprietary markup.
  • Merge translated XLIFF files to generate translated documents.
  • Validate XLIFF files.
  • Generate statistics with word and segment counts plus a graphical display of matches distribution.

XLIFF 1.2 files generated by OpenXLIFF are fully compatible with Swordfish Translation Editor.

Project XLIFF Manager implements an easy to use UI for creating/merging XLIFF files in a graphical environment.

Supported File Formats

General Documentation

  • Adobe InDesign Interchange (INX)
  • Adobe InDesign IDML CS4, CS5, CS6 & CC
  • HTML
  • Microsoft Office (2007 and newer)
  • Microsoft Visio XML Drawings (2007 and newer)
  • MIF (Maker Interchange Format)
  • OpenOffice / LibreOffice / StarOffice
  • Plain Text
  • SDLXLIFF (Trados Studio)
  • TXML (GlobalLink/Wordfast PRO)
  • WPML XLIFF (WordPress Multilingual Plugin)

XML Formats

  • XML (Generic)
  • DITA 1.0, 1.1, 1.2 and 1.3
  • DocBook 3.x, 4.x and 5.x
  • SVG
  • Word 2003 ML
  • XHTML

Software Development

  • JavaScript
  • Java Properties
  • PO (Portable Objects)
  • RC (Windows C/C++ Resources)
  • ResX (Windows .NET Resources)
  • TS (Qt Linguist translation source)

Requirements

  • JDK 11 or newer is required for compiling OpenXLIFF Filters.
  • Apache Ant 1.10.6 or newer is required for building.

Building

  1. Checkout OpenXLIFF Filters repository from https://github.com/rmraya/OpenXLIFF.
  2. Point your JAVA_HOME variable to JDK 11.
  3. Execute ant dist.

Converting Documents to XLIFF

You can use the library in your own Java code. Conversion to XLIFF is handled by the class com.maxprograms.converters.Convert.

If you use binaries from the command line, running .\convert.bat or ./convert.sh without parameters displays help for XLIFF generation.

Converting XLIFF to Original Format

You can convert XLIFF files created with OpenXLIFF Filters to original format using class com.maxprograms.converters.Merge in your Java code.

If you use binaries from the command line, running .\merge.bat or ./merge.sh without parameters will display the information you need to merge an XLIFF file.

Validating XLIFF Files

The original XLIFFChecker code supports XLIFF 1.0, 1.1 and 1.2. The new version incorporated in Open XIFF Filters also supports XLIFF 2.0.

All XLIFF 2.0 modules are validated using XML Schema validation.

Standard XML Schema validation does not detect the use of duplicated 'id' attributes, wrong language codes and other constraints written in the different XLIFF specifications.

Extra validation is performed for XLIFF 2.0 Core and for Metadata, Matches and Glossary modules.

You can use the library in your own Java code. validation of XLIFF files is handled by the class com.maxprograms.validation.XLIFFChecker.

Translation Status Analysis

This library lets you produce an HTML file with word counts and segment status statistics from an XLIFF file.

If you use binaries from the command line, running .\analysis.bat or ./analysis.sh without parameters displays help for statistics generation.

You can generate statistics using your own Java code. Statistics generation is handled by the class com.maxprograms.stats.RepetitionAnalysis.

Download OpenXLIFF Filters Binaries

Download icon
Select the appropriate package from the drop-down list and click on Download button.

Decompress the downloaded package and use the .bat or .sh files inside /dist to create, merge, validate or analyse XLIFF files.


Related Links