Bug 107252 - Japanese hanging punctuation missing in pdf export when text is set to vertical
Summary: Japanese hanging punctuation missing in pdf export when text is set to vertical
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-18 23:11 UTC by eddymcv
Modified: 2017-04-19 10:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ODF file with hanging punctuation (assuming Source Han Sans font is installed) (27.55 KB, application/vnd.oasis.opendocument.text)
2017-04-18 23:11 UTC, eddymcv
Details
my output (143.05 KB, application/pdf)
2017-04-19 08:04 UTC, Xisco Faulí
Details
5.3.2.2 vs 5.4.0.0.alpha0+ (125.91 KB, image/png)
2017-04-19 10:15 UTC, Hiunn-hué
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eddymcv 2017-04-18 23:11:01 UTC
Created attachment 132671 [details]
ODF file with hanging punctuation (assuming Source Han Sans font is installed)

Hanging punctuation does not appear in the PDF exported by LibreOffice from a document with vertical right-to-left Japanese text. Setting the set horizontally does not cause this bug to occur.

Steps to reproduce:
1. Write or paste a Japanese text in a new LibreOffice document.
2. Assuming East Asian Language support is enabled, set the text to vertical going from right to left through Page -> Format -> Text direction.
3. Under Page -> Paragraph -> Asian Typography (again requires East Asian Language Support), check "Allow hanging punctuation"
(If no punctuation is hanging, fiddle with the margins so that at least one period, comma, etc is hanging)
4. Export document to PDF

Expected behavior:
PDF is a faithful reproduction of the ODF file.

Actual behavior:
Hanging punctuation is cut off from the document.

Note:
This behavior may be because hanging punctuation in a vertical document has about as much as a full-width space between it and the character it precedes as opposed to how it is when the text is horizontal. 
ex: 
Horizontal:
けさ早く、
Vertical (note there is no actual space character in the ODF file):
け
さ
早
く

、
Comment 1 Xisco Faulí 2017-04-19 08:04:36 UTC
Hello,

Thank you for reporting the bug.
Could you please attach the output pdf document. I can't reproduce it in

Version: 5.4.0.0.alpha0+
Build ID: 7635e0c1c7f821a1081f8e3868f641ae74a172d6
CPU threads: 4; OS: Linux 4.8; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 2 Xisco Faulí 2017-04-19 08:04:54 UTC
Created attachment 132677 [details]
my output
Comment 3 Hiunn-hué 2017-04-19 10:15:39 UTC
Created attachment 132681 [details]
5.3.2.2 vs 5.4.0.0.alpha0+

It seems to be resolved on 5.4.0.0.alpha0+

Please see attached screenshot.


Version: 5.3.2.2
Build ID: 1:5.3.2~rc2-0ubuntu1~xenial0
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: zh-TW (zh_TW.UTF-8); Calc: group

Version: 5.4.0.0.alpha0+
Build ID: 04edc5c796c1b96e5228d0c1fcf73bcf52465b66
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-15_03:25:45
Locale: zh-TW (zh_TW.UTF-8); Calc: group
Comment 4 Xisco Faulí 2017-04-19 10:20:53 UTC
Closing as RESOLVED WORKSFORME