>From APL to J: in Unicode, translate each APL character
to J primitive and raze.
>From J to APL: do word formation, translate each token
to APL character and raze.
tr=: 2 : '(i.~n,~.) { m,~.'
; (;:'$i.') tr (<"0'pi') <"0 'pi13'
$i.13
; (<"0'pi') tr (;:'$i.') ;: '$i.13'
pi13
--- bill lam <[EMAIL PROTECTED]> wrote:
> In J601 it is possible to use regex to translate APL characters to J's native
> primitive in ascii. Just create a verb APL2J so that rho <-> $ uparrow <-> {.
> and replace all occurrence outside quoted string will more or less get the
> job done,
>
> (1!:100) APL2J 1!:1 <myscript
>
> You may even setup project manager to load+translate+execute automatically.
>
> In FIF there is a pattern to search for the context 'outside quoted string',
> I
> guess most people know how to do it, but only not enough incentive to
> actually
> get it done.
>
> PS. you also need an IME to input APL characters from keyboard.
>
> --
> regards,
> bill
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm