Re: please type (x+(y-z)) !!!

From: r coyne <duckingsnofair_at_yahoo.com>
Date: Thu Apr 27 2006 - 03:01:39 CEST

I don't imagine I'll be able to help, but you might
make it easier for someone else to if you fleshed out
the context of the problem. What are you trying to
_do_ while in right-to-left mode? If you're just
typing, by hand, passive characters on a page for
visual display, in typical wordprocessor fashion, then
you can simply choose which kind of parenthesis to
type, i.e., type the key that comes out looking the
way you want it to. So I'd guess the idea is that
these expressions are supposed to have some working
"mathematical" meaning that some program understands
and can manipulate. That raises the question of what
order the _math_, as opposed to typing, gets read in.
Judging from your example, we aren't talking about,
say, the difference of convention between algebraists
and everyone else about which order functions get
applied in. And even in your example, I'm not sure
what it means. In the inner parentheses, is z to be
subtracted from y or vice versa?

I suspect that this may all be "a feature, not a bug."
 Suppose (1) the assumption is that the mathematical
stuff, too, is to be read in "reverse" order, right to
left; (2) the next routine downstream can be told this
easily, i.e. that the input stream for its math
operations runs from right to left; but (3) its
parsing and mathematical routines are probably
hard-coded with the meanings of special characters
like parentheses, such that "(" means
starting-something-new, push on the stack, etc., and
")" means end-of-whatever/pop, and these cannot be
easily interchanged. Then the "(" has to go on
whichever side the expression begins on, which in
right-to-left mode would be the right side, so
everything has to look backwards.

Just guessing -- let's hope it inspires someone who
actually knows something about this.

--- Habib Seifzadeh <habibseifzadeh@yahoo.com> wrote:

>
> Hi all,
> I have a problem with right to left mode of abiword
> and openoffice writer:
> In right to left mode, opening and closing
> parenthesis
> is reversed. please try it by typing (x+(y-z)) and
> see
> what i'm saying.
> Do you have any solution?
> Even, If you introduce the source file of right to
> left mode, I can resolve my problem by modifying
> the
> code.
> Thank you so much,
> Habib
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abiword-user-request@abisource.com with the word
> unsubscribe in the message body.
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
Received on Thu Apr 27 03:01:22 2006

This archive was generated by hypermail 2.1.8 : Thu Apr 27 2006 - 03:01:22 CEST