On Tue, 08 Aug 2000, Roman M . Parparov wrote:
> It's not only the browser in the end.
> It'd expand the capabilities to any output device presumed LTR.
>
> > It sounds like a hack. Should Perl support such hacks in the core?
> >
> > Is this sofisticated enough, or do we need something more low-level?
> >
> > $ltr = join '', reverse split /($sequence|.)/, $rtl;
> >
> It won't work with a mixed text, and there the pain in the ass begins.
> Numbers, Latin char strings, here we go.
>
To explain for those who haven't handled a RTL language, numbers look
the same as in LTR for most RTL languages, and I believe numerical
prefixes also appear the same.
The number is 1,358.
alrqm ?w 1,358.
Or, to compensate for a LTR display,
.1,358 w? mqrla
Also,
.-1,358% w? roala mqrla
I've never done anything but the simplest math in Arabic, so I don't
know if evaluation order is reversed.
x = 4 / 8;
1/2? Or 2?
This has the potential for opening up a huge batch of problems (but
making a lot of people happy.)
The more I think about, the more I'd like to see at least hooks for
handling this. After all, in some cases it's more than just a scalar
reverse. Formatting, Text::Wrap, etc, for instance, has to wrap the
other way.
Perhaps a sub-list to hash out how we can do this without bloating Perl
too much?
--
Bryan C. Warnock
([EMAIL PROTECTED])