Apache OpenOffice (AOO) Bugzilla – Issue 100940
Arabic text exceeds left margin when exporting to PDF
Last modified: 2017-05-20 11:15:31 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.
Cannot se this on my Windows XP. Which operating system do you work with?
Created attachment 61461 [details] Showing how Arabic text exceeds left margin
Created attachment 61462 [details] Showing how Arabic text exceeds left margin in the generated PDF file
Created attachment 61463 [details] Exceeding margin (worst case)
Created attachment 61464 [details] Exceeding margin (worst case)
Created attachment 61465 [details] Another problematic case
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.
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?
Created attachment 61476 [details] Temporary problem
Created attachment 61478 [details] Temporary problem (PDF)
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.
@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
>> 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?
> Ooops. Was a CrashReport submitted? Is the reportid known yet? Actually, I do not remember exactly. Anyhown, haven't received any confirmation mail yet.
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.
@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?
> 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
MRU->HI: could you please have a look at the remaining PDF problem? Thanks!
@HDU: Issue is reproducible with the font "Nazanin"
.
adjusting target
*** Issue 109653 has been marked as a duplicate of this issue. ***
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.
Reset assigne to the default "issues@openoffice.apache.org".