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.
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)
Created attachment 204868 [details] PDF output of the previous test document (enabled compound hyphenation)
Created attachment 204869 [details] tdf170177_not_compound-push_test.fodt: disabled compound hyphenation
Created attachment 204870 [details] PDF output (disabled compound hyphenation)
Created attachment 204871 [details] "Compound characters at line begin" spin box (screenshot)
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.
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.