|
A collection of useful macros for translators.
-
Highlight no matches in Logoport segmented text to make
proofreading easier
Problem:
When working in Trados or Logoport in a project with high
leverage and a few not matches it might be unnecessary to
review fuzzies and 100%.
Solution:
By recording this macro you will be able to highlight only no
matches. Start Word and open Visual Basic for
Applications (VBA) by pressing Alt+F8 or clicking Tools
> Macro > Macros. Type a macro name in the box, say,
HighlightNoMatches, and click Create.
The Microsoft Visual Basic Editor will appear with the
following lines:
Sub HighlightNoMatches()
'
' HighlightNoMatches Macro
' Macro created 10/05/2007 by User
'
End Sub
Select everything, delete it and paste the following:
Sub HighlightNoMatches()
'
' HighlightNoMatches Macro
' Macro Created Fabio Salsi on 10/08/2007
' This macro will highlight no matches in a logoport segmented
file
'
Selection.HomeKey Unit:=wdStory
Options.DefaultHighlightColorIndex = wdBrightGreen
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Highlight = True
With Selection.Find
.Text = ")=0%("
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Click File > Close and return to Microsoft Word.
To run the macro press ALT-F8
and select the macro name from the list.
|