batch find and replace non-breaking spaces and hyphens Thread poster: Bruno Depascale
| Bruno Depascale Italy Local time: 07:32 Member (2009) English to Italian + ...
Hi everybody, I'd like to ask your help about a really time-consuming process in trados studio. I often have to replace normal spaces with non-breaking spaces before the units of measure (like for example 10 mg). Is there a way to do this via the search and replace function? The same applies also to non-breaking hyphens, since if I paste a non-breaking hyphen in the search and replace box, trados automatically changes it to a normal hyphen. Thank you for your help! | | | _stephan Germany Local time: 07:32 English to German Works in 2017 | Jun 22, 2017 |
Hi Bruno, I just tried this using Studio 2017 because I was fairly certain this should work, and as far as I can see it does: I pasted a non-breaking space and non-breaking hyphen into the 'replace with' box and, while it's not discernible in the search dialog, it's definitely replacing with the correct characters. When I type a non-breaking hyphen in the Studio editor (via ctrl+shift+hyphen), it appears as a purple tag. The replaced character looks like a ... See more Hi Bruno, I just tried this using Studio 2017 because I was fairly certain this should work, and as far as I can see it does: I pasted a non-breaking space and non-breaking hyphen into the 'replace with' box and, while it's not discernible in the search dialog, it's definitely replacing with the correct characters. When I type a non-breaking hyphen in the Studio editor (via ctrl+shift+hyphen), it appears as a purple tag. The replaced character looks like a regular hyphen, so I double-checked in the target file in Word and it really is non-breaking. For pre-translation/auto-propagation you can also control this via the project settings: Language Pairs -> (your language pair) -> Translation Memory and Automated Translation -> Auto-substitution -> Measurements Does that help you? Stephan ▲ Collapse | | | NeoAtlas Spain Local time: 07:32 English to Spanish + ...
About the non-breakable space, you can use this string in the Find what box: (\d)[followed by a space] and this string in the Replace with box: $1[followed by non-breakable space, i.e., ALT+0160] Note: Texts in brackets and square brackets themselves ([])are just descricriptive. You have to remove them and replace them with spaces that I can't show here. Tick Use and select Regular expressions. ... See more About the non-breakable space, you can use this string in the Find what box: (\d)[followed by a space] and this string in the Replace with box: $1[followed by non-breakable space, i.e., ALT+0160] Note: Texts in brackets and square brackets themselves ([])are just descricriptive. You have to remove them and replace them with spaces that I can't show here. Tick Use and select Regular expressions. The press the Replace button for each instance with wish to get replaced. Of course, you can try with other search and replace patterns, like: Find what: (\d) (mg) Replace with: $1[ALT+0160]$2 I hope this helps you, … Jesús Prieto … ▲ Collapse | | | Bruno Depascale Italy Local time: 07:32 Member (2009) English to Italian + ... TOPIC STARTER
Thank you Jesús and Stephan, your answers have been very helpful! Have a great day! | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » batch find and replace non-breaking spaces and hyphens Trados Studio 2022 Freelance | The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
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... | | | | | |