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
Created attachment 199341 [details] test document created in MSO 2016 or later (version 16.0000)
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.
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.
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.
Created attachment 199594 [details] tdf165354_page.fodt: loext:hyphenation-keep-line test document Last hyphenated word “atmosphere” is moved to the next page.
Created attachment 199595 [details] tdf165354_spread.fodt: loext:hyphenation-keep-line test document Last word of the spread is moved to the next page, because it would be hyphenated, which is forbidden by hyphenation-keep and hyphenation-keep-line.
Created attachment 199596 [details] tdf165354_spread-left-page.fodt: loext:hyphenation-keep-line test document Hyphenation is not forbidden in the last line of the left page, because it is forbidden only on the right pages (hyphenation-keep-type="spread"), and this works with hyphenation-keep-line="true", too (when only the hyphenated word, and not the entire line is moved to the next page, if the hyphenation is forbidden in the last line).
Created attachment 199597 [details] MoveLineInsteadOfHyphenationAcross.png: screenshot of the associated check box “Move Line” of Text Flow of paragraph formatting Enabled only if loext:hyphenation-keep-line="false" (or if MSO compatibility option useWord2013TrackBottomHyphenation="1").
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e79e12484f5a7ec20e48233a2b5b60d7bd8b54ab tdf#165354 sw: fix frame update (HyphenationKeepLine – part 4) 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.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/6e31affdbab46d548d7b680a0128cf9fbd3e3f6c tdf#165354 sw HyphenationKeepLine: fix 3-page or longer paragraphs 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.
Created attachment 199678 [details] Last word of last line is now moved to next page (instead of hyphenation) Expected Results are now satisfied: The last line on the first page is not hyphenated by shifting only the last hyphenated word of the line to the next page. Verified in: Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 894563ee0e4032019623a97c313af3d833863b1f CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: CL threaded https://dev-builds.libreoffice.org/daily/master/Win-x86_64@tb77-TDF/2025-03-07_02.42.20/
Created attachment 199679 [details] Fix parameter (working animation) Left: Version: 24.2.7.2 (X86_64) / LibreOffice Community Build ID: ee3885777aa7032db5a9b65deec9457448a91162 CPU threads: 16; OS: Windows 10.0 Build 26100; UI render: Skia/Raster; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: CL threaded Right: Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 894563ee0e4032019623a97c313af3d833863b1f CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: CL threaded
Created attachment 199680 [details] Fix parameter (animation)
Created attachment 199681 [details] Fix parameter (animation) 1000 ms instead of 2000
Created attachment 199682 [details] 'Move Line' parameter behavior 'Move Line' parameter behavior GIF animation (1000 ms). In: Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 894563ee0e4032019623a97c313af3d833863b1f CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: CL threaded
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/9453c4646b34c22dcf59bc3c9ac8614029dbcad0 tdf#165354 sw: document Text Flow->Move Line (HyphenationKeepLine)
Created attachment 199750 [details] tdf165354_unit_tests.zip: unit tests of the commit “part 4” and “3-page or longer paragraphs” tdf165354_column.fodt tdf165354_frames_on_right_pages_no_hyphenation.fodt tdf165354_frames_on_same_page_hyphenation.fodt tdf165354_frames_on_same_page_no_hyphenation.fodt tdf165354_frames_on_spread_hyphenation.fodt tdf165354_long_paragraph_2.fodt tdf165354_long_paragraph_3.fodt tdf165354_long_paragraph.fodt tdf165354_page_in_last_column.fodt tdf165354_page_in_not_last_column.fodt tdf165354_page_in_table.fodt
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e499c8d2fba41c5958e8611f6cb007cca3e62ed9 tdf#165354 sw HyphenationKeepLine: apply it on the sidebar 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.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/7afd5aa47cda6200d259d025163a207b80068622 tdf#165354 cui: gray out Move Line at disabling hyphenation 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.