var s, next_word, next_word_rus, t: string; i: byte; currLine: integer;
begin t:=''; ER:=TStringList.Create; ER.LoadFromFile('voc.txt'); For currLine := 0 To Pred(memo1.Lines.Count) Do Begin s := memo1.Lines.Strings[currLine]; i := 1; next_word := ''; while i <= length(s) do begin if upcase(s[i]) in ['A'..'Z'] then begin next_word := next_word + s[i]; inc(i) end else begin if next_word <> ''then next_word_rus:=ER.Values[next_word]; if next_word_rus='' then next_word_rus:=next_word;