On Sat, 05 Jun 2004 23:48:18 +0200, Thomas A. Schmitz
Just a quick reply (it's bedtime over here): there may be 2 problems.
Ok, get some sleep;-) Anyhow, I fixed the line break (is the space between tilda and `s' correct?) ============================== $_ =~ s/\x{0627}/\x{0041}/esg; #this is the actual conversion ============================== did not work though:-( My perl version is v5.6.1; I went to the ActivePerl website and the only version they had is v5.6.1.638; so from perl.org I found Indigoperl and switched;-) This solves part of the problem:-) Now I get
perl utf2tex.pl unicode-utf.txt syntax error at utf2tex.pl line 8, near ");" Execution of utf2tex.pl aborted due to compilation errors.
line 8 is while (<>); { #this opens the file for reading Here is the whole file once again: ================================== #!/usr/bin/perl -w use strict; use open ':utf8'; open(NEW,">new.tex"); #opens file to print out the result while (<>); { #this opens the file for reading $_ =~ s/\x{0627}/\x{0041}/esg; #this is the actual conversion print NEW "$_"; #and this writes the result into file "new.tex" } close(NEW); ==================================
the usage is right (I'm not a windows person,
If WinEdt (and some other things) worked under WINE, I would not be a windows person either:-( And will attempt yet another switch (I've lost count) to Linux-KDE sometime this Summer... Thnx a million Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523