1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26:
| program txtconv; {$APPTYPE CONSOLE} uses SysUtils, Classes; var aList: TStringList; i: Integer; begin aList := TStringList.Create; try aList.LoadFromFile(ParamStr(1)); for i := 0 to aList.Count - 1 do begin aList[i] := StringReplace(aList[i],'ä','ae',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'Ä','Ae',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'ö','oe',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'Ö','Oe',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'ü','ue',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'Ü','Ue',[rfReplaceAll]); aList[i] := StringReplace(aList[i],'ß','ss',[rfReplaceAll]); end; aList.SaveToFile(ParamStr(2)); finally aList.Free; end; end. |