#390 XLIFF Filter: <ept> not recognized in relation with <bpt>


Reported by Yves Savourel:
I have an XLIFF file with an entry like this:

<trans-unit id="7" resname="7">
<source xml:lang="EN-US">About <bpt id="1">&lt;b&gt;</bpt>Gandalf<ept id="1">&lt;/b&gt;</ept></source>
<target xml:lang="FR-FR">About <bpt id="1">&lt;b&gt;</bpt>Gandalf<ept id="1">&lt;/b&gt;</ept></target>

And in OmegaT it shows up like this:

"About <b0/>Gandalf"
I would expect it to be like this:

"About <b0>Gandalf</b0>"

What do I do if "<b>Gandalf</b>" needs to be moved in front of "About" in the translation? How can I set the formatting properly if
I can't access the closing tag?
There’s an ambiguity, because <bpt> contains &lt;b&gt;, but the <b0/> seen is not related to &lt;b&gt;, but to <bpt>.
Currently, OmegaT knows enough about <bpt> to hide the content (that’s why there is <b0/>), but not to pair it with <ept>. Since <ept> is a stand alone “empty” tag, it is logically removed from the segment.

An improvement would be to have
About <b0/>Gandalf<e1/>
For that <ept> has to be recognized as the end tag for <bpt>.



  • Didier Briel

    Didier Briel - 2013-03-06
    • assigned_to: nobody --> alex73
  • Didier Briel

    Didier Briel - 2013-03-15

    Fixed in SVN (/trunk).

    The XLIFF filter now uses the same algorithm as the TMX reader to create shortcuts (the first letter inside the tags gives the shortcut). Consequently, we'll have now About <b0>Gandalf</b0> and, in any case, an XLIFF source file should give exactly the same result as a TMX content when obtained from the same source.

    Because shortcuts have changed, it is recommended not to switch to /trunk/2.7 in a middle of a project.


  • Didier Briel

    Didier Briel - 2013-03-15
    • milestone: --> 2.7
  • Didier Briel

    Didier Briel - 2013-03-15
    • status: open --> open-fixed
  • Didier Briel

    Didier Briel - 2013-03-29

    A "2.6 compatibility mode was added", so that it is possible to switch to 2.7 with the old tag handling.

    2.6 compatibility is off by default, and can be changed in Options > File Filter, XLIFF Filter, Options.


  • Didier Briel

    Didier Briel - 2013-04-25

    Fixed in the released version 3.0.0 of OmegaT.


  • Didier Briel

    Didier Briel - 2013-04-25
    • status: open-fixed --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks