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
  • Hi Chunyi,

    You could click on "Advanced Editing Options" and then you can load your files there too.

    Quite tricky to find rules for all cases and some of them, around the tags for example I can only solve by working directly on the SDLXLIFF in a decent text editor.  So if I search for this:

    ([\u4E00-\u9FA5])\s(<[^/]+>\d)|([\u4E00-\u9FA5]<[^/]+>)\s(\d)

    And replace with this:

    $1$2$3$4

    Then this will resolve the ones with spaces either side of the tags.  The ones without tags at all I presume you have no problem with as these are easily handled in the Studio Editor or the Toolkit for example.

    Paul Filkin | RWS

    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