Help on segmentation / InlineGraphic / xml file

Hi, I have an xml file a don't get my desired segmentation done.

I have this structure, where the segment is segmented by the inline graphic.
<ActivityStep><ActivityStepDescription><BodyText>
Die Schaltfläche [Starten] <TranslationLock><InlineGraphic><fm:Frame></fm:Frame></InlineGraphic></TranslationLock> für den zu befüllenden Behälter wählen.</BodyText></ActivityStepDescription>

So I get this i Studio:

When adding the InlineGraphic tag to my parser rules, I get this:

These are the settings I used:

How do I get the text in one segment inluding the InlineGraphic? I also tried with deleting the TranslationLock in xml, just to see, but same result.

Here the complete view of the xml structure:

Thnx in advance!
Burim

Parents
  • It's always easier if you provide enough xml code to make it easy for someone to help you without having to type out the file and fix namespace and closing tag issues before they can even look at your problem.

    So, I created this simple file:

    <?xml version="1.0" encoding="UTF-8"?>
    <rootelement>
    <ActivityStep>
    	<ActivityStepDescription>
    		<BodyText>Die Schaltfläche [Starten] <TranslationLock><InlineGraphic><fm:Frame xmlns:fm="www.w3.org/.../TranslationLock> für den zu befüllenden Behälter wählen.</BodyText>
    	</ActivityStepDescription>
    </ActivityStep>
    </rootelement>

    I then opened this with the default XML filetype in Studio 2021 and this is what I see:

    Screenshot of Trados Studio interface showing a segment of XML code with no visible errors or warnings. The text includes a button label Starten with a graphic frame element.

    Looks fine and is what you are trying to achieve.  Why don't you start with the defaults and then refine your filetype to remove anything you don't want, or add anything not picked up.  Test as you go and then you'll probably find it easier.

    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


    Generated Image Alt-Text
    [edited by: Trados AI at 4:28 AM (GMT 0) on 5 Mar 2024]
  • Hi Paul, sorry, I don‘t know how to provide the code in the way you did. van you help me on that?

    I already have a settings file that I habe created and updated over the years, but these inline graphics are new, so I was trying to update this one.

    The example provided by is exakt what I need, but I don“t know, why it doesn’t work with my settings. Can I provide you with the file and my settings so you could have a look? :-)

    Gruß

    Burim

Reply Children