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.

10 Replies Latest Replies: 3 Sep 2018 7:17 AM by Patrik Mazanek < 1   2  >
  • HI,
    See - www.gala-global.org/tmx-14b - it's basically anchor which links tags between source and target.
    Regards
    Patrik
  • In reply to Jesse Good:

    Hi,
    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.
    Patrik
  • In reply to Patrik Mazanek:

    Patrik Mazanek
    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>

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

    BTW, , the optionality of "x" attribute just means that "it's not mandatory to be present in each and every tag".
    But it still means that - given its purpose to provide cross-reference between source and target tag - it SHOULD (or even MUST?) be present if necessary!

    What that "necessary" means?
    Basically, if there is only single tag in both source and target segment, it's not necessary to provide a clue to link them together, obviously...
    But if there is more tags, then it is necessary to provide information which is which... because the word order may be different in source and target language, so e.g. first tag in source sentence may not necessarily correspond to first tag in target sentence. So you need the "x" attribute to provide this clue...

< 1   2  >

Related