From Text to Doc Wordfast Classic

From Wordfast Wiki
Revision as of 08:05, 6 November 2017 by Samar (talk | contribs)
Jump to: navigation, search

Q: In my document, all lines end with a carriage return, even if they don't end a paragraph. What can I do to reconstruct a normal text flow?

A: There is no absolute answer, but a global FR can do most of the job; a last manual verification will restore paragraphs that are unduly cut. See the other, smarter, macro-based alternative in Appendix III, "Text to Doc".

Find what ^p^p
Replace with <!?a$

The above FR will preserve double paragraph marks (replacing them into a very unlikeky sequence of characters, which we here call a code)

Find what ^p
Replace with

The above FR will turn all single paragraph marks into a space. A space has to be entered in the "Replace with" argument.

Find what <!?a$
Replace with ^ p^p

The above FR will restore double hard carriage returns.

This is a typical three-pass FR example. Note that when using wildcards, Ms-Word no longer accepts some characters such as ^p (hard carriage return), so two- or three-pass FR actions are often necessary to bypass this limitation.

But hey, wait a minute...

Actually, a one-pass FR can achieve just the same result, but don't tell anyone, because it's a secret:

Find what ([!^0013])([^0013])([!^0013])
Replace with \1 \3
Use Wildcards

(Note the space after \1) Amazing, right? Be cautious though – on some Ms-Word versions, ^0013 introduces a new line but not necessarily a paragraph, as surprising as this may seem… Use this geeky method if you’re a geek yourself and know what you’re doing.

 Back to Wordfast Classic User Manual