Description: Add filter support for DOCX hyphenation zone for better interoperability. See Bug 121661 Steps to Reproduce: 1. Open example document of Bug 121661 Actual Results: The layout is different and it’s not possible to set hyphenation zone to get the same layout. Expected Results: It’s possible to set hyphenation zone to get the same layout, storing the result in OpenDocument. Reproducible: Always User Profile Reset: No Additional Info: Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community Build ID: dfd5081ff3973d5d0f216b06dda6360fa490cc9c CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: threaded
Created attachment 180518 [details] Example file from Word
Created attachment 180519 [details] The original file saved by Writer
This is the ODT part of Bug 149421. Correct description: = Overview = Add support for hyphenation zone to avoid too much hyphenation, and for better interoperability. See Bug 121661 = Steps to Reproduce = 1. Open example document of Bug 121881 = Actual results = The layout is different and it’s not possible to set hyphenation zone to get the same layout. = Expected results = It’s possible to set hyphenation zone to get the same layout, storing the result in OpenDocument.
Commit description: tdf#149420 sw offapi xmloff: add hyphenation zone Add hyphenation zone support, i.e. allow the specified amount of extra space in lines instead of forcing hyphenation. It's for limiting hyphenation, used especially with not justified paragraph alignment. Note: this is an OOXML interoperability feature, used also in DTP software and CSS. * Add checkbox to Text Flow in paragraph dialog * Store property in paragraph model (com::sun::star::style::ParagraphProperties::ParaHyphenationZone) * Add ODF import/export * Add ODF unit test * Add layout test Note: extend SvxHyphenZoneItem::GetPresentation() with missing No CAPS and No last word hyphenation options. Note: fix OSL_ENSURE condition in SwTextFormatInfo::GetHyphValues(). Follow-up to commit 29359fc15c435cec17987fd6221ab6833d38746e "tdf#149324 sw offapi xmloff: add option to not hyphenate short words".
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/7a1d4b7d1db93ca1f541856a8d00d621d50e7bd6 tdf#149420 sw offapi xmloff: add hyphenation zone It will be available in 7.4.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.
Verified in: Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 415dc3bb1c03dbdbc3cbca274bc435ac7557ba2d CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win Locale: hu-HU (hu_HU); UI: en-US Calc: CL