Subject: | |
From: | |
Reply To: | |
Date: | Sat, 1 May 2010 21:50:20 +0900 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On May 1, 2010, at 9:18 PM, Hamid Haji wrote:
> On Sat, 1 May 2010 20:38:56 +0900, Kino <[log in to unmask]> wrote:
>
>> On May 1, 2010, at 6:00 PM, Hamid Haji wrote:
>>
>>> On 29.04.2010, at 15:37, Kino wrote:
> [...]
>> Anyway, if you have Xcode Tools installed, ...
>>
>> 1. Download Encode-Detect-1.01.tar.gz from
>> <http://search.cpan.org/~jgmyers/Encode-Detect-1.01/>;
>>
>> 2. Unzip it;
>>
>> 3. Open Terminal and change the current directory to "Encode-Detect-1.01";
>>
>> 4. Run the following commands one by one:
>>
>> perl Makefile.PL
>> make
>> make test
>> sudo make install
> [...]
>
> Did all that and ran the macro on an Arabic (Windows) test file of 20 pages.
> The conversion is instantaneous.
Strange. Do you mean, with Encode::Detect installed, OpenTextFiles macro translated a Windows Arabic file properly? I got
Perl reported an error:
Unknown encoding: x-mac-cyrillic at /Library/Perl/5.10.0/darwin-thread-multi-2level/Encode/Detect.pm line 54.
which means that the detector thought my test file to be encoded in MacCyrillic and Encode module did not understand "x-mac-cyrillic". The file in question is "Arabic-win.txt" in
<http://www2.odn.ne.jp/alt-quinon/temp/arabicfiles.zip>
Perhaps hasn't your test file already converted into UTF-8?
Kino
|
|
|