Segmentation rule for line break

Hi,

I have searched the forum and found solutions for the same problem I have, but it won't work.

I have this xml:

XML code in Trados Studio with highlighted text showing 'TEST- with bullet 1- with bullet 2without bullet 1without bullet 2- Antrieb Langstransportboden EINAUS'.

Without segmentation rules I get this:

Trados Studio translation results displaying 'TEST - with bullet 1 - with bullet 2 without bullet 1 without bullet 2 - Antrieb Langstransportboden EINAUS' without segmentation.

Whith this rule...

Trados Studio segmentation rules interface with a rule input field containing a dot symbol before the segment end and 's-ls' after the segment end.

... I get here:

Trados Studio translation results with segmented text showing 'TEST', 'with bullet 1', 'with bullet 2 without bullet 1 without bullet 2', 'Antrieb Langstransportboden EINAUS' on separate lines.

 I then tried with this rule to segmet line 3, which has an LF at the end of the line, but it doesn't work.I also tried with \r and \r\n.

Trados Studio segmentation rules interface with a rule input field containing '.n+.' before the segment end and a dot symbol after the segment end.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<data lang="de" lastmodified-date="2020-12-16 00:00:00" total_load_time="11.98s" total_same_items="0" total_diff_items="0">
  <root table="CalculationBox" date="2022-06-09 06:29:46" gen-time="0.07s" load_time="0.09s">
          <item id="97" method="translation">

                            <equipment><![CDATA[TEST
- with bullet 1
- with bullet 2
without bullet 1
without bullet 2
- Antrieb Längstransportboden EIN/AUS]]></equipment>
</item>
      </root>
</data>

I hope the code displays right.

Any idea? Thnx.

Burim



Generated Image Alt-Text
[edited by: Trados AI at 7:06 AM (GMT 0) on 29 Feb 2024]
Parents Reply
  • Do you see any difference between your version and mine? 

    On the rule.. none.

    However we don't know anything else about your setup, for example:

    - version of Trados Studio

    - other segmentation rules that might conflict somehow

    - xml filetype (I used the default with no embedded content and just relied on the TM to check your exact question)

    Why don't you try it with a new TM and only this rule.  See if that works.  If it does take a deeper look at your TM config.  If it doesn't then take a look at your filetype.  Try using the default and see if it works, if it does then you now you have a conflict in your rules. If it doesn't and you are not using the latest version of Trados then try it in the latest version.

    Things like that.

    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
Children