Bug 80027

Summary: Word joiner (U+2060) after space (U+0020) should prevent a line break
Product: LibreOffice Reporter: Simo Kaupinmäki <isokumma>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: fitojb, martin.sourada, philipz85
Priority: medium    
Version: Inherited From OOo   
Hardware: x86 (IA32)   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=57652
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 102345    
Attachments: A set of test cases

Description Simo Kaupinmäki 2014-06-14 15:31:32 UTC
A word joiner (U+2060) added directly before or after a regular space (U+0020) should cancel the line break opportunity normally offered by the space. This seems to be the case if a word joiner is positioned directly before a space. However, if the word joiner is positioned directly after the space, LO allows a line break (unless the previous word is the first word in the paragraph and not hyphenated). In addition, if a word joiner is added both before and after the space, the first word joiner seems to have no effect at all.

After a thin space (U+2009), a word joiner properly prevents a line break from happening.

The correct non-breaking behaviour of WJ × SP or SP × WJ can be verified in the Line Break Chart of the Unicode standard (version 6.3.0):

http://www.unicode.org/Public/UNIDATA/auxiliary/LineBreakTest.html

Reproducible: always
Found in LO 3.5.4.2 (on Debian stable), 4.2.4.2 (on Windows), and 4.3.0.0.beta2 (on both Debian and Windows)

See bug 57652 for further discussion about word joiner. The issue described there looks a little more complicated, but these issues may be related.

(Bug 80000 may also be related as regards the different line-breaking behaviour of the first word in the paragraph.)
Comment 1 Simo Kaupinmäki 2014-06-14 15:33:39 UTC
Created attachment 101052 [details]
A set of test cases
Comment 2 Yousuf Philips (jay) (retired) 2014-06-14 22:18:59 UTC
Confirmed on Linux Mint with 4.2.4. This is similar to bug 80000, though that bug did feature U+2010 and not U+2009.
Comment 3 QA Administrators 2015-07-18 17:42:42 UTC Comment hidden (obsolete)
Comment 4 Adolfo Jayme Barrientos 2015-07-19 22:22:28 UTC
Valid enhancement still.
Comment 5 QA Administrators 2016-09-20 10:17:56 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-03 14:16:21 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2021-12-03 04:31:11 UTC Comment hidden (obsolete)
Comment 8 Martin Sourada 2023-02-26 10:37:07 UTC
Still present in:
Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded