Pesky spaces around tags after MT Thread poster: Quentin N.
|
Hello all, 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. ... See more Hello all, 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? Thank you in advance! Quentin ▲ Collapse | | | Samuel Murray Netherlands Local time: 05:38 Member (2006) English to Afrikaans + ...
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.) | | | 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 | | | James Plastow United Kingdom Local time: 04:38 Member (2020) Japanese to English
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) So, Find: ()\s(\w) Replace: $1$2 for spaces after tags Find: (\w)\s() Replace: $1$2 for spaces before tags edit... See more 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) 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"
[Edited at 2020-11-12 01:57 GMT] ▲ Collapse | |
|
|
Samuel Murray Netherlands Local time: 05:38 Member (2006) English to Afrikaans + ...
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. | | |
memoQ has a little-known proprietary metacharacter \tag that matches any tag. It can sometimes be very useful. | | | James Plastow United Kingdom Local time: 04:38 Member (2020) Japanese to English
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. | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » Pesky spaces around tags after MT Trados Business Manager Lite | Create customer quotes and invoices from within Trados Studio
Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.
More info » |
| Protemos translation business management system | Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |