Difference between revisions of "From Text to Doc Wordfast Classic"

From Wordfast Wiki
Jump to: navigation, search
(Created page with "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,...")
 
Line 2: Line 2:
  
 
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, "[[From Text to Doc: a smarter approach Wordfast Classic|Text to Doc]]".
 
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, "[[From Text to Doc: a smarter approach Wordfast Classic|Text to Doc]]".
{|style="font-size: 9pt"
+
{|
 
|-
 
|-
 
|Find what ||^p^p
 
|Find what ||^p^p
Line 10: Line 10:
  
 
The above FR will preserve double paragraph marks (replacing them into a very unlikeky sequence of characters, which we here call a code)
 
The above FR will preserve double paragraph marks (replacing them into a very unlikeky sequence of characters, which we here call a code)
{|style="font-size: 9pt"
+
{|
 
|-
 
|-
 
|Find what ||^p
 
|Find what ||^p
 +
|-
 
|Replace with  
 
|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.
 
The above FR will turn all single paragraph marks into a space. A space has to be entered in the "Replace with" argument.
{|style="font-size: 9pt"
+
{|
 
|-
 
|-
 
|Find what ||<!?a$
 
|Find what ||<!?a$
Line 29: Line 30:
  
 
Actually, a one-pass FR can achieve just the same result, but don't tell anyone, because it's a secret:
 
Actually, a one-pass FR can achieve just the same result, but don't tell anyone, because it's a secret:
{|style="font-size: 9pt"
+
{|
 
|-
 
|-
 
|Find what || ([!^0013])([^0013])([!^0013])
 
|Find what || ([!^0013])([^0013])([!^0013])

Revision as of 09:05, 6 November 2017

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