Tikal -x converts < to &lt;

Issue #573 resolved
Zsolt Nagy created an issue

I have converted yml files to xliff with tikal-x filename.yml -sl EN -tl HU -oe utf8 In the output the <info> and <comment> tags were replaced with <info> and <comment> tags. Is it a wanted behavior? Should not it be the CAT tools job to escape these characters?

Comments (2)

  1. ysavourel

    The character < is a special character in XML/XLIFF: it needs to be escaped to be part of the extracted content, otherwise it would break the XLIFF syntax.

    Now, if things like <info> or ,comment> are part of the content in your YAML file, it means the content is not just "text" and may need to also parsed for that specific format. Seeing an example of the YAML file would probably clarify things.

    The YAML Filter has a sub-filter option, so if you know what the format inside the extracted content is, you may be able to use the sub-filter to further parse the content extracted from YAML. See http://okapiframework.org/wiki/index.php?title=YAML_Filter for details.

  2. Chase Tingley

    I'm resolving this; the existing behavior is required for producing valid XLIFF as Yves described. (The < escaped to &lt; should be rendered as < when the file is subsequently opened in the CAT tool.)

    If there is still an issue here, feel free to reopen.

  3. Log in to comment