Issue 51569 - Faulty numbering alignment in RTL import
Summary: Faulty numbering alignment in RTL import
Status: CONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-05 10:34 UTC by alan
Modified: 2013-08-07 15:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The problem file (66.00 KB, application/vnd.ms-powerpoint)
2005-07-05 10:35 UTC, alan
no flags Details
Slide 3 as it appears in the PowerPoint slide show (22.66 KB, image/jpeg)
2005-07-05 10:36 UTC, alan
no flags Details
Slide 3 as it appears in the Impress slide show (27.11 KB, image/jpeg)
2005-07-05 10:37 UTC, alan
no flags Details
Has numbered text, both LTR and RTL (9.52 KB, application/vnd.oasis.opendocument.presentation)
2005-11-22 08:24 UTC, alan
no flags Details
normal view (105.00 KB, image/jpeg)
2005-11-22 08:26 UTC, alan
no flags Details
In slide show (25.41 KB, image/jpeg)
2005-11-22 08:27 UTC, alan
no flags Details
Changes handling of RTL numstrings, and adjusts X coordinate for RTL in PaintBullet (2.10 KB, patch)
2005-12-01 20:22 UTC, alan
no flags Details | Diff
Lots of numbering examples, both RTL and LTR (15.07 KB, application/vnd.oasis.opendocument.presentation)
2005-12-02 12:10 UTC, alan
no flags Details
patch (based on previous patch) for handling RTL numbering in the preview window (381 bytes, patch)
2005-12-02 12:26 UTC, alan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description alan 2005-07-05 10:34:01 UTC
The attached presentation was taken from Issue 39272. When running the slide
show in m109, the numbering in slide 3 is up against the right margin. This is
not the case in PowerPoint. See attached screenshots.
Comment 1 alan 2005-07-05 10:35:11 UTC
Created attachment 27708 [details]
The problem file
Comment 2 alan 2005-07-05 10:36:47 UTC
Created attachment 27709 [details]
Slide 3 as it appears in the PowerPoint slide show
Comment 3 alan 2005-07-05 10:37:40 UTC
Created attachment 27710 [details]
Slide 3 as it appears in the Impress slide show
Comment 4 christian.guenther 2005-07-05 15:09:06 UTC
One for me (cgu)
Comment 5 christian.guenther 2005-07-18 12:09:53 UTC
I can reproduce the bug.
It occures only in the running presentation therefore I send it to you.
Comment 6 alan 2005-11-22 08:23:07 UTC
ayaniger->thb :
This problem may be a general Impress problem, not only in PowerPoint import.
The attached presentation was created in Impress. It contains both LTR and RTL
text with numbering. In normal view, the alignment is fine, but in the slide
show, the alignment of RTL text is incorrect. See screenshots. Alignment of
bullets and numbering is problematic for RTL, regardless of which style of
bullets or numbering one uses.
Comment 7 alan 2005-11-22 08:24:47 UTC
Created attachment 31698 [details]
Has numbered text, both LTR and RTL
Comment 8 alan 2005-11-22 08:26:48 UTC
Created attachment 31699 [details]
normal view
Comment 9 alan 2005-11-22 08:27:33 UTC
Created attachment 31700 [details]
In slide show
Comment 10 alan 2005-12-01 20:15:29 UTC
ayaniger->thb:
I'm attaching a patch which fixes this bug. It treats a numstring in RTL mode as
if it were an LTR numstring, only it reverses the prefix and suffix when a flag
is set. It also position bullets better. Before, in RTL mode, bullets are
positioned a bit too far to the right of the text when compared with the same
bulleted text in LTR mode. After the patch, the distance is pretty much the same.
Comment 11 alan 2005-12-01 20:21:51 UTC
ayaniger->thb:
I'm attaching a patch which fixes this bug. It treats a numstring in RTL mode as
if it were an LTR numstring, only it reverses the prefix and suffix when a flag
is set. It also position bullets better. Before, in RTL mode, bullets are
positioned a bit too far to the right of the text when compared with the same
bulleted text in LTR mode. After the patch, the distance is pretty much the same.
Comment 12 alan 2005-12-01 20:22:58 UTC
Created attachment 31967 [details]
Changes handling of RTL numstrings, and adjusts X coordinate for RTL in PaintBullet
Comment 13 thb 2005-12-01 20:42:49 UTC
Setting mt on CC, he's the EditEngine guru.
Comment 14 thb 2005-12-01 20:44:40 UTC
@ayaniger: are you sure this is the right place to fix? I thought the bug only
appears during the slideshow, and not in the edit view?
Comment 15 alan 2005-12-02 12:08:28 UTC
ayaniger -> thb:
It is true that my patch avoids the problem, rather than fixing it. I spent a
good deal of time learning and playing with the code in
cppcanvas/source/mftrenderer, and in canvas/source/vcl, and I was unable to fix
the bug there. From my testing, this patch fixes the slideshow and does not
break anything in the edit view. But I'm certainly open to other suggestions. 
I'll attach a test file with examples of almost all numbering possibilites, in
both RTL and LTR, so that you and/or others can test.

There are problems with RTL bullets and numbering in Writer as well, such as
Issue 51510. While I haven't look at the code there yet, I would not be surpised
if following my strategy may solve that problem, too: namely, treat the
numbering string as LTR, and pass a flag to MakeNumString to flip the prefix and
suffix.

Comment 16 alan 2005-12-02 12:10:43 UTC
Created attachment 31982 [details]
Lots of numbering examples, both RTL and LTR
Comment 17 alan 2005-12-02 12:26:08 UTC
Created attachment 31984 [details]
patch (based on previous patch) for handling RTL numbering in the preview window
Comment 18 thb 2005-12-02 14:59:57 UTC
@mt: what's your opinion?
Comment 19 alan 2007-09-11 15:26:05 UTC
ayaniger->mt, thb:
Have you had a chance to look at this issue?
Comment 20 malte_timmermann 2007-10-02 15:04:15 UTC
mt->tl: Please handle this...
Comment 21 alan 2008-10-23 14:07:01 UTC
In 3.0.0, the appearance is better, though Impress still puts a greater distance
between the numbers and the text than Power Point does.

Also, the discrepancy between normal view and the slide show seems to have been
fixed.