Issue 22591 - Wrong line break due to hyphenation problem
Summary: Wrong line break due to hyphenation problem
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: All All
: P3 Trivial with 8 votes (vote)
Target Milestone: ---
Assignee: stefan.baltzer
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-11-18 10:31 UTC by kristov
Modified: 2013-08-07 14:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Hyphenation dictionary for German texts causing the bug to occur (41.60 KB, application/octet-stream)
2003-11-18 10:32 UTC, kristov
no flags Details
test document exhibiting the missing line break (8.05 KB, application/vnd.sun.xml.writer)
2004-05-02 09:03 UTC, kristov
no flags Details
test directory exhibiting the missing line break (33 bytes, application/octet-stream)
2004-05-02 09:05 UTC, kristov
no flags Details
accompanying screenshots (before/after enabling directory, directory contents) (56.32 KB, application/octet-stream)
2004-05-02 09:07 UTC, kristov
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kristov 2003-11-18 10:31:17 UTC
If you insert a full stop (.) after the German word "zusammen", so that OO is 
forced to hyphenate it, the word is wrongly displayed across the margin. The 
error occurs in OO.org 1.1, German version with German hyphenation dictionary 
and hyphenation enabled (downloaded from http://de.openoffice.org/).

A detailed instruction follows:
1. Create a new, empty text document.
2. Enable "hyphenation" in the settings of the current (= Standard) paragraph 
style.
3. Change the paragraph's language to "Deutsch (Deutschland)".
4. Type the following word (including the beginning space and the delimiting 
full stop:

 zusammen.

5. Go to the beginning of the line (before "zusammen") and type any characters 
you like until the word "zusammen" has moved so much to the right that it has 
to be hyphenated => hyphenation error occurs.

Note: These steps assume you have installed and activated the German 
hyphenation feature. Unfortunately, I cannot reproduce it by using an English 
word. I attached the hyphenation file I use for German texts (downloaded
from de.openoffice.org).
Comment 1 kristov 2003-11-18 10:32:35 UTC
Created attachment 11368 [details]
Hyphenation dictionary for German texts causing the bug to occur
Comment 2 jensja 2003-11-23 18:45:17 UTC
Could not reproduce with OOo1.1 german on W2k with identical .dic file
installed. 
Please provide a screenshot. Have you installed a (default) printer
object?
Comment 3 jensja 2003-11-23 19:11:29 UTC
(set oooqa keyword)
Comment 4 guido.pinkernell 2004-02-07 16:18:41 UTC
I can't confirm this with OOo 1.1.0 (en) on Win98 with an identical hyphenation
dictionary file. Will close this as Worksforme. Please ask for reopening the
Issue if the problem persists.
Comment 5 guido.pinkernell 2004-02-07 16:19:13 UTC
.
Comment 6 kristov 2004-05-02 09:02:23 UTC
Please reopen this issue, as the failure persists in current OO 1.1.1.

I analysed the problem further and determined that wrong line breaks occur only
if the following two conditions are met:
- the word in question is the last word of the paragraph
- it is followed by a period (.)
- the word is known to OO due to a directory entry, *and*
- at least one user-defined hyphenation separator (=) is used in the entry.

The error does not occur in OO 1.0.3.1 (German version).

I attached a small document and a test directory exhibiting the error, together
with some screenshots. The error manifests itself in the moment when the test
directory is enabled, because OO then apparently reformats the document.
(Interestingly, disabling the directory does not cause a reformatting, so the
erroneous line break persists until one change the paragraph.)

I was only able to test the German versions of OO, but I think it's not
restricted to the localized versions.
Comment 7 kristov 2004-05-02 09:03:33 UTC
Created attachment 14914 [details]
test document exhibiting the missing line break
Comment 8 kristov 2004-05-02 09:05:25 UTC
Created attachment 14915 [details]
test directory exhibiting the missing line break
Comment 9 kristov 2004-05-02 09:07:21 UTC
Created attachment 14916 [details]
accompanying screenshots (before/after enabling directory, directory contents)
Comment 10 h.ilter 2004-05-03 10:23:51 UTC
Reopened to analyse.
Comment 11 h.ilter 2004-05-03 10:25:35 UTC
HI->MRU: Please investigate.
Comment 12 lohmaier 2004-05-04 21:52:59 UTC
confirming. To reproduce the error with the attached OOFehler.sxw add
"Körper=koordination" to your user-dictionary. The Word will be written outside
the page boudaries, like in the screenshot (although I have to force a refresh
to see those pushed-off characters)
Since I'm running linux I set OS and Platform to ALL.

It seems that OOo treats the period as part of the word. If I enter
"Körper=koordination." (with the dot) to the dictionary all works fine. (But
it's broken again when I remove the dot from the actual text).

You probably need to reassign to lingucomponent.
Comment 13 michael.ruess 2004-05-05 07:18:39 UTC
MRU->FME: Easiest to reproduc, when you act like cloph described. Open the
attached .sxw add "Körper=koordination" to a user dictionary. Maybe you need to
delete one or two characters in the first line of the text to see the described
effect (like it was on my machine).
Comment 14 frank.meies 2004-05-10 08:21:33 UTC
FME->TL: The linguistic modules claims to have an alternative spelling for this
word. Please have a look.
Comment 15 thomas.lange 2004-05-10 10:37:11 UTC
.
Comment 16 andreas.martens 2004-06-17 14:07:14 UTC
Because of a shortage of resources we have to retarget this issue to OOo later. 
Comment 17 joerg20 2005-01-13 23:19:16 UTC
What's the status of the bug? Still shortage of resources? Is any workaround
known besides manual hyphenation?
Comment 18 kristov 2005-01-14 06:40:44 UTC
I don't know any other workaround besides manual hyphenation and/or removing the
offending words from the dictionary. It's a pity, I have OO.org 1.0.3 lying
around here only to be able to open some old documents correctly.
Comment 19 kristov 2005-08-01 22:46:51 UTC
Is a bugfix planned for OpenOffice 1.1.5?
Comment 20 thomas.lange 2005-08-02 11:23:47 UTC
TL->MRU: This one looks fine in current SO and OOo 1.9.122 (with German
dictionary installed).

I'm not sure if this one should be fixed for OOo 1.1.5 though.
Please take over. Thanks!
Comment 21 michael.ruess 2005-08-02 11:59:43 UTC
MRU->TL: still happens. Please da as I described above:
"Easiest to reproduc, when you act like cloph described. Open the
attached .sxw, add "Körper=koordination" to a user dictionary. Maybe you need to
delete one or two characters in the first line of the text to see the described
effect".
Comment 22 jens_vogel 2005-12-12 15:35:01 UTC
I wanted to add that this is not limited to German dictionaries or the use of
German OOo versions. I'm currently using OOo 2.0.1 RC2 english and the problem
still exists:

- create new document
- activate hyphenation in "default" paragraph style
- enter "together." (followed by a full stop as shown)
- move the word to the end of the line by inserting spaces in front of it until
it's being hyphenated
- add the term "to=ge=ther" to any active dictionary (including the equals signs
as shown)

After clicking "OK" the dictionary entry gets activated and the word "together"
is no longer hyphenated. Instead the part normally moved to the next line is
printed on the right page border, followed by a hyphen and missing the full stop.

before entry in dictionary:
| |             |     |
| |          to-|     |
| |gether.      |     |
| |             |     |

after entry:
| |             |     |
| |          together-|
| |             |     |

I really think this needs to be fixed.
Comment 23 thomas.lange 2005-12-23 11:01:45 UTC
.
Comment 24 thomas.lange 2005-12-23 11:03:56 UTC
Luckily there was some time now before X-mas.
Though this one is now fixed in CWS sw8pp2utf8. 
Thus it should be integrated in OOo 2.0.2

Files changed:
- linguistic/source/hyphdsp.hxx
Comment 25 thomas.lange 2005-12-23 11:07:38 UTC
Also changed:
- linguistic/source/hyphdsp.cxx
Comment 26 thomas.lange 2006-01-11 07:55:23 UTC
.
Comment 27 thomas.lange 2006-01-12 13:06:41 UTC
.

re-open issue and reassign to mru@openoffice.org
Comment 28 thomas.lange 2006-01-12 13:06:47 UTC
reassign to mru@openoffice.org
Comment 29 thomas.lange 2006-01-12 13:06:54 UTC
reset resolution to FIXED
Comment 30 thomas.lange 2006-02-03 12:44:33 UTC
.

re-open issue and reassign to sba@openoffice.org
Comment 31 thomas.lange 2006-02-03 12:44:42 UTC
reassign to sba@openoffice.org
Comment 32 thomas.lange 2006-02-03 12:44:50 UTC
reset resolution to FIXED
Comment 33 stefan.baltzer 2006-02-07 12:30:32 UTC
SBA: Verified in CWS sw8pp2utf8.
Comment 34 stefan.baltzer 2006-02-08 14:52:07 UTC
SBA: The CWS did not make it into OOo 2.02. 
Therefore all issues go back to NEW and to developer.
Reopened. Reassigned to TL. Target set to OOo 2.03.
Comment 35 stefan.baltzer 2006-02-08 14:52:56 UTC
.
Comment 36 thomas.lange 2006-02-21 10:41:08 UTC
.
Comment 37 thomas.lange 2006-02-21 10:41:56 UTC
.
Comment 38 thomas.lange 2006-02-21 10:42:32 UTC
.

re-open issue and reassign to sba@openoffice.org
Comment 39 thomas.lange 2006-02-21 10:42:36 UTC
reassign to sba@openoffice.org
Comment 40 thomas.lange 2006-02-21 10:42:40 UTC
reset resolution to FIXED
Comment 41 stefan.baltzer 2006-03-03 16:06:16 UTC
SBA: Verified in CWS sw8pp2utf8.
Comment 42 stefan.baltzer 2006-03-03 17:55:03 UTC
SBA: Ooops. Too early to close.... Corecting status....
Comment 43 stefan.baltzer 2006-03-03 17:57:11 UTC
.
Comment 44 stefan.baltzer 2006-03-03 17:57:46 UTC
SBA: Set to verified.
Comment 45 stefan.baltzer 2006-05-19 12:36:05 UTC
SBA: OK in 680m170. Closed.