<div dir="ltr">Dear László,<div><br></div><div style>Thanks for your answer. You are right, <a href="http://substrings.pl">substrings.pl</a> turns out to be exactly what I need.</div><div><br></div><div style>So I guess this is not a bug. I missed the section about the substrings script in the README, although it is made obvious enough with warnings etc. :)</div>
<div><br></div><div>Cheers,</div><div>Bert<br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-24 15:19 GMT+01:00 Németh László <span dir="ltr"><<a href="mailto:nemeth@numbertext.org" target="_blank">nemeth@numbertext.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dear Bert,<br>
<br>
It seems for me, that your hyphenation patterns haven't been processed<br>
by the <a href="http://substrings.pl" target="_blank">substrings.pl</a> script of libhyphen distribution. Could you check<br>
it?<br>
<br>
Thanks for your bug report,<br>
<br>
Best regards,<br>
László<br>
<br>
2014-03-24 14:44 GMT+01:00 Bert Frees <<a href="mailto:bertfrees@gmail.com">bertfrees@gmail.com</a>>:<br>
> Dear László and others,<br>
><br>
> We think we may have found a bug in libhyphen. It could be that it is just a<br>
> limitation of the algorithm, but anyway it's an issue for us.<br>
><br>
> The problem is that some patterns in a dictionary are ignored in some cases,<br>
> namely when the match string of that pattern is a part of the match string<br>
> of another pattern, and more specifically when it's not just a prefix.<br>
><br>
> Let me clarify that with an example. When a dictionary consists of these two<br>
> patterns, the word `foobar' is not hyphenated because the first pattern is<br>
> ignored:<br>
><br>
> oo1b<br>
> foob<br>
><br>
> The second, longer pattern doesn't even have to match, as the second example<br>
> shows (the first pattern is still ignored):<br>
><br>
> oo1b<br>
> foobz<br>
><br>
> I have a patch that solves part of the problem:<br>
><br>
> <a href="https://github.com/bertfrees/libhyphen-nar/blob/adc2b74a19469e4dc93777fcdb82e36e566a0472/src/patches/bug.patch" target="_blank">https://github.com/bertfrees/libhyphen-nar/blob/adc2b74a19469e4dc93777fcdb82e36e566a0472/src/patches/bug.patch</a><br>

><br>
> With this patch the given examples will be handled correctly, but in other<br>
> situations it will still fail, such as here:<br>
><br>
> oo1b<br>
> foobaz<br>
><br>
> Have I indeed found a bug here, and does my patch make sense, or am I just<br>
> expecting too much and are we hitting the limits of the algorithm?<br>
><br>
> Thanks for considering,<br>
> Bert Frees<br>
</blockquote></div><br></div></div></div>