Requirements
- JDK 21 or newer is required for compiling OpenXLIFF Filters.
- Apache Gradle 9.0 or newer is required for building.
Building
OpenXLIFF Filters requires a modern Java toolchain for building and development.
- Check out the OpenXLIFF Filters repository from GitHub.
- Point your
JAVA_HOME variable to JDK 21.
- Execute
gradle.
git clone https://github.com/rmraya/OpenXLIFF.git
cd OpenXLIFF
gradle
A binary distribution will be created in the /dist folder.
Convert 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.cmd or
./convert.sh without parameters displays help for XLIFF generation.
Convert XLIFF to Original Format
You can convert XLIFF files created with OpenXLIFF Filters to original format using the class
com.maxprograms.converters.Merge in your Java code.
If you use binaries from the command line, running .\merge.cmd or
./merge.sh without parameters will display the information you need to merge an
XLIFF file.
Validating XLIFF Files
The original XLIFFChecker supported XLIFF 1.0, 1.1, and 1.2. The version included in OpenXLIFF
Filters also supports XLIFF 2.0, 2.1, and 2.2.
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
The library can generate an HTML report with word counts and segment‑status statistics.
If you use binaries from the command line, running .\analysis.cmd 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.