For consistency, I would argue that:
grep "<--RTLword2--- <--RTLword1---" <--RTLWord3
... is the right answer.
The quoted portion consisting of RTLword1 and RTLword2 is a search string
that we want to search the way its written in a text, <--RTLWord3, so the
whole quotation should be RTL. If I didn't care about the order of
RTLword1 and RTLword2, I guess I would resort to using the OR operator:
grep "<--RTLword2-- | <--RTLword1--" <--RTLWord3
... and hope that that gave me a result set close enough to what I wanted.
So, with regard to your question about arguments to commands, there is no
change from current implementations whatsoever. That makes things easier
to implement, doesn't it? ;-) But, seriously, it also means that a
logical convention is maintained in its simple current form. I would
strongly argue that simpler implementations are going to be much better,
and less confusing, than complicated ones.
As to the second question which seems to be implied by your use of "grep" which is:
"How would internationalized grep and regular expression parsing work?"
... surely that's a HUGE question which hopefully somebody is working on?
With regard to a console shell implementation, AT LEAST:
> echo "*<--RTLfilenameprefix---"
AND:
> ls -l "???<--RTLfilenameprefix---"
... should work as expected.
Since characters in the strings are stored in logical order, I assume that
"ls" would work with no code changes necessary. It's only the on-screen
display of the strings in RTL that needs to be implemented.
Hmmm... I have to think about this some more: maybe "*" and "?" need to be
treated by the shell as not having any intrinsic directionality, so they
would "inherit" the directionality of the surrounding non-wild-carded
portions of the string. In the absence of Unicode directional override
characters, this would work pretty easily ... In the presence of
directional overrides, are the Unicode BIDI rules sufficient for dealing
with this?
On Thu, 3 Oct 2002, Maiorana, Jason wrote:
>
> > /
> > /home
> > /home/<--RTLdirname--/
> > /home/<--RTLdirname--/<--RTLsubdir1name--/
> > /home/<--RTLdirname--/<--RTLsubdir2name--/
> >
> > This way, you show a directory tree of any complexity with any
> > mixture of UTF-8 file names in any language.
>
> what about arguments to commands?
>
> how would this show up:
>
> grep "<--RTLword1--- <--RTLword2---" <--RTLWord3
> OR
> grep "<--RTLword2--- <--RTLword1---" <--RTLWord3
> OR
> grep <--RTLWord3 "<--RTLword2--- <--RTLword1---"
> OR
> <--RTLWord3 "<--RTLword2--- <--RTLword1---" grep
>
>
> --
> Linux-UTF8: i18n of Linux on all levels
> Archive: http://mail.nl.linux.org/linux-utf8/
>
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/