Replacing "\n" in an Excel file with a tag - Trados 2019

I have an Excel file where soft returns are coded as text (\n). I want to convert them to tags to get them out of my way. They often appear after segment-ending punctuation (period, exclamation point, question mark) without a space between the two, resulting in segments that can contain multiple sentences.

Source text in Excel and resulting segment in the converted file: Blah blah blah.\nText text text.

I would like:

Segment 1: Blah blah blah.

Segment 2: [tag]Text text text.

or

Segment 1: Blah blah blah.[tag]

Segmeng2: Text text text.

Working on a primitive level, I have prepped the Excel files by adding a space (search for ".\n" replace with ". \n" (etc. for ? and !) to get the segmentation right, but I really would like tags instead of \n -- they're distracting and make spell checking laborious (every "nText" has to be dealt with).

It would be wonderful to replace them with a tag and get the segmentation to work the way I want it to. The solution seems to lie in defining a tag in Embedded Content in the Excel file type and possibly also a segmentation rule. "\\n" doesn't work for me, but my knowledge of regex is pretty limited so any number of things could be wrong or missing.

Does anyone know how to go about configuring this?

Thanks in advance!

emoji
Parents Reply
  • First: please make sure you are adapting the correct file type (what you do now is for xlsx). Should your file be a xls, this will not work. Then make sure you are adapting the file type in proper project template. And in the end select "Extract in all paragraphs" in the screenshot Paul shows.

    It also seems you have an older version of Studio, where the segmentation hint "Exclude" might not work.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji
Children
No Data