Bug 149420

Summary: Add hyphenation zone to layout, UI and ODF export/import
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: VERIFIED FIXED    
Severity: enhancement CC: nemeth
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard: target:7.4.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 120883, 149421    
Attachments: Example file from Word
The original file saved by Writer

Description NISZ LibreOffice Team 2022-06-01 11:46:55 UTC
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
Comment 1 NISZ LibreOffice Team 2022-06-01 11:47:43 UTC
Created attachment 180518 [details]
Example file from Word
Comment 2 NISZ LibreOffice Team 2022-06-01 11:48:18 UTC
Created attachment 180519 [details]
The original file saved by Writer
Comment 3 László Németh 2022-06-01 14:16:14 UTC
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.
Comment 4 László Németh 2022-06-02 07:58:19 UTC
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".
Comment 5 Commit Notification 2022-06-02 07:58:44 UTC
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.
Comment 6 NISZ LibreOffice Team 2022-06-28 08:29:47 UTC
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