\r\n style line feeds/breaks

Is there a way of making Trados interpret \r\n type line breaks as line breaks, rather than as words?


Developers seem to be really bad at handing off stuff for translations with that kind of formatting. The problem is that it's most common in fairly long chunks of text, like marketing stuff about software. Because Trados interprets them as text, when you have something like

This exciting new tool lets you:\r\nOpen files\r\nView documents\r\nMake coffee\r\nChannel Elvis

Trados interprets this as one long string or (depending on the punctuation) segments this in strange places. As a result, even though I might have 4 matches for the 4 above, I get zero matches from Trados because I don't have the whole string in the TM in its entirety.

Parents Reply
  • Unknown said:

    Ok so after setting up Nora's rules, opening the xlz directly half works. The initial case is not caught because (I'm guessing here) there is no . before it and the rule seems to call for a fullstop before the \r\n. But the second instance (which comes after a : ) has now resulted in the segments being split.

    Though further down where there is no • or * after the \r\n it has not split the \r\n from the word The:

    The code for this just looks like this:

    <body>
          <group id="1">
            <trans-unit id="19107000002742" xml:space="preserve">
              <source>\r\nThe Paid Wi-Fi blabla:\r\n•    Get blabla.\r\n•    For blabla*.\r\n•    Choose blabla.\r\n•    This app only works blabla.\r\n   </source>

    Copying and pasting this text into Word (2013) results in exactly the same thing, same goes for .odt (via LibreOffice). It does not like .txt at all, it discards anything past the first segment.

    Using the example everyone else is using, I get (both with doc and docx and as Translate Single Document):

    I'm on SR 2 - 12.2.5082.0

    Hi Michael,

    I see your screenshots now. The problem is that only one of the rules is working. You need both, one for creating a break "Before \r\n" and one for creating a break "After \r\n". So looking at your screenshots, I see that a break is being inserted before \r\n but not after \r\n, so you need to go back and check your "After r\n" rule, which should look like this:

Children
No Data