Bug 160080 - Bad punctuation compression for CJK texts with vertical text direction
Summary: Bad punctuation compression for CJK texts with vertical text direction
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CJK
  Show dependency treegraph
 
Reported: 2024-03-07 07:25 UTC by Chih-hao Su
Modified: 2024-03-10 13:45 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
I.Ming font (24.44 MB, font/ttf)
2024-03-07 07:29 UTC, Chih-hao Su
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chih-hao Su 2024-03-07 07:25:37 UTC
Description:
This is a bug about the typesetting engine. I cannot find any suitable “Component”, so I just selected "LibreOffice".

This is a bug for all LibreOffice application (writer, impress, draw,...)

======

1. When one line is nearly full and the typesetting engine wants to compress one line, the compression between other symbols and “「”(open quote), “」”(closed quote) is bad

https://postimg.cc/Pp7jhn23

The compression should move open quotes further down and move closed quotes more upward to make the quotes getting close to quoted texts. But the quotes is too far away from the quoted texts. The open quote and the closed quote at the second line even merged into one.

https://postimg.cc/QFSHj96p

BTW, with horizontal text direction, it seems OK.

https://postimg.cc/bGyTCt5W


2. When one line is loose, “(” and “)” is too away from quoted texts.

https://postimg.cc/f3MVY7Pt

Also, with horizontal text direction, it seems OK.

https://postimg.cc/NKsyH7Sy

Steps to Reproduce:
1. Go to “Options -> Languages and Locales -> Asian Layout”, select “Character Spacing -> Compress punctuation only”, press “OK”.
2. Download and install I.Ming font.
3. Set format: A5 paper, I.Ming font, 22pt font-size, “Right-to-left (vertical)” text direction.
4. Type test texts:
```
漢字漢字漢字、漢字漢字「漢字」漢字漢字漢字漢字。漢字漢字、漢字「漢字漢字」「漢字漢字」。漢字、漢字。

漢字漢字字漢字(漢字)字漢字。
```

Actual Results:
See “Description”。

Expected Results:
See “Description”。


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: en-GB
Calc: CL threaded
Comment 1 Chih-hao Su 2024-03-07 07:29:50 UTC
Created attachment 193012 [details]
I.Ming font