User:Phlox/google translate strings notes

Sub LoopAddString03
 * 1) create an empty strings:NN article with Form:Interlingua
 * 2) use google translate to convert the page to the target language
 * 3) using word, paste plain text for the table.
 * 4) delete the leading text with wildcard search on, fm-* ~
 * 5) insert a line at the beginning of the list.
 * 6) run the following script to insert the parameter numbers

For i = 1 To 150 Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "^p" .Replacement.Text = "string/set|fm" + Str(i) .Forward = True .Wrap = wdFindAsk .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute With Selection.Find .Text = "^p" .Replacement.Text = "^p|fm" + Str(i) + "=" .Forward = True .Wrap = wdFindAsk .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With With Selection If .Find.Forward = True Then .Collapse Direction:=wdCollapseStart Else .Collapse Direction:=wdCollapseEnd End If           .Find.Execute Replace:=wdReplaceOne If .Find.Forward = True Then .Collapse Direction:=wdCollapseEnd Else .Collapse Direction:=wdCollapseStart End If           .Find.Execute End With Selection.HomeKey Unit:=wdLine Next i End Sub
 * 1) check to make sure sequence matches. Beware any messages that might have br's in them.  These throw off the sequence
 * 2) convert "fm " to "fm"
 * 3) pad with zeros. eg "|fm(??)=" -> "|fm0\1="