Placeholders at the beginning of a segment not showing

When opening an XML file in Trados Studio 2019 SR2, any tags in the beginning of a segment are not shown in the editor.

Example:

In the segment below, the 3 ph tags starting the segment are removed, and only the word "auswählen is shown.

<seg mid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" isContextMatched="False" translate="yes">
<ph ctype="x-unknownattribute" gt:class="standard" gt:display-text="v-ref" gt:leftedge="round" gt:rightedge="angle" gt:type="start" gt:style="nonxlatable" gt:payload="<v-ref y.io.id="f08a2ecef001936dac1c0c0577f30e9a" y.io.version="1" y.io.language="de" y.io.variant="DE" y.io.type="swtext" y.reftype="textvar" y.id="ID_363ff717f90c11efb700bbd697ec6001" y.ref.io.types="swtext" translate="no" y.target.language="da" y.target.variant="DK" y.target.content="Parametre">" id="gt_cca9279e-4bc9-4ead-bb99-24aeb84e9dec" gt:desc="<ut Type="start" Style="nonxlatable" RightEdge="angle" DisplayText="v-ref">&lt;v-ref y.io.id="f08a2ecef001936dac1c0c0577f30e9a" y.io.version="1" y.io.language="de" y.io.variant="DE" y.io.type="swtext" y.reftype="textvar" y.id="ID_363ff717f90c11efb700bbd697ec6001" y.ref.io.types="swtext" translate="no" y.target.language="da" y.target.variant="DK" y.target.content="Parametre"&gt;</ut>"/>
<ph ctype="x-unknownattribute" gt:class="standard" gt:display-text="Parameter" gt:leftedge="split" gt:rightedge="split" gt:type="standalone" gt:style="nonxlatable" gt:payload="Parameter" id="gt_0168bdb6-8f47-4b82-b863-240f65c4dc0d" gt:desc="<ut Style="nonxlatable" LeftEdge="split" RightEdge="split" DisplayText="Parameter">Parameter</ut>"/>
<ph ctype="x-unknownattribute" gt:class="standard" gt:display-text="v-ref" gt:leftedge="angle" gt:rightedge="round" gt:type="end" gt:style="nonxlatable" gt:payload="</v-ref>" id="gt_74cd0beb-b16d-4d8f-bbfe-9b957ffa7c60" gt:desc="<ut Type="end" Style="nonxlatable" LeftEdge="angle" DisplayText="v-ref">&lt;/v-ref&gt;</ut>"/>
auswählen
</seg>
I've tried updating settings under View -> Options, and under File -> Options -> Editor -> Formatting display style, but no change. Since changing the settings doesn't have any effekt, I'm assuming that this happens during the parsing.
emoji
Parents Reply Children
  •  

    Well... in the example you provided there is only one word so I doubt it matters at all.  If you can provide a proper sample showing the complete structure of the file you are handling, including content where this distinction matters, it would help you get a better reply... especially since this seems to be something you have not meddled with before.

    ok - so in this case you 100% need a custom xml filetype to handle the file, but if you are handling this as a bilingual file that may be tricky... unless the target has not been translated yet?

    I think if a custom xml is the way forward I'd use a stylesheet rather than the tags for that information so you have a preview that clearly contains what you need to know.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi, sorry to step in here, as I do not see a solution in the answers so far. If this issue is solved already, then ignore my message.

    I think, the example with "<tag> löschen" and "Delete <tag>" makes clear, where the problem is.

    As the front tag is not shown in Studio, the translator only sees "löschen" in that segment and translates this with "delete".

    When you then create the target version, the hidden tag is placed again in the front of the segment. So the translation then will be "<tag> delete", wich is incorrect English.

    The problem goes back to the settings in the xml file, when the Studio project is created, during parsing of the file (your assumption is correct). So if the client is providing you with a Studio project, you cannot change that anymore.

    In the settings of the clients XML file type, this specific tag needs to get a property, that says, that it may not be removed during the parsing process. You do this in your XML file type definition, under Parser, there you have to change the Tag Type option from Structure to Inline, and then in the Segmentation hint box, you select Include. Then this tag will always be included in your segment, no matter where its position in the segment.

    Hope that helps,

    Johannes

    emoji
  •  

    Indeed... but we still don't know whether this is a bilingual file or not (it looks like one) and whether it's translated at all or not.  Hence the reason I asked for a sample file.  But you are correct, it is a settings issue.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji