Regex for quotation marks.

Anonymous
Offline Anonymous

I would like to add some regex into my QA checker to search for quotations mark such as
"
«
»

And those alternatives with spaces too.

I do not know if someone can help me with this but even after a some research, it does not seem to work. Any suggestion on Regex to search these items in a sdlxliff file?

Thank you very much for you help!

Parents
  • All these in one file? Well, that can be a bit complicated, as the German ones do NOT require spaces, while the French ones do.
    For example to run a Sarch & Replace for straight quotes to German ones run these two operations:
    Search: (")([a-z0-9])
    Replace: „$2
    Search: ([a-z0-9]\b)(")
    Replace: $1“

    In the QA checker I have added the straight quotes directly as forbidden elements. This finds all remaining, for example such between tags or similar.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

Reply
  • All these in one file? Well, that can be a bit complicated, as the German ones do NOT require spaces, while the French ones do.
    For example to run a Sarch & Replace for straight quotes to German ones run these two operations:
    Search: (")([a-z0-9])
    Replace: „$2
    Search: ([a-z0-9]\b)(")
    Replace: $1“

    In the QA checker I have added the straight quotes directly as forbidden elements. This finds all remaining, for example such between tags or similar.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

Children