Bug 149324 - Add paragraph property for Hyphenation option "Minimum Word Length"
Summary: Add paragraph property for Hyphenation option "Minimum Word Length"
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-26 16:43 UTC by László Németh
Modified: 2022-05-26 18:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2022-05-26 16:43:35 UTC
Description:
While there is a (broken) global option for Minimum Word Length at hyphenation (see "Minimal number of characters for hyphenation" in Tools->Options->Language Settings->Writing Aids), for better/comfortable paragraph level adjustment, add a paragraph property for is.

Steps to Reproduce:
Open the attached test document.

Actual Results:
No option to set min. word length on paragraph-level.

Expected Results:
There is a hyphenation option for that in paragraph settings, similar to Remaining/Trailing characters.


Reproducible: Always


User Profile Reset: No



Additional Info:
This is an interoperability feature, because DTP software, e.g. Adobe InDesign and CSS Text Module Level 4 "hyphenate-limit-chars" support this.
Comment 1 Regina Henschel 2022-05-26 18:10:55 UTC
For me the settings in 'Writing Aids' work. They affect the text boxes in Impress for example and affect continuous text in Writer too. (To get a lot of hyphenations use a layout with several columns.)

Anyway, I support, to bring this setting from registrymodifications.xcu to document.
Comment 2 Commit Notification 2022-05-26 18:26:28 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/29359fc15c435cec17987fd6221ab6833d38746e

tdf#149324 sw offapi xmloff: add option to not hyphenate short words

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 3 László Németh 2022-05-26 18:29:00 UTC
Commit description:

tdf#149324 sw offapi xmloff: add option to not hyphenate short words

Add paragraph property to disable automatic hyphenation of short
words based on a minimum character count.

Note: there is a (broken) global option for Minimum Word Length
at hyphenation, see "Minimal number of characters for hyphenation"
in Tools->Options->Language Settings->Writing Aids), but
for better/comfortable paragraph-level adjustment of typesetting,
add a paragraph property for it. The same option is available e.g.
in Adobe InDesign and in CSS Text Module Level 4 (hyphenate-limit-chars).

* Add checkbox to Text Flow in paragraph dialog
* Store property in paragraph model (com::sun::star::style::ParagraphProperties::ParaHyphenationMinWordLength)
* Add ODF import/export
* Add ODF unit test
* Add layout test

Follow-up to commit 8c018910ae4d8701b1ce2a95727b9baed4016da3
"tdf#149248 sw offapi xmloff: add option to not hyphenate last word".