Is there a more automatic way to remove the extra space between English text/numbers and a Chinese character?

Dear Studio 2017 users,

I just completed a big editing job where the client no longer wants a space between English text/numbers and a Chinese character, the style that was used previously.  I ended up spending 20-25% of the editing time manually removing these extra spaces from the matches coming from the project TM.

Is there a way or an app that can automatically remove these spaces for me?  Also, in some cases, the text/Chinese character is surround by a formatting tag pair, and the extra space is either before the opening tag or after.  I wonder if there is a way/expression that can ignore the tags and find/delete the extra space before the tag.

Thank you in advance for any suggestions!

Chunyi 

Parents Reply
  • Unknown said:
    Paul, in fact I don't know how to remove the instances of extra spaces that do not involve tags using search and replace in Studio.

    Use Ctrl+H to bring up the replace dialogue then two two operations.  First to find Chinese characters followed by a space and a number.

    Search for:

    ([\u4E00-\u9FA5])\s(\d)

    Replace with:

    $1$2

    Then repeat for numbers followed by a Chinese character (this looked appropriate from your test files... but you be the judge of that).

    Search for:

    (\d)\s([\u4E00-\u9FA5])

    Replace with:

    $1$2

    You've got RegexBuddy... try it out!

    Regards

    Paul

    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

Children