Chris Nandor <[EMAIL PROTECTED]> writes:
> At 23:15 +0000 02.09.2001, John Delacour wrote:
> >I've just discovered Andreas Marcel Riechert's TEC.pm which uses Apple
> >Events to the TEC osax to convert between character sets, eg:
> >
I am surprised that anybody is using this Module. Even I forgot that
it exists ;-)
> >1. Why in the above script and simliar scripts using different modules, is it
> >necessary for me to repeat Mac::TEC in the third line when the module is
> >already explicitly included?
Because I decided to do it this way. Maybe a bad coding-style, but its
just my way of doing things. Usually I don't export anything.
> Apparently, Mac::TEC does not export ConvertText. It needs to export it
> for you to be able to access it without the full name. See the Exporter
> docs for more information.
Right.
>
> >3. Would it be possible with pure MacPerl, without the intermediary of
> >an osax and Apple Events to perform the same operations? I presume --
> >nay I trust to HEAVEN! -- that the Text Encoding Converter and all
> >Apple's other delaying ploys are redundant in MacOS X, but while I save
> >up for my G4 and read all the OSX bug reports.....
>
> I don't know. In theory, yes, it can be done, but I have never looked at
> it. It might be a simple matter of making a little XS glue for it.
When I wrote TEC.pm I was playing around with AppleEvents and OSAX --
with some help from Chris Nandor I was able to understand the whole stuff.
As a result I wrote (the basically unsupported) TEC.pm.
I see some need for a new TEC.pm in our "Brave New Unicode World", but
definitly that should not be done by using an OSAX. IMHO, it should be
a XS. If someone is interested in writing a new TEC.pm or changing the
existing stuff, feel free to do it. If you need the name "TEC.pm" for
your module, let me know it, just to avoid having equally named modules
by different authors.
Andreas Marcel Riechert
PS: If nobody want to work on a new TEC.pm I may dive into it --at least
for MacPerl 5.6 -- but I cannot make any promises at the moment.