Bug 165354 - DOCX: fix layout of hyphenated text by supporting useWord2013TrackBottomHyphenation = false (i.e. shifting only the last word, not the whole hyphenated line)
Summary: DOCX: fix layout of hyphenated text by supporting useWord2013TrackBottomHyphe...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks: DOCX-Paragraph Hyphenation DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2025-02-20 11:47 UTC by László Németh
Modified: 2025-03-04 07:50 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test document created in MSO 2016 or later (version 16.0000) (19.53 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-20 11:58 UTC, László Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2025-02-20 11:47:41 UTC
Description:
Only useWord2013TrackBottomHyphenation = true was implemented in Bug 160518 and Bug 132599, but not useWord2013TrackBottomHyphenation = false, when only a single hyphenated word shifted to the next column or page, not the full line.

Steps to Reproduce:
1. Open the attached test document.

Actual Results:
The last line on the first page is hyphenated.

Expected Results:
The last line on the first page is not hyphenated by shifting only the last hyphenated word of the line to the next page.


Reproducible: Always


User Profile Reset: No

Additional Info:
See Microsoft Open Specification about useWord2013TrackBottomHyphenation:

*https://learn.microsoft.com/en-us/openspecs/office_standards/ms-docx/e6cd53b7-89ac-4c64-a6b2-cd1df8b08228
Comment 1 László Németh 2025-02-20 11:58:53 UTC
Created attachment 199341 [details]
test document created in MSO 2016 or later (version 16.0000)
Comment 2 László Németh 2025-02-21 07:56:30 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3e02ffb76c484a05cdc140d8a10bc3d993fe8320

tdf#i165354 sw offapi DOCX: implement HyphenationKeepLine – part 1

It will be available in 25.8.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 3 Commit Notification 2025-03-03 13:28:19 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

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

tdf#165354 sw xmloff: implement HyphenationKeepLine – part 2

It will be available in 25.8.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 4 Commit Notification 2025-03-04 07:50:31 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/698b38a18f5f70fd8d50968bc50951aba7085175

tdf#165354 sw cui: implement HyphenationKeepLine – part 3

It will be available in 25.8.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.