This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
I am frequently working with a client on MT review projects. The problem is, whatever MT process they are using has a tendency of messing up the spaces around tags, and I often space an inordinate amount of time working specifically on correcting this.
MemoQ's QA feature generally picks up on those and allows me to autocorrect spacing, however only one instance at a time, which does not necessarily make the whole process much more time efficient.
I am frequently working with a client on MT review projects. The problem is, whatever MT process they are using has a tendency of messing up the spaces around tags, and I often space an inordinate amount of time working specifically on correcting this.
MemoQ's QA feature generally picks up on those and allows me to autocorrect spacing, however only one instance at a time, which does not necessarily make the whole process much more time efficient.
Would you be aware of a way to use Search and Replace, and possibly Regex, to automate the process and force spacing around tags in the target to be identical to that of the source?
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Samuel Murray Netherlands Local time: 19:43 Member (2006) English to Afrikaans + ...
@Quentin
Nov 8, 2020
Quentin N. wrote: MemoQ's QA feature generally picks up on those and allows me to autocorrect spacing, however only one instance at a time, which does not necessarily make the whole process much more time efficient.
How about exporting to bilingual review, fixing it (perhaps using a couple of macros that you record in Word), and then importing it again? One of the macros that I use add highlighting to all tags with spaces and punctuation marks, so that I can see in the source column which tags need spaces and which ones don't, in order to fix it in the target column. (You may need to remember to remove highlighting before importing it back into MemoQ.)
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Hans Lenting Netherlands Member (2006) German to Dutch
There’s a macro for that
Nov 9, 2020
Samuel Murray wrote: (You may need to remember to remove highlighting before importing it back into MemoQ.)
Sub AutoClose() ‘ Each time you close a document
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
James Plastow United Kingdom Local time: 18:43 Member (2020) Japanese to English
regex
Nov 12, 2020
How about
- this should match a tag (but I don't use MemoQ so possibly it is different). \s - for a space \w - for a letter Then enclose the "tag" and "letter" in brackets so you can backreference them as Group 1 and Group 2 ($1 and $2)
- this should match a tag (but I don't use MemoQ so possibly it is different). \s - for a space \w - for a letter Then enclose the "tag" and "letter" in brackets so you can backreference them as Group 1 and Group 2 ($1 and $2)
So,
Find: ()\s(\w) Replace: $1$2
for spaces after tags
Find: (\w)\s() Replace: $1$2
for spaces before tags
edit: I see the html formatting on comments doesn't let me write the characters for a regex match of a tag. It should be "less than arrow" ".+?" "greater than arrow"
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Samuel Murray Netherlands Local time: 19:43 Member (2006) English to Afrikaans + ...
@James
Nov 12, 2020
James Plastow wrote: Find: (<.+?>)\s(\w) Replace: $1$2
Find: (\w)\s(<.+?>) Replace: $1$2
1. Use < and >.
2. Yes, but you don't want *all* spaces next to tags to be removed. You only want spaces to be removed that should not be there. If a space is present in the source text, often a space should also be there in the translation.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
memoQ has a little-known proprietary metacharacter \tag that matches any tag. It can sometimes be very useful.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
James Plastow United Kingdom Local time: 18:43 Member (2020) Japanese to English
Thank you
Nov 12, 2020
Samuel Murray wrote:
James Plastow wrote: Find: ()\s(\w) Replace: $1$2
Find: (\w)\s() Replace: $1$2
1. Use < and >.
2. Yes, but you don't want *all* spaces next to tags to be removed. You only want spaces to be removed that should not be there. If a space is present in the source text, often a space should also be there in the translation.
Thanks for the hint Samuel! I guess if you want to keep some of the spaces you can go through manually with Find and Replace rather than using Replace All.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value
Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.