How to hide (*) using wildcards in Word Auteur du fil: Emma Goldsmith
| Emma Goldsmith Espagne Local time: 06:25 Membre (2004) espagnol vers anglais
I have a several lists in a very big Word document: (a) apples (b) pears (c) bananas and I want to hide the (a-z) in order to translate the file in a CAT tool. I'm trying to figure out how to use wildcards to do this, but of course parentheses are used in Wildcards so I can't see how to do it. I thought it might be ((*)) or ((a-z)) but that doesn't work. I thought of replacing the opening and closing brackets with $$ first, but then all the brackets wil... See more I have a several lists in a very big Word document: (a) apples (b) pears (c) bananas and I want to hide the (a-z) in order to translate the file in a CAT tool. I'm trying to figure out how to use wildcards to do this, but of course parentheses are used in Wildcards so I can't see how to do it. I thought it might be ((*)) or ((a-z)) but that doesn't work. I thought of replacing the opening and closing brackets with $$ first, but then all the brackets will be replaced in the document, including those that aren't in a list. I know how to hide the text in the replace box, with format>font>hide, but I'm stuck on the brackets. Can anyone suggest how to do it? ▲ Collapse | | | Adam Łobatiuk Pologne Local time: 06:25 Membre (2009) anglais vers polonais + ...
You should use \ before each bracket: \(?\) I also think that ? will be safer than *, as there only seem to be single letters in those brackets. Good luck | | | Tony M France Local time: 06:25 Membre français vers anglais + ... SITE LOCALIZER Your CAT tool | May 27, 2012 |
Can you not configure your CAT tool simply to ignore things in ( )? Or consider them as placeables, for example, as I assume you will need them again in your target document? Wordfast Classic has a special way of handling things in ( ), though I've never so far had occasion to use this feature | | | Emma Goldsmith Espagne Local time: 06:25 Membre (2004) espagnol vers anglais AUTEUR DU FIL hiding text problem | May 27, 2012 |
@Tony, you might well be right, but I thought I would hide the bullets points and lists in Word and then unhide them afterwards. Codezapper is hanging on this long document for some reason, which is why I'm doing it by hand. @Adam, brilliant, escaping with the slash works perfectly. The only problem now is the replace box, which I thought I could manage on my own! If I use \1 and hide, then it all disappears (not because of the hiding). What do I have to write in the re... See more @Tony, you might well be right, but I thought I would hide the bullets points and lists in Word and then unhide them afterwards. Codezapper is hanging on this long document for some reason, which is why I'm doing it by hand. @Adam, brilliant, escaping with the slash works perfectly. The only problem now is the replace box, which I thought I could manage on my own! If I use \1 and hide, then it all disappears (not because of the hiding). What do I have to write in the replace box if I want it to stay the same, but hidden? Thanks, Emma ▲ Collapse | |
|
|
Tony M France Local time: 06:25 Membre français vers anglais + ... SITE LOCALIZER
I don't know how to do it 'properly', but I'd think about searching-&-replacing using some particular style, for example, and then set that style to 'hidden' in your style sheet. What about twin4ext or something? | | | Samuel Murray Pays-Bas Local time: 06:25 Membre (2006) anglais vers afrikaans + ... Keep it empty | May 27, 2012 |
Emma Goldsmith wrote: What do I have to write in the replace box if I want it to stay the same, but hidden? If you want the formatting of the replace box to be applied to everything in the find box, then the replace box must be empty. Using \1 should also work, though... | | | Emma Goldsmith Espagne Local time: 06:25 Membre (2004) espagnol vers anglais AUTEUR DU FIL Thanks, Samuel! | May 27, 2012 |
Samuel Murray wrote: the replace box must be empty. Thanks, Samuel! That works perfectly. I'd started doing it by hand, with a macro for hiding selected text, but using \(?\) and leaving the replace box empty is the answer. Thanks, everyone! | | | Samuel Murray Pays-Bas Local time: 06:25 Membre (2006) anglais vers afrikaans + ... Matching only numbers | May 27, 2012 |
Emma Goldsmith wrote: Using \(?\) and leaving the replace box empty is the answer. Your search will match (1) as well as (a). To match only (1), use \([0-9]\). To match (1) as well as (10), use \([0-9]@\). | |
|
|
Emma Goldsmith Espagne Local time: 06:25 Membre (2004) espagnol vers anglais AUTEUR DU FIL Practice makes perfect! | May 27, 2012 |
Samuel Murray wrote: Your search will match (1) as well as (a). To match only (1), use \([0-9]\). To match (1) as well as (10), use \([0-9]@\). More interesting stuff, thanks, Samuel. I really need to practise using wildcards more so that I remember it. | | | Back to backslash | May 28, 2012 |
When \1, \2 etc. is used in the Replace box, they refer to the 1st, 2nd etc. group in the Find box. These groups should be separated with (put between) brackets in the Find box: these brackets function in this case as metacharacters. Sometimes characters which are used as metacharacters are also used as literal characters and the latter is shown by a preceding backslash: so ’(’ in Word regex is a metacharacter, '\(' is a simple bracket character. In the present case, \(?\)... See more When \1, \2 etc. is used in the Replace box, they refer to the 1st, 2nd etc. group in the Find box. These groups should be separated with (put between) brackets in the Find box: these brackets function in this case as metacharacters. Sometimes characters which are used as metacharacters are also used as literal characters and the latter is shown by a preceding backslash: so ’(’ in Word regex is a metacharacter, '\(' is a simple bracket character. In the present case, \(?\) is still not grouped (brackets here are „normal” characters), so you cannot refer to them in the Replace box as "the first group" (\1). To make using \1 possible in the Replace box, you should put this between metacharacters: (\(?\)) where the outer brackets function as metacharacters, the inner ones (following the backslash) as literal (normal) characters. ▲ Collapse | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » How to hide (*) using wildcards in Word 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 » |
| 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 » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |