QA - issues with whitespace normalization

Issue #535 resolved
Sylvain Durand created an issue

Hi,

The QA steps seem to have a whitespace normalization issue as it does not detect leading and trailing whitespaces, nor double-spaces when added to the config. Here is an example: 2016-04-05 16_14_14-_C__Users_Sylvain_Documents_Process_QA Tools_Test_Sample file.docx_en-US_fr-FR.s.jpg 2016-04-05 16_14_40-Quality Check Report.jpg

The filter used to the files is the SDLXLIFF one. The issue has not been tested with any other filter.

Comments (4)

  1. Chase Tingley

    This may be a filter issue. SDL has a strange interpretation of XML whitespace, which it preserves by default. (Sometimes, it even specifies xml:space="default" in XLIFF.) The Okapi XLIFF filter usually assumes that xml:space="preserve" must be present in the XLIFF for whitespace to be meaningful.

    As an experiment, can you try editing your SDLXLIFF file and adding xml:space="preserve" somewhere (on the <xliff> or <body> element, for example)? Then see if this makes a difference. If fixes it, there is a change in M30 which will make the SDLXLIFF filter assume this behavior by default.

  2. Sylvain Durand reporter

    Excellent, adding the xml:space="preserve" to the file fixes the issue.

    Thanks for your confirmation about M30!

  3. Log in to comment