Bug 50222

Summary: FORMATTING: Unexpected line wrap behaviour
Product: LibreOffice Reporter: jotomicron
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: bfo.bugmail
Version: 3.5.3 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: This shows the hyphenation when the parenthesis is added

Description jotomicron 2012-05-22 10:03:45 UTC
Created attachment 61971 [details]
This shows the hyphenation when the parenthesis is added

Disclaimer: This is a report for a low priority bug

Problem description:
There is a bug in the line wrap algorithm for Writer (at least I find it unexpected).

Steps to reproduce:
1. Setup a document with 17cm of horizontal space. Set font to Times New Roman 13pt. Set language to English USA with automatic hyphenation.
2. Write "ease or diseases) it refers to. Other epidemiologically important link types include “location”." (I'm not sure whether the double quotation must be unicode or ascii)
3. Right before the first "or", add an opening parethesis, "(" (so that the text now read "ease (or")

Current behavior:
"location" gets hyphenated.

Expected behavior:
If there is space to hyphenate "location" after adding the "(", then surely there is space to hyphenate before adding the character. Why is it that adding the character triggers hyphenation

I'm aware that Writer could technically choose not to hyphenate based on looks (as TeX does) but I'm not sure it does so. In any case, this is clearly (to me, at least) not one of those cases.

Platform (if different from the browser): Ubuntu 12.04
              
Browser: Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5
Comment 1 bfoman 2012-11-05 17:45:13 UTC
(In reply to comment #0)
> Current behavior:
> "location" gets hyphenated.

Confirmed with:
LO 3.6.3.2
Build ID: 58f22d5
Windows XP Professional SP3
Comment 2 A (Andy) 2013-03-16 09:49:12 UTC
reproducible with LO 4.0.1.2 (Win7 Home, 64bit)

Reproduced by the following steps:
1. Open WRITER
2. Paste the text "ease or diseases) it refers to. Other epidemiologically important link types include “location”."
3. Select the whole text and format it as TIMES NEW ROMAN 13
4. Go to TOOLS -> LANGUAGE -> FOR ALL TEXT -> ENGLISH (USA)
5. Select the whole text and go to FORMAT -> PARAGRAPH, go to the tab TEXT FLOW and activate HYPHENATION AUTOMATICALLY
6. Insert a "(" before the word "or"

Result:
The word "location" will be hyphenated, but not before inserting the "(".

Note: I had not to change the page format width, I had reproduced it with the standard A4 format.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.