On Sat, 2005-01-29 at 16:18 +0200, F Wolff wrote:
> I'm getting some strange results testing my mysell hyphenation
> definitions with altlinuxHyph. 
> 
> I use following hyph file (no other rules):
> i3n4ge.
> in3ge1
> 
> 3ag3tig
> k4ragtig
> 
> and supplying "dinge" gives "din-ge" while I expected "di-nge". My
> understanding is that the first rule will match because of the end of
> word marker and overrule the second rule (which also matches), but it
> seems I'm wrong.
> 

Well, I think I found an off-by-one bug in altlinuxHyph. This patch
solves the above mentioned problem with end of word markers.


--- old_example.c       2005-01-31 21:22:11.978784248 +0200
+++ example.c   2005-01-31 21:24:26.787290240 +0200
@@ -69,7 +69,6 @@
        /* first remove any trailing periods */
        n = k-1;
        while((n >=0) && (lcword[n] == '.')) n--;
-       n++;

        /* now actually try to hyphenate the word */
        if (n > 0) {




> 
> 
> Is altlinuxHyph exactly the same as what is used in OpenOffice.org?
> 
Will the above bug also be in OpenOffice.org then?


Friedel Wolff



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

Reply via email to