Segmentation rule for manual list

I translate an Excel file, in which there are a lot of manually bulleted lists, each item starting with "space + dash + space", e.g.:

 - Heating/Cooling
 - Electrical energy

How can I set a segmentation rule for "space + dash + space" as a starting string?

emoji
  •  

    It can be done:

    Screenshot of Trados Studio segment view showing numbered segments with a dash and text, such as 'HeatingCooling' and 'Electrical energy'.

    The trick is seeing what the segments look like without the rule.  If you turn on the show spaces you'll see that the first space is not there because it's considered unnecessary and is moved external to the segment.  So you only really need a rule for the "dash+space".

    To do that I usually put something in the basic editor so I know where the rule needs to be like this:

    Screenshot of the 'Add Segmentation Rule' dialog in Trados Studio with fields for 'Before break', 'Break characters', and 'After break', and options for regular expressions and punctuation.

    Then switch to Advanced and replace the XX and YY with a proper regular expression.  I know you probably don't need to do this, but I've done it for so long it makes more sense in my head!

    So this:

    XX[YY]+

    Would be become this:

    -[\s]+

    So before the break is the dash, and break on the space.

    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: RWS Community AI at 10:56 PM (GMT 0) on 22 Nov 2024]