Bug 167873 - Line break typos in Chinese due to Chinese quotation marks
Summary: Line break typos in Chinese due to Chinese quotation marks
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Jonathan Clark
URL: https://ask.libreoffice.org/t/writer/...
Whiteboard: target:26.2.0 target:25.8.2 target:25...
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Word-Line-Break
  Show dependency treegraph
 
Reported: 2025-08-09 01:09 UTC by Ember Plume
Modified: 2025-09-15 10:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple reproducer (7.13 KB, application/vnd.oasis.opendocument.text)
2025-09-12 17:58 UTC, Jonathan Clark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ember Plume 2025-08-09 01:09:47 UTC
Description:
The paragraph is automatically converted to “XXX-X” at “XXXX” (the - is a line break), and there is still enough space in the text after this line to accommodate the entire quote containing the back quotation marks. There is no need to start another line 
This problem can be solved by adding a space after the backquote: that is, “XXXX ”*-YYYYY (* is a full-width space, and YYYY is the content of the backquote, which is correctly started on a separate line).

I've also tried adjusting the “Asian Layout” setting in the options myself, but it doesn't seem to work.

Seems this problem dosen`t happend in the version 24.8.7.2

We have discuss this problem in ask.libreoffice.org, you can check that in detail: https://ask.libreoffice.org/t/writer/124578

Steps to Reproduce:
1.Type in Chinese and let a back quotation mark on a line`s end
2.Type more characters in the line before back quotation mark

Actual Results:
Then the quote mark have wrongly being in the next line and have uncommon void in the first 
line

Expected Results:
Then the quote mark have corrctly being in the one line and the back quote mark shuold have space on the line`s end


Reproducible: Always


User Profile Reset: No

Additional Info:
https://ask.libreoffice.org/t/writer/124578
Seems this problem dosen`t happend in the version 24.8.7.2

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: CL threaded
Comment 1 Jesus Solis 2025-08-09 05:47:57 UTC
Can reproduce. Setting to NEW.

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: fb4792146257752f54eab576deb869869b108571
CPU threads: 12; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL
Comment 2 Saburo 2025-08-09 12:59:58 UTC
bibisected with linux-64-25.8

commit 5a03d511f46ecc05aab35bb29e714b46f5638b1b
author	Jonathan Clark <jonathan@libreoffice.org>	Mon Apr 07 21:37:26 2025 -0600

tdf#130592 i18npool: Fix incorrect line breaking in mixed CJK+Latin

This change updates the CJK BreakIterator to run ICU line breaking rules
after applying user forbidden rules. This fixes several identified CJK
GUI text rendering issues, most significantly that embedded English runs
were previously broken using CJK break rules, rather than using the
correct English rules.

By implementing this fallback to the ICU rules, the CJK BreakIterator
now also correctly handles non-breaking characters. This change
therefore also fixes tdf#117554.

Change-Id: I3bacc7e2b559729df2c37c010974d180c8eef1f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183825
Comment 3 Jonathan Clark 2025-09-12 17:58:34 UTC
Created attachment 202809 [details]
Simple reproducer
Comment 4 Commit Notification 2025-09-13 00:48:04 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/01c934f7bc6ecc18d7efcbcfb1f58f05ebda3bef

tdf#167873 i18npool: Port CJ brkitr customizations from ICU upstream

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2025-09-15 09:28:24 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/6c35c61ff2e1ae0b238fbf578aff1188ba18dbf4

tdf#167873 i18npool: Port CJ brkitr customizations from ICU upstream

It will be available in 25.8.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2025-09-15 10:30:37 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/d90541fa96f01be3de127b33a949c1555605d1aa

tdf#167873 i18npool: Port CJ brkitr customizations from ICU upstream

It will be available in 25.2.7.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.