How to do find/replace with fonted text in MS Word Thread poster: Samuel Murray
| Samuel Murray Netherlands Local time: 06:05 Member (2006) English to Afrikaans + ...
G'day everyone I must proofread an MS Word file in which the text occur in three fonts. Text that the translator should not have translated, is in Verdana. Source text that the translator should have translated, is in Tahoma, and the translator had typed the translation next to the source text in Courier. Sometimes two source text sentences are followed by two translated sentences, but mostly the translation was done on a per-sentence basis. There is neve... See more G'day everyone I must proofread an MS Word file in which the text occur in three fonts. Text that the translator should not have translated, is in Verdana. Source text that the translator should have translated, is in Tahoma, and the translator had typed the translation next to the source text in Courier. Sometimes two source text sentences are followed by two translated sentences, but mostly the translation was done on a per-sentence basis. There is never any other text (e.g. in another font, including Verdana) between a source text piece and a translation of it. I want to proofread this in my CAT tool (WFC), so I need to convert this: Some text in Verdana here. Some text in Tahoma here. Some text in Courier here. Some text in Verdana here. into this: Some text in Verdana here. {0>Some text in Tahoma here. <}0{>Some text in Courier here<0}. Some text in Verdana here. I can mark the Verdana text as non-translatable easily, so that's not a problem. Can anyone think of a strategy to do this? If the file was simple, I would have round-tripped via HTML, but the file is rather complex (lots of tables and stuff, though fortunately no text boxes). Conversion to OpenOffice.org seems like a possibility (I know that OOo has better regex in some ways than MS Word). Thanks Samuel ▲ Collapse | | | Samuel Murray Netherlands Local time: 06:05 Member (2006) English to Afrikaans + ... TOPIC STARTER Right now... | Oct 28, 2011 |
Samuel Murray wrote: Can anyone think of a strategy to do this? Right now, it looks like this would work: (1.) Find: (?) Replace: #\1# Wildcards: yes Find font: Tahoma (2.) Find: (?)(#)(?) Replace: \1\3 Wildcards: yes Find font: Tahoma Repeat (2.) until no further results are found. This causes there to be a # at the very start and very end of all Tahoma text. | | | Try something like this in Word | Oct 29, 2011 |
It works for this simple text, but may not work exactly in this form for a structurally formatted text. I do not know WFC. Perhaps the correct formula will depend on the font of the space separating the sentences (whether it belongs to the previous or the next font?). Check wildcard checkbox. Find: (*.) Format/character: Tahoma Replace with: {>0\1>}0{> Find: (*.) Format/character: Courier Replace with: \1<0} ... See more It works for this simple text, but may not work exactly in this form for a structurally formatted text. I do not know WFC. Perhaps the correct formula will depend on the font of the space separating the sentences (whether it belongs to the previous or the next font?). Check wildcard checkbox. Find: (*.) Format/character: Tahoma Replace with: {>0\1>}0{> Find: (*.) Format/character: Courier Replace with: \1<0} Of course, this will not align parts of the text where two source is followed by two target sentences.
[Módosítva: 2011-10-29 06:46 GMT] ▲ 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 do find/replace with fonted text in MS 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 » |
| CafeTran Espresso | You've never met a CAT tool this clever!
Translate faster & easier, using a sophisticated CAT tool built by a translator / developer.
Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools.
Download and start using CafeTran Espresso -- for free
Buy now! » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |