Bug 170177 - Add options to limit hyphenation 1) if it is too close to the right constituent boundary and 2) only at constituent boundaries
Summary: Add options to limit hyphenation 1) if it is too close to the right constitue...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: László Németh
URL:
Whiteboard: target:26.8.0
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-31 00:25 UTC by László Németh
Modified: 2026-01-07 06:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
tdf170177_compound-push_test.fodt: hyphenation at constituent boundaries (41.36 KB, application/vnd.oasis.opendocument.text-flat-xml)
2025-12-31 03:23 UTC, László Németh
Details
PDF output of the previous test document (enabled compound hyphenation) (16.21 KB, application/pdf)
2025-12-31 03:24 UTC, László Németh
Details
tdf170177_not_compound-push_test.fodt: disabled compound hyphenation (40.60 KB, application/vnd.oasis.opendocument.text-flat-xml)
2025-12-31 03:25 UTC, László Németh
Details
PDF output (disabled compound hyphenation) (16.26 KB, application/pdf)
2025-12-31 03:25 UTC, László Németh
Details
"Compound characters at line begin" spin box (screenshot) (111.69 KB, image/png)
2025-12-31 03:34 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-12-31 00:25:10 UTC
Description:
Add ParaHyphenationCompoundMinTrailingChars to limit hyphenation if it is too close to the right constituent boundary (opposite direction to ParaHyphenationCompoundMinLeadingChars).

Add options to limit hyphenation only at constituent boundaries, e.g. for right aligned text.

Steps to Reproduce:
1. Open the Hungarian test document with the compound word vas|munka|lap, where the minCompoundTrailing value is 3, i.e. 2 character distance (=ka| in vasmun=kalap), is not an allowed hyphenation break.

Actual Results:
Hyphenation inside the middle compound constituent: "vasmun=kalap"

Expected Results:
Hyphenation between the first and second constituent: "mun=kalap"


Reproducible: Always


User Profile Reset: No

Additional Info:
See Bug 158885.
Comment 1 László Németh 2025-12-31 03:23:07 UTC
Created attachment 204867 [details]
tdf170177_compound-push_test.fodt: hyphenation at constituent boundaries

Constituent boundaries: ember|ellenes, vas|ember|ellenes, balalajka|vizsgálat, balalajka|vizsgálattal (-tal suffix)
Comment 2 László Németh 2025-12-31 03:24:20 UTC
Created attachment 204868 [details]
PDF output of the previous test document (enabled compound hyphenation)
Comment 3 László Németh 2025-12-31 03:25:03 UTC
Created attachment 204869 [details]
tdf170177_not_compound-push_test.fodt: disabled compound hyphenation
Comment 4 László Németh 2025-12-31 03:25:33 UTC
Created attachment 204870 [details]
PDF output (disabled compound hyphenation)
Comment 5 László Németh 2025-12-31 03:34:38 UTC
Created attachment 204871 [details]
"Compound characters at line begin" spin box (screenshot)
Comment 6 Commit Notification 2025-12-31 21:54:57 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/391ea3bcb54698461bfb0f7be996cf95b91ebb0f

tdf#170177 cui offapi sw xmloff: hyphenate at constituent boundaries

It will be available in 26.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 7 Commit Notification 2026-01-07 06:57:53 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

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

tdf#170177 tdf#132599 sw: disable some hyphenation tests temporarily

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