Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 140774

Summary: Bidi3.2: Arabic characters inside charts are neither shaped nor ordered
Product: z_Archived Reporter: Ahmed Farrag <afarrag>
Component: BIRTAssignee: Zhiqiang Qian <zqian>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: aboualy, camle, clin, kitlo, Lina.Kemmel, mfadl, steven.wasleski
Version: unspecified   
Target Milestone: 2.1.1   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Bug Depends on: 136472    
Bug Blocks:    
Attachments:
Description Flags
screen shot showing the correct display of chart title
none
screen shot showing corrupted Arabic text.
none
SVG file that shows the chart none

Description Ahmed Farrag CLA 2006-05-09 08:01:14 EDT
OS: RHEL 4.0
Build id:I20060428-1315

Description:
Arabic characters inside charts are neither shaped nor ordered.

Steps to recreate the problem

1)Create a new report project.
2)Create a new blank report.
3)Insert a chart inside the newly created report.
4)Double click on the chart, select "Format chart" tab and give the chart title an Arabic name (use the following key sequence to write Arabic name similar to the one in the attached figure, change your keyboard layer to Arabic and type "vsl fdhkn").
5)Click finish.

Expected output:

All Arabic characters inside the chart should be displayed properly in the layout and preview windows, Arabic characters should be ordered and shaped.
The attached figure shows the correct display of the chart title.

Actual output:

Arabic characters are not ordered or shaped, see the attached figure for more illustration.
Comment 1 Ahmed Farrag CLA 2006-05-09 08:02:09 EDT
Created attachment 40708 [details]
screen shot showing the correct display of chart title
Comment 2 Ahmed Farrag CLA 2006-05-09 08:02:57 EDT
Created attachment 40710 [details]
screen shot showing corrupted Arabic text.
Comment 3 David Michonneau CLA 2006-05-10 09:37:56 EDT
Investigation shows it only happens in the SVG renderer. Reassigning to Sheldon.
Comment 4 David Michonneau CLA 2006-05-10 09:38:32 EDT
Investigation shows it only happens in the SVG renderer. Reassigning to Sheldon.
Comment 5 David Michonneau CLA 2006-05-10 09:40:41 EDT
Actually the submitter's screenshot shows it happens in the layout view, but I 
haven't been able to reproduce it with this example, for me it displays the 
right string, and also when previewed in PNG.
Comment 6 Sheldon Lee-Loy CLA 2006-05-10 09:55:16 EDT
It should be noted if the adobe svg viewer is used to view SVG charts the end
user needs to install the specific svg viewer language plugin.  Also note that
the adobe svg viewer only supports certain languages (refer to
http://www.adobe.com/svg/viewer/install/mainframed.html).  Note that the adobe
viewer does not support arabic.


I will see what happens when using firefox 1.5.
Comment 7 Ahmed Farrag CLA 2006-05-10 10:18:55 EDT
(In reply to comment #5)
> Actually the submitter's screenshot shows it happens in the layout view, but I 
> haven't been able to reproduce it with this example, for me it displays the 
> right string, and also when previewed in PNG.

Indeed, This problem occurs in the layout view. When choosing to preview the chart in JPG format, the arabic text was displayed correctly (ordered and shaped).
Comment 8 David Michonneau CLA 2006-05-11 01:15:28 EDT
For the layout view problem, I see you're running on Linux. Have you been able 
to display arabic text correctly in other parts of the reports like in labels 
for instance? That might be some SWT arabic font issue with Linux?
Comment 9 Ahmed Farrag CLA 2006-05-11 03:29:08 EDT
(In reply to comment #8)

>Any Arabic text written inside the chart is not displayed correctly (not ordered or shaped), however it is displayed correctly in all other parts inside the report and outside the chart.
Comment 10 Sheldon Lee-Loy CLA 2006-05-11 16:38:38 EDT
The SVG version is correct.  The text is ordered correctly.  

Using Firefox 1.5 the text is correct.

Using IE+Adobe SVG Viewer 3.x the text is ordered correctly however the characters are not joined. Is this what you mean by shaped?  I believe this is a limitation to the Adobe SVG viewer.  

The contents of the svg file is correct.  I will attach a sample svg file that illustrates this.
Comment 11 Sheldon Lee-Loy CLA 2006-05-11 16:39:26 EDT
Created attachment 41228 [details]
SVG file that shows the chart
Comment 12 Sheldon Lee-Loy CLA 2006-05-11 16:40:19 EDT
Reassigning to David since this may be a problem with the SWT renderer.
Comment 13 David Michonneau CLA 2006-05-13 03:02:58 EDT
Probably a linux issue with SWT.
Comment 14 Zhiqiang Qian CLA 2006-05-24 23:42:24 EDT

*** This bug has been marked as a duplicate of 136472 ***
Comment 15 Ahmed Farrag CLA 2006-05-28 12:17:46 EDT
Keeping as a seperate bug, we are expecting a fix for this defect in R3.2
Comment 16 Steven Wasleski CLA 2006-05-30 09:04:14 EDT
Ahmed, if this bug really is a duplicate of bug 136472, it does not make any sense to reopen it.

Zhiqiang, if you are certain this is a dup of bug 136472, please re-resolve it as such.
Comment 17 Zhiqiang Qian CLA 2006-05-30 22:07:20 EDT

*** This bug has been marked as a duplicate of 136472 ***
Comment 18 Cheng-Yee Lin CLA 2006-06-06 14:30:16 EDT
The platform team has decided to defer 136372 until the next release due to the potential risk.
Comment 19 Wenfeng Li CLA 2006-06-06 23:30:37 EDT
change milestone to 2.1.1 since this is not fixed by platform team in 3.2 yet.
Comment 20 Ahmed Farrag CLA 2006-06-11 05:37:01 EDT
(In reply to comment #18)
> The platform team has decided to defer 136372 until the next release due to the
> potential risk.
> 

Cheng,

I think you mean defect #136472 not 136372
Comment 21 Ahmed Farrag CLA 2006-08-27 07:48:11 EDT
This bug is no longer reproducible on M20060823-1200 build of eclipse.