From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15326 Path: main.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: Re: Arabic-utf-8 (plus a sample) Date: Sat, 05 Jun 2004 16:51:34 -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> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1086476045 1261 80.91.224.253 (5 Jun 2004 22:54:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Jun 2004 22:54:05 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jun 06 00:53: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 1BWk32-0000Ia-00 for ; Sun, 06 Jun 2004 00:53:56 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 851BC10B46; Sun, 6 Jun 2004 00:53: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 D45C710ABB for ; Sun, 6 Jun 2004 00:51:36 +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 i55MpaL1001784 for ; Sat, 5 Jun 2004 16:51:36 -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 i55MpZe443818 for ; Sat, 5 Jun 2004 16:51:35 -0600 Original-To: ntg-context@ntg.nl In-Reply-To: <1086472098.5707.36.camel@tascomputer.home> 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:15326 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15326 On Sat, 05 Jun 2004 23:48:18 +0200, Thomas A. Schmitz wrote: > 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