Need step for removing spaces in Asian output

Issue #133 resolved
Former user created an issue

Original issue 133 created by @ysavourel on 2010-03-31T19:57:12.000Z:

White spaces need to be removed in between segments.
It would be nice to have a step for this.

Comments (6)

  1. Former user Account Deleted

    Comment 4. originally posted by ting... on 2014-01-29T19:00:44.000Z:

    It may not be possible to fix this in a single step for all formats, because of an unfortunate hack in the merge code for Ontram's XINI format.

    For all non-XINI formats, it's possible for a simple step to handle each TextUnit, check the targets for a ZH/JA locale, and trim whatever whitespace is needed.

    However, XINI passes the translation as the *source*. (The merger code sets a `useSource` flag to indicate this internally.) In this case, the target locales must be injected as a step parameter and the source must be trimmed if a ZH/JA target locale is found.

    So far, I haven't found a way for the step to detect which mode to use. Can I get merge information from the START_DOCUMENT event? I'll have to check. That might work.

  2. Chase Tingley

    Fixed by @DenisKonovalyenko with the AddWhitespaceAfterKutenStep and RemoveWhitespaceAfterKutenStep classes.

  3. Log in to comment