Spongiae can be used to debug segmentation rules

A new feature is added to all versions of the Spongiae set of filters:
in sg_toXliff.rb, the option --culter-debug will add a custom tag which shows you which rules have been used for segmentation.
That can be useful to debug a wrong SRX or CSCX file.

A mode specific to OmegaT is also added: when using the option --culter-debug without speifying any SRX file, the program will check whenever we are inside an OmegaT project (having omegat.project in top folder) and if it is the case, it will try to use either the rules in the project itself, or the default rules which should be used by OmegaT. If none of these options work, the program remembers you that the option --culter-debug should be used only together with --seg option.

Of course this tag does not exist in XLIFF standard but let's remember that the standard allows extensions provided that they are after all standard tags.

Add new comment