Bug 235870 - TVT34:TCT744: The English text is missed up with the Arabic text
Summary: TVT34:TCT744: The English text is missed up with the Arabic text
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP.monitoring (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alex Nan CLA
QA Contact:
URL: 744
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-05 12:21 EDT by CDE Administration CLA
Modified: 2010-06-03 15:09 EDT (History)
5 users (show)

See Also:


Attachments
4.501160.JPG (34.98 KB, image/jpeg)
2008-06-05 12:21 EDT, CDE Administration CLA
no flags Details
XPath dialog (27.57 KB, image/pjpeg)
2008-06-05 17:10 EDT, Alex Nan CLA
no flags Details
Screen capture on Win2k - string formatted with TextProcessor (24.66 KB, image/pjpeg)
2008-06-12 18:58 EDT, Alex Nan CLA
no flags Details
Screen capture on Win2k - plain string, no TextProcessor formatting (24.66 KB, image/pjpeg)
2008-06-12 18:59 EDT, Alex Nan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description CDE Administration CLA 2008-06-05 12:21:26 EDT
<response_by> Mostafa Ali at 2008.06.04.16.41.46 </response_by>
OS: Linux
Build date: 0603
Component/Function name: TPTP
Language: Arabic
Tester Name: Mostafa Ali

Steps to recreate the problem:
Import the test.symptom symptom catalog provided with the test suite following the steps:
-from the main menu select File->Import->Profiling and Logging->Symptom Catalog File, the Import Symptom Catalog File wizard opens
-select local host and browse for the test.symptom catalog on the local disk
-finish the wizard using default settings
In the symptom editor swith to the Details tab
select the XPath expression in the left tree (fig.15) .
Click the New Expression button on the right hand side pane, the New XPath expression dialog is displayed.

Problem description:
The English text is missed up with the Arabic text

<response_by> Karl Mittmann at 2008.06.05.09.38.40 </response_by>
This article was reassigned from Category:''TVT/Testing,Inbox''.
Comment 1 CDE Administration CLA 2008-06-05 12:21:31 EDT
Created attachment 103773 [details]
4.501160.JPG
Comment 2 CDE Administration CLA 2008-06-05 12:21:36 EDT
<cde:tctdetail>
Testcase: 4.501160
Project: WSW34
Component: Xfer - TPTP Log Analyzer/Monitor.UI
Priority: 2
Subject: The English text is missed up with the Arabic text
Article ID: 744
Originator: mali@eg.ibm.com
</cde:tctdetail>
Comment 3 Alex Nan CLA 2008-06-05 16:59:36 EDT
If I remove the TextProcessor.process(...) call on the description
_xPathAdd  = Create a new XPath expression using the Add button (* = any string)

the string will be formatted correctly when running with a BiDi language pack but then running with english only the description is displayed corrupted.
See the following attachment.
Comment 4 Alex Nan CLA 2008-06-05 17:10:25 EDT
Created attachment 103835 [details]
XPath dialog

Attaching XPath dialog screen shot while running with -nl iw, with no iw language pack.
Comment 5 Alex Nan CLA 2008-06-06 11:12:38 EDT
So what solution would you propose to handle both cases explained in comment #3?
Comment 6 CDE Administration CLA 2008-06-12 16:24:35 EDT

*** This bug has been marked as a duplicate of bug 236513 ***
Comment 7 Felipe Heidrich CLA 2008-06-12 17:57:15 EDT
This string a bit hard to see. I think it is something

CREATE A NEW xpath EXPRESSION USING THE ADD BUTTON (* = ANY STRING)

where uppercase == arabic letters:

Check if it works on windows.
Please provide the translated string.
Please provide a picture of the string displayed correctly.
Let me know if the textprocessor is doing anything to the string.
if I'm correct, this string start with a arabic word, thus this is not a dup of 236513
Comment 8 Alex Nan CLA 2008-06-12 18:10:06 EDT
The tests that I've done where on Windows, please see comment #3 and comment #4.
Comment 9 Alex Nan CLA 2008-06-12 18:13:47 EDT
It was Windows2k more precisely. I've seen differences between Win2k and WinXP in the way BiDi strings handled with TextProcessor are displayed. See bug 225071 for details.
Comment 10 Felipe Heidrich CLA 2008-06-12 18:17:17 EDT
(In reply to comment #8)
> The tests that I've done where on Windows, please see comment #3 and comment
> #4.

Did you install the NLPack-bidi ?
Can you tell if the reading order is correct there ? Can you attach the screenshot here ?
If you have the catalog please paste here the string.
Comment 11 Alex Nan CLA 2008-06-12 18:58:28 EDT
Created attachment 104781 [details]
Screen capture on Win2k - string formatted with TextProcessor

Attaching screen capture...
Comment 12 Alex Nan CLA 2008-06-12 18:59:34 EDT
Created attachment 104782 [details]
Screen capture on Win2k - plain string, no TextProcessor formatting

Attaching screen capture...
Comment 13 Alex Nan CLA 2008-06-12 19:04:32 EDT
english string:
_xPathAdd  = Create a new XPath expression using the Add button (* = any string)

arabic translation (utf-8):

_xPathAdd=\u062A\u0643\u0648\u064A\u0646 \u062A\u0639\u0628\u064A\u0631 XPath \u062C\u062F\u064A\u062F \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0636\u0627\u0641\u0629 (* \= \u0623\u064A\u0629 \u0645\u062C\u0645\u0648\u0639\u0629 \u062D\u0631\u0648\u0641)

Comment 14 Felipe Heidrich CLA 2008-06-13 11:18:22 EDT
(In reply to comment #12)
> Created an attachment (id=104782) [details]
> Screen capture on Win2k - plain string, no TextProcessor formatting
> Attaching screen capture...

This look correct to me, please have the arabic tester to verify.

The string does start with arabic word. You should be able to run in GTK and it should still work fine. Can you do that ?

Comment 15 Alex Nan CLA 2008-06-13 11:23:52 EDT
Look at the first screen capture, i.e. 4.5.1160.jpg, that's what he saw on Linux GTK.
Comment 16 Felipe Heidrich CLA 2008-06-13 13:56:44 EDT
(In reply to comment #15)
> Look at the first screen capture, i.e. 4.5.1160.jpg, that's what he saw on
> Linux GTK.

The picture in comment #1 (GTK) is exactly the same as the picture in comment #11 (Win2k - string formatted with TextProcessor).

The string in the picture in comment #1 is formatted with TextProcessor ?
Comment 17 Alex Nan CLA 2008-06-13 15:00:57 EDT
The picture in comment #1 (GTK) is what the tester found during testing. The code was using TextProcessor. I then patched the driver and removed the TextProcessor call which seem to have solved the problem on arabic but when running on hebrew with no  hebrew NL pack the english description was displayed corrupted. see Comment #4.
Comment 18 Felipe Heidrich CLA 2008-06-13 16:07:44 EDT
Alex, This is (hopefuly) my last post (at this point I'm convinced this is not a SWT bug).

The problem with TextProcessor API or the way you are using it.
I don't know anything about this API, so I can't help you here.
Comment 19 Alex Nan CLA 2008-06-24 18:06:41 EDT
No support will be provided for the Log and Trace Analyzer post 4.5.
Comment 20 Alex Nan CLA 2008-06-24 18:20:37 EDT
Closing.