Segmenting on Semicolons

Hi,

This is probably a no-brainer, but I've not solved it yet.

I am trying to add a segmentation rule that will segment a list of keywords separated by semicolon in a Word file. This works fine by adding a rule to the TM segmentation rules. However the semicolon appears in the segment after each keyword. It is possible to hide the semicolon? This would help to increase the chance of finding 100% match.

Any help would be much appreciated.

Robert

Parents Reply
  • Hi Uta,

    You would need two rules to achieve this: one for before the pipe character and one for after.

    For rule 1, enter:
    Before break   \|
    After break     .
    This will tell Studio that before the break there's a pipe character and after the break there's anything. This means that the pipe character will still be included at the end of your segments, as the break occurs between the pipe and whatever comes after it.

    For rule 2, enter:
    Before break   .
    After break     \|
    This will now tell Studio to insert a break between anything and a pipe character.

    Hope that helps!

    Edit: Forgot to escape the pipes! Edited to do so.

Children