Your fix sounds correct but it has been addressed in
my code.  The code devides the rules into 2 groups:
exceptions and rules( all others) then it checks
exceptions first.  This shoudlsave considerable time
with exceptions as the hyphenator wont search for
rules until it knows it needs them, because if an
exception is found it will use it and exit.  

Currently the toughest part is 'adding' the rules
together.  If anyone has a good algorithm idea it
would like to hear it.  My plan at the moment is to
place the rules into a 3-dimensional array (as they
are found) with padding for the numbers (that may or
may not be there) and then to 'add' one column at a
time as i believe this will probably be the fastest
way.

--- Daniel Naber <[EMAIL PROTECTED]> wrote:

> 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]
> 
> 


"Knowledge is power, Those who have it must share with those who don't"
                                                                                
  -Walter Wojcik




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to