Is there any way to get Studio's segmentation to include closing punctuation following a break plus a hard space?

I work in a French/English environment where we are translating in both directions and, in order to maximize leverage of our respective memories, wish to respect our respective styles. Our house style for French is to insert a space after opening French quotation marks («) and before the closing ones (»). I cannot figure out how to make the Studio 2015 break after the closing quotation mark where it is separated from a full stop, question mark or exclamation point by a space. I am new to regular expressions, but I tried to force Studio to include a closing quotation mark preceded by a space using (?:\p{Zs}\p{Pe})|[\s] in the After break space. I tried with and without Include closing punctuation, but it did not work. Any suggestions?

Parents Reply
  • Hi Nora. Can I ask you a related question? I have a very similar problem and it's probably easy for you but my brain doesn't work that way!

    Scenario: I get files where punctuation is often not tidy or where !! is used to separate segments, like this:

    A sentence missing a space at the end!And another sentence.

    A sentence.!!Another sentence without ending punctuation!!And another at the end

    The default settings for ?! have "Whitespace" selected as the After Break. I played around with it and discovered that if I set this to Anything, it will split at these ! but creates a problem elsewhere. In particular, it creates a problem with some placeholders such as these

    Open {1}!s! and then open {2}!s!.

    which it now splits as

    Open {1}!

    s!

    and then open {2}!

    s!

    .

    I can manually merge them but that gets a bit tedious. I get the feeling from your above solution that I should be able to tell it not to split before s! but I can't figure how to. Any suggestions would be highly welcome!

Children