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,

    I cut my file down leaving only the parts I need for this issue.

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <fctdcl RSID-Object="BasisRS://OBJ_DCL/147583//001/1//296642:396" RSKM-AppliesTo="" RSKM-Auftrag="" RSKM-BaseDocument="0000016233" RSKM-BaseDocumentVersion="001" RSKM-DocuType="Betriebsanleitung" RSKM-DocumentNo="" RSKM-FreigabeDatum="27.08.2020" RSKM-Language="DE" RSKM-OrderNo="" RSKM-ProductGroup="" RSKM-ProductName="" RSKM-ProductType="Materialaufbereitung" RSKM-Title="OM_(DOS) LP804" RSKM-Version="001" RSKM-Web="Nein" TCIM-ProjectID="4598" TCIM-SourceLanguage="DE" TCIM-TargetLanguage="EN" TCIM-TransState="PreTranslated" xml:space="preserve" xmlns:fct="www.fct.de/general" xmlns:fm="fctfmns.xml">
    <Cover>
    <CoverTitle>Betriebsanleitung</CoverTitle></Cover>
    <Chapter><Chapter><Para RSID-Component="BasisRS://OBJ_BAUST/131983/DE/002/1//310348:3" RSIM-VariantControl="" TCIM-Checksum="3795546564:1" TCIM-InternalID="320" TCIM-TransState="CompToTranslate"><Separator Type="NoLine"/><Activity><ActivityStepGroup>
    <ActivityStep>
    <ActivityStepDescription>
    <BodyText>Die Schaltfläche [Grundstellung] 
    <TranslationLock TransLockReason="CompTranslated">
    <InlineGraphic HTMLOutput="" RSID-Graphic="BasisRS://OBJ_GRAF/152297/XX/001/1//304438:1:*ORG*/354394" TCIM-InternalID="309" TCIM-TransState="CompTranslated">
    <fm:Frame Align="4" BaseLine="458752" Color="Schwarz" Common="0,0,0,2,0,393216,6553600," Cropped="0" GroupParent="0" HasImgGroups="0" Offset="0" Pos="21984784,9226968,1393284,1393284,0" Style="15,15,65536,0" Type="1"><fm:Inset Color="Schwarz" Common="0,0,0,2,2,393216,6553600," Dpi="72" File="\\Sonne\timrs\FCTTIMPUBLIC\Redaktionsgrafiken\DAT0030\00354394.png" Fixed="1" Flipped="0" GroupParent="0" Pos="3402,3402,1386481,1386481,0" Style="15,7,65536,0" TCIM-ViewFile="_images\00354395.jpg"/>
    </fm:Frame>
    </InlineGraphic>
    </TranslationLock> für die Materialförderung wählen.
    </BodyText>
    </ActivityStepDescription>
    </ActivityStep></ActivityStepGroup></Activity>
    </Para></Chapter>
    </Chapter>
    <Chapter>
    <Para RSID-Component="BasisRS://OBJ_BAUST/153911/DE/001/1//307199:7" RSIM-VariantControl="" TCIM-Checksum="656960878:1" TCIM-InternalID="333" TCIM-TransState="CompToTranslate"><Activity><ActivityStepGroup>
    <ActivityStep><ActivityStepDescription><BodyText>Auf Bedieneinheit unter Menü [Produktion] <TranslationLock TransLockReason="CompTranslated"><InlineGraphic HTMLOutput="" RSID-Graphic="BasisRS://OBJ_GRAF/151484/XX/001/1//303159:1:*ORG*/352849" TCIM-InternalID="334" TCIM-TransState="CompTranslated"><fm:Frame Align="4" BaseLine="524288" Color="Schwarz" Common="0,0,0,2,0,393216,6553600," Cropped="0" GroupParent="0" HasImgGroups="0" Offset="0" Pos="25737784,7233542,1486170,1289562,0" Style="15,15,65536,0" Type="1"><fm:Inset Color="Schwarz" Common="0,0,0,2,2,393216,6553600," Dpi="72" File="\\Sonne\timrs\FCTTIMPUBLIC\Redaktionsgrafiken\DAT0030\00352849.png" Fixed="1" Flipped="0" GroupParent="0" Pos="63381,116733,1457713,1056096,0" Style="15,7,65536,0" TCIM-ViewFile="_images\00352850.jpg"/></fm:Frame></InlineGraphic></TranslationLock> das Widget [Füllstand]  <TranslationLock TransLockReason="CompTranslated"><InlineGraphic HTMLOutput="" RSID-Graphic="BasisRS://OBJ_GRAF/153939/XX/001/1//307229:1:*ORG*/357728" TCIM-InternalID="335" TCIM-TransState="CompTranslated"><fm:Frame Align="4" BaseLine="524288" Color="Schwarz" Common="0,0,0,2,0,393216,6553600," Cropped="0" GroupParent="0" HasImgGroups="0" Offset="0" Pos="12446674,7970821,1486170,1338714,0" Style="15,15,65536,0" Type="1"><fm:Inset Color="Schwarz" Common="0,0,0,2,2,393216,6553600," Dpi="72" File="\\Sonne\timrs\FCTTIMPUBLIC\Redaktionsgrafiken\DAT0031\00357728.png" Fixed="1" Flipped="0" GroupParent="0" Pos="318078,150518,807268,985496,0" Style="15,7,65536,0" TCIM-ViewFile="_images\00357729.jpg"/></fm:Frame></InlineGraphic></TranslationLock> wählen. </BodyText></ActivityStepDescription></ActivityStep>
    <ActivityStep>
    <ActivityStepDescription>
    <BodyText>Die Schaltfläche [Starten] <TranslationLock TransLockReason="CompTranslated"><InlineGraphic HTMLOutput="" RSID-Graphic="BasisRS://OBJ_GRAF/153945/XX/001/1//307235:1:*ORG*/357735" TCIM-InternalID="336" TCIM-TransState="CompTranslated"><fm:Frame Align="4" BaseLine="524288" Color="Schwarz" Common="0,0,0,2,0,393216,6553600," Cropped="0" GroupParent="0" HasImgGroups="0" Offset="0" Pos="20019129,9018699,1486170,1339411,0" Style="15,15,65536,0" Type="1"><fm:Inset Color="Schwarz" Common="0,0,0,2,2,393216,6553600," Dpi="72" File="\\Sonne\timrs\FCTTIMPUBLIC\Redaktionsgrafiken\DAT0031\00357735.png" Fixed="1" Flipped="0" GroupParent="0" Pos="-21523,-94903,1529217,1529217,0" Style="15,7,65536,0" TCIM-ViewFile="_images\00357736.jpg"/></fm:Frame></InlineGraphic></TranslationLock> für den zu befüllenden Behälter wählen.</BodyText></ActivityStepDescription>
    </ActivityStep>
    </ActivityStepGroup>
    </Activity><Separator Type="NoLine"/>
    </Para>
    </Chapter>
    </fctdcl>


    In anyXML I indeed do get the result I want, but I have to use my customer settings. There, even if I deactivate all other parsers and use only the <InlineGraphic> and <fm:Frame> I get the same result :-(

    Screenshot of Trados Studio showing translation rules for tags such as InlineGraphic and fm:Frame, indicating they should always be translated.

    Screenshot of Trados Studio interface with a list of translation segments, highlighting the use of InlineGraphic and fm:Frame tags in the source and target columns.

    :-(

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:28 AM (GMT 0) on 5 Mar 2024]
  • It sounds to me as though you need to go back to your customer and discuss this with them.  Unless you can share the settings file so we can look at this properly and try to see why it's behaving the way it is.

    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

  • Discussing with the customer won't help, as it's me who created the settings file. But of course I can share my settings file. Sorry. I will share everything from the beginning next time.

Reply Children