Apache OpenOffice (AOO) Bugzilla – Issue 22591
Wrong line break due to hyphenation problem
Last modified: 2013-08-07 14:40:21 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).
Created attachment 11368 [details] Hyphenation dictionary for German texts causing the bug to occur
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?
(set oooqa keyword)
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.
.
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.
Created attachment 14914 [details] test document exhibiting the missing line break
Created attachment 14915 [details] test directory exhibiting the missing line break
Created attachment 14916 [details] accompanying screenshots (before/after enabling directory, directory contents)
Reopened to analyse.
HI->MRU: Please investigate.
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.
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).
FME->TL: The linguistic modules claims to have an alternative spelling for this word. Please have a look.
Because of a shortage of resources we have to retarget this issue to OOo later.
What's the status of the bug? Still shortage of resources? Is any workaround known besides manual hyphenation?
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.
Is a bugfix planned for OpenOffice 1.1.5?
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!
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".
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.
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
Also changed: - linguistic/source/hyphdsp.cxx
. re-open issue and reassign to mru@openoffice.org
reassign to mru@openoffice.org
reset resolution to FIXED
. re-open issue and reassign to sba@openoffice.org
reassign to sba@openoffice.org
SBA: Verified in CWS sw8pp2utf8.
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.
SBA: Ooops. Too early to close.... Corecting status....
SBA: Set to verified.
SBA: OK in 680m170. Closed.