What do the "type" and "x" attributes for the bpt tag in TMX files represent?

The "type" and "x" attributes are optional, so this is only specific to TMX files generated by SDL.

Example:

<bpt i="1" type="16" x="4" />

What does the "type" and "x" attributes mean?

* Background:
I want to generate TMX files for used with Trados Studio, for now I am just going to ignore those attributes.

Parents Reply
  • Unknown said:
    I don't think we actually use the type at all. The way the tags are resolved is not using that information so I would skip it.

    Though you should know better, I tend to disagree ;-). At least regarding how Studio 2017 works, don't know if anything has changed in Studio 2019 in this regard.

    During my investigation of https://community.sdl.com/product-groups/translationproductivity/f/90/t/13675 and https://community.sdl.com/product-groups/translationproductivity/f/90/t/13836 I found out that if "x" attribute is missing, Studio uses the information in "type" attribute for pairing the tags between source and target segment.

    : I've seen Studio simply putting a (sequential) number in the "type" attribute. The following quote from my instruction for engineers on how to fix TMX affected by the above mentioned alignment issues might help you to understand how it works:

    From the text in following source and target segments it's clear that the first "bpt" tag in target corresponds to first "bpt" tag in source and second "bpt" tag in target corresponds to second "bpt" tag in source. Therefore the fix will be to change the "59" attribute value to "57" and the "60" attribute value to "58".

    <seg>For more information, see <bpt i="1" type="57"/>Select Marks<ept i="1"/> and <bpt i="2" type="58"/>Pan and Zoom<ept i="2"/>.</seg>

    <seg>Weitere Informationen finden Sie unter <bpt i="1" type="59"/>Auswählen von Markierungen<ept i="1"/> und <bpt i="2" type="60"/>Schwenken und Zoomen<ept i="2"/>.</seg>

Children