From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15329 Path: main.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: Re: Re[2]: Arabic-utf-8 (plus a sample) Date: Sat, 05 Jun 2004 17:31:49 -0600 Organization: Colorado State University Sender: ntg-context-admin@ntg.nl Message-ID: References: <1086468099.5707.26.camel@tascomputer.home> <1086472098.5707.36.camel@tascomputer.home> <1579878055.20040606011556@iol.it> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1086478442 4802 80.91.224.253 (5 Jun 2004 23:34:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Jun 2004 23:34:02 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jun 06 01:33:56 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BWkfk-0001KU-00 for ; Sun, 06 Jun 2004 01:33:56 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 52CA410B46; Sun, 6 Jun 2004 01:33:52 +0200 (MEST) Original-Received: from eagle.acns.ColoState.EDU (eagle.acns.colostate.edu [129.82.100.90]) by ref.ntg.nl (Postfix) with ESMTP id 9B9E710B21 for ; Sun, 6 Jun 2004 01:31:51 +0200 (MEST) Original-Received: from lamar.colostate.edu (lamar.acns.colostate.edu [129.82.100.75]) by eagle.acns.ColoState.EDU (AIX5.1/8.11.6p2/8.11.0) with ESMTP id i55NVoL412536 for ; Sat, 5 Jun 2004 17:31:50 -0600 Original-Received: from IHAMID (ihamid.libarts.colostate.edu [129.82.187.166]) by lamar.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id i55NVoe443786 for ; Sat, 5 Jun 2004 17:31:50 -0600 Original-To: ntg-context@ntg.nl In-Reply-To: <1579878055.20040606011556@iol.it> User-Agent: Opera7.23/Win32 M2 build 3227 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15329 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15329 On Sun, 6 Jun 2004 01:15:56 +0200, Giuseppe Bilotta wrote: > My take: try the following (should work even with ActiveState > 5.6) > > === > #!/usr/bin/perl > > use strict; > #D comment the following, I think we can do without > # use open ':utf8'; > > open(NEW,">new.tex"); #opens file to print out the result > > while (<>); { #this opens the file for reading > > $_ =~ s/\x06\x27/A/esg; #this is the actual conversion > > print NEW "$_"; #and this writes the result into file "new.tex" > } > > close(NEW); > === Hi Giuseppe (Is it not way past your bedtime;->), Here's my result: > perl utf2tex2.pl < unicode-utf.txt syntax error at utf2tex2.pl line 9, near ");" Bareword "A" not allowed while "strict subs" in use at utf2tex2.pl line 11. Execution of utf2tex2.pl aborted due to compilation errors. please advise;-> best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523