On Saturday 17 September 2005 00:14, Kevin B. Hendricks wrote:

> Also, you might want to check the standalone version of altlinuxhyph  
> that I posted since there are hyphenation rules about minimum length  
> of pieces in OOo both in the styles and at the document level that  
> sometimes interfere with that.

Actually I only tried with altlinuxhyph and it seems to contain a bug:
Its hnj_hyphen_hyphenate function is called with the length of the word, 
*including* the null byte. When the word is then copied to prep_word in 
the for loop, the null byte is copied, to. So when the '.' is finally 
added it won't have an affect because there's the null byte just before 
the dot.

Suggested fix in example.c:

-        if (hnj_hyphen_hyphenate(dict, lcword, n, hyphens))
+        if (hnj_hyphen_hyphenate(dict, lcword, n-1, hyphens))

This makes exceptions work on the first look. There's still at least one 
thing I don't get, namely that after this fix entries like ".man7ch." seem 
to have an effect on words like "manchmal". So it seems the final dot 
still has not the desired effect. However, do you think the suggested fix 
is correct?

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to