[voikko-devel] Fwd: Bugi: voikko_remove_extra_hyphenations

Kalle Lampila kalle.lampila+voikko at iki.fi
Sun Feb 25 19:55:39 EET 2007


Moi,

Huomasin, että voikko_remove_extra_hyphenations funktio toimii eri
tavalla kuin sitä ohjaava parametrin toiminta on kommentoitu.

voikko_remove_extra_hyphenations funktion toimintaa kuvaa siinä oleva kommentti:
"/* delete items from array where current_parts > intersect_compound_level */"

Kun taas  intersict_conpound_level parametri on kommentoitu seuraavasti:
"/* There are two possible rules that can be applied when hyphenating
compound words
 * that can be split in more than one different way. We either take
the intersection
 * of (1) all possible hyphenations or (2) all hyphenations where the
compound word
 * has the minimal amount of parts (:= m) in it. The rule (1) is
applied if and only
 * if m > voikko_intersect_compound_level.
 * Default: 1 */
#define VOIKKO_INTERSECT_COMPOUND_LEVEL 5"

Eli, jos vaikka arvo on asettu kahteen, niin jäljelle jäävät nyt sekä
yhden että kahden arvoiset, eikä pelkät yhden arvoiset kuten annetaan
ymmärtää.

Enpä tiedä pitäisikö parametrin kommentti muutaa vastaamaan toimintaa
vai muuttaa vertailu voikko_remove_extra_hyphenations:
"if (current_parts > intersect_compound_level)"
muotoon:
"if (current_parts > min_parts)"

--
Kalle



More information about the devel mailing list