OK, got it. Delete the previous patch and add this one.
It was used on Paragraph.cpp, in the function asString. It'd show up when
asking to paste things from CutAndPaste.cpp, and would reverse paranthesis.
New and lighter patch. A single word and a single letter are removed.
Doesn't affect regular paranthesis cutNpaste, checked it out.
Do commit, it's very safe.

On 5/14/07, Elazar Leibovich <[EMAIL PROTECTED]> wrote:

It's definitely not a non standard. I'll try to find the place where the
paste function uses getUChar and replace it with getChar

On 5/14/07, Dov Feldstern <[EMAIL PROTECTED]> wrote:
>
> Dov Feldstern wrote:
> > Elazar Leibovich wrote:
> >> The attached patch disable Paragraph::getUChar functionality of
> >> inversing the paranthesis. I grep'ed for the function and it seems to
> >> be used only by math inset's pasting getPlainText mechanism, and
> >> indeed it has no effect on regular paranthesis.
> >> Please have a look at this very simple patch and apply it if
> possible.
> >> If you're convinced the parenthesis inversion is unnecessary, feel
> >> free to remove it altogether.
> >> Thanks
> >>
> >
> > Hi Elazar ---
> >
> > I'm taking a look at your pacth, but I just want to understand what
> > exactly we're talking about. Could you elaborate a bit on the bug this
>
> > is meant to fix: where are you copying from? Where are you pasting to
> > (*into* a math inset?)?
> >
> > Thanks!
> > Dov
> >
>
> Also:
>
>   *) I don't see any function named getPlainText --- where is it?
>   *) getUChar appears to be used in output_plaintext.cpp --- and indeed,
> your patch affects the plaintext output of a Hebrew document.
>   *) there are two functions which exist: getChar and getUChar --- the
> sole difference between them being that getUChar reverses parentheses
> --- so I don't think that we want to get rid of that! If you think
> there's a place that getUChar is being used, and parentheses should not
> be reversed, then perhaps we could use getChar there instead?
>
> Finally, I just want to point out that as far as I know, the issue of
> parentheses in RTL is complicated, and I'm not sure that there is one
> correct standard --- I think different programs (perhaps also different
> platforms) have different conventions for dealing with this. So I would
> be careful about tampering with this.
>
> Again, I'd like to here about the exact situation in which this bug
> occurs, but chances are that I will claim that it's just an issue of no
> clear standard existing...
>
> Dov
>
>

Index: Paragraph.cpp
===================================================================
--- Paragraph.cpp	(revision 18129)
+++ Paragraph.cpp	(working copy)
@@ -2391,7 +2391,7 @@
 		os << params().labelString() << ' ';
 
 	for (pos_type i = beg; i < end; ++i) {
-		value_type const c = getUChar(buffer.params(), i);
+		value_type const c = getChar( i);
 		if (isPrintable(c))
 			os.put(c);
 		else if (c == META_INSET)

Reply via email to