[upstream] Arabic text gets deformed when creating a PDF in LibreOffice Writer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LibreOffice |
Confirmed
|
Medium
|
|||
libreoffice (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Creating a PDF from a document written in the Arabic script deforms the textual content of the document, although it looks fine on the screen.
For example, see the attached PDF created with Writer, where the example sentence "اشترى بلال خمسة آلاف كتاب وَأَنَا اشْتَرَيْتُهَا مِنْهُ" looks as it should, but when you view it with any PDF reader, such as evince, copying the text deforms most of the words. Some characters are clearly visible but cannot be selected or searched (such as ى at the end of the first word اشترى). If I search for the second word بلال, evince tells me there are no matches in the document. The same happens when converting the file with pdftotext, which produces the following output:
اشتر
للا مسة لفا كتاب وَأَنَا ْ
ه
اشت َ َريْتُهَا ِ
من ْ ُ
Here only two of the seven words are intact, the rest are garbled in one way or another. If the text is in Latin script, both evince and pdftotext behave as expected, meaning that the textual content is transferred correctly from Writer to the PDF.
Description: Ubuntu 17.10
Release: 17.10
libreoffice-writer:
Installed: 1:5.4.6-
Candidate: 1:5.4.6-
Version table:
*** 1:5.4.6-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: libreoffice-writer 1:5.4.6-
ProcVersionSign
Uname: Linux 4.13.0-41-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon May 21 15:18:41 2018
InstallationDate: Installed on 2017-02-13 (462 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fi_FI.UTF-8
SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: Upgraded to artful on 2017-11-05 (196 days ago)
Changed in df-libreoffice: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in df-libreoffice: | |
status: | New → Confirmed |
summary: |
- Arabic text gets deformed when creating a PDF in LibreOffice Writer + [upstream] Arabic text gets deformed when creating a PDF in LibreOffice + Writer |
Sorry for the lack of feedback until now, Miikka.
Are you able to test whether the same thing works correctly in other word processing software, such as abiword or MS Word ?