Issue 100940 - Arabic text exceeds left margin when exporting to PDF
Summary: Arabic text exceeds left margin when exporting to PDF
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 3.1 RC1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 109653 (view as issue list)
Depends on:
Blocks: 96765
  Show dependency tree
 
Reported: 2009-04-08 07:48 UTC by hossein.ir
Modified: 2017-05-20 11:15 UTC (History)
5 users (show)

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


Attachments
Showing how Arabic text exceeds left margin (45.71 KB, image/png)
2009-04-08 18:16 UTC, hossein.ir
no flags Details
Showing how Arabic text exceeds left margin in the generated PDF file (36.75 KB, image/png)
2009-04-08 18:18 UTC, hossein.ir
no flags Details
Exceeding margin (worst case) (8.03 KB, application/vnd.oasis.opendocument.text)
2009-04-08 18:32 UTC, hossein.ir
no flags Details
Exceeding margin (worst case) (4.16 KB, image/png)
2009-04-08 18:36 UTC, hossein.ir
no flags Details
Another problematic case (4.33 KB, image/png)
2009-04-08 18:39 UTC, hossein.ir
no flags Details
Temporary problem (3.88 KB, image/png)
2009-04-09 11:25 UTC, hossein.ir
no flags Details
Temporary problem (PDF) (18.19 KB, application/pdf)
2009-04-09 11:28 UTC, hossein.ir
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description hossein.ir 2009-04-08 07:48:18 UTC
When we justify Arabic text, some characters fall out of the left margin. In
some situations, this is more than a word, but it is usually part of a character.
The problem is also exist for English text, but it's not that serious (issue 11298).
Please see this document:
http://www.openoffice.org/nonav/issues/showattachment.cgi/54655/justifyAddsDash.odt
Exported PDF file has more problems than the original ODT document.
Comment 1 michael.ruess 2009-04-08 16:16:19 UTC
Cannot se this on my Windows XP. Which operating system do you work with?
Comment 2 hossein.ir 2009-04-08 18:16:05 UTC
Created attachment 61461 [details]
Showing how Arabic text exceeds left margin
Comment 3 hossein.ir 2009-04-08 18:18:53 UTC
Created attachment 61462 [details]
Showing how Arabic text exceeds left margin in the generated PDF file
Comment 4 hossein.ir 2009-04-08 18:32:43 UTC
Created attachment 61463 [details]
Exceeding margin (worst case)
Comment 5 hossein.ir 2009-04-08 18:36:26 UTC
Created attachment 61464 [details]
Exceeding margin (worst case)
Comment 6 hossein.ir 2009-04-08 18:39:07 UTC
Created attachment 61465 [details]
Another problematic case
Comment 7 hossein.ir 2009-04-08 18:46:43 UTC
I use Windows XP. Please see attachments for more details.
margin-odt.PNG and margin-pdf.PNG show the problem.
Severe problem in exceeding-margin.odt is because of a non-existant glyph (Ha
with hamza above) in the used font, that corrupts the rendering.
I expect that OOo use an alternative font for this character (this happens right
now) and render the reminder of text correctly; But this not happens.
Comment 8 hennerdrewes 2009-04-09 10:18:53 UTC
I had no problems with the document, until I installed the original font (Nazanin). 

After font installation, the described effect is noticable.

Reformatting the document with this font, even caused OOo to crash.

Maybe related to issue 99863?
Comment 9 hossein.ir 2009-04-09 11:25:22 UTC
Created attachment 61476 [details]
Temporary problem
Comment 10 hossein.ir 2009-04-09 11:28:12 UTC
Created attachment 61478 [details]
Temporary problem  (PDF)
Comment 11 hossein.ir 2009-04-09 11:32:57 UTC
Please note that there are two situations. First with justifyAddsDash.odt that
causes slight exceed of the margin, and second the problem that is caused by a
non-existent glyph in exceeding-margin.odt.
The first one is not related to the font, and I had this even with Tahoma and
Arial font. For example, using Tahoma, character "mim" at the end of the line
slightly crosses the border.
There are some situations that a character exceeds the border, but after saving
and reopening the document, it is shown correctly.
In margin-temporary.pdf look at the end of the line before last.
Comment 12 hennerdrewes 2009-04-09 11:49:15 UTC
@h15n: Please file a separate issue for the 2nd problem. Could you also attach
the odt file? If you can reproduce the problem with a shorter text, please
attach a minimal bugdoc. Thanks
Comment 13 hdu@apache.org 2009-04-09 12:01:59 UTC
>> First with justifyAddsDash.odt that causes slight exceed of the margin, 

The probable cause is that justification is not performed for the ink-extents of a line, but for the 
logical-extents. This effect can also be seen in latin script, e.g. for slanted fonts (e.g. the 'f' in Zapfino). 
AFAIK all text layout processors justify the logical-extents instead of the ink-extents.

>> second the problem that is caused by a non-existent glyph in exceeding-margin.odt.
> Maybe related to issue 99863?

Yes.

> Reformatting the document with this font, even caused OOo to crash.

Ooops. Was a CrashReport submitted? Is the reportid known yet?


Comment 14 hennerdrewes 2009-04-09 12:36:56 UTC
> Ooops. Was a CrashReport submitted? Is the reportid known yet?

Actually, I do not remember exactly. Anyhown, haven't received any confirmation
mail yet. 
Comment 15 hossein.ir 2009-04-09 13:27:58 UTC
What about the 3rd problem? margin-temporary.pdf is the PDF output. I can attach
the ODT, but when saving/reloading the ODT file, this problem is not visible,
it's a temporary issue when typing the text, and also affects the PDF when
creating the PDF immediately.
I think some kind of torture testing can recreate it with Arial font, as I did.
Comment 16 hossein.ir 2009-04-09 13:57:13 UTC
@hdu: Considering the first problem, even if margin-odt.PNG is acceptable,
margin-pdf.PNG is not. Isn't it supposed to be WYSIWYG? Why the PDF output is
different from original preview on the screen?
Comment 17 hdu@apache.org 2009-04-09 14:16:09 UTC
> Isn't it supposed to be WYSIWYG?

Yes

> Why the PDF output is different from original preview on the screen?

That is a good question for the Writer guys when the problem can be reproduced by their QA counterparts
Comment 18 michael.ruess 2009-05-07 08:26:36 UTC
MRU->HI: could you please have a look at the remaining PDF problem? Thanks!
Comment 19 h.ilter 2009-06-26 14:40:03 UTC
@HDU: Issue is reproducible with the font "Nazanin"
Comment 20 hdu@apache.org 2009-06-29 08:08:38 UTC
.
Comment 21 hdu@apache.org 2009-11-30 14:49:30 UTC
adjusting target
Comment 22 eric.savary 2010-04-21 11:43:43 UTC
*** Issue 109653 has been marked as a duplicate of this issue. ***
Comment 23 Pedro Giffuni 2011-11-06 20:45:25 UTC
FWIW;

Apparently it's an issue with ICU.

Kahled Hosny did a patch for this issue in LibreOffice:

http://lists.freedesktop.org/archives/libreoffice/2011-January/005752.html

Maybe someone that can test the patch may want to get in touch with the
author, or at least the comments are useful to analyze the situation.
Comment 24 Marcus 2017-05-20 11:15:31 UTC
Reset assigne to the default "issues@openoffice.apache.org".