Quote:
Originally Posted by baskerville
The hyphenation patterns are generated by the hyphenation crate. Within the hyphenation repository, you can build the patterns with:
Code:
cargo build --features build_dictionaries
The K&P algorithm doesn't provide such a parameter: it only returns the best solution satisfying the given constraints on the shrinking and stretching of the word spaces. I can only depreciate the subset of solutions that contains consecutive hyphens. But if all the solutions have consecutive hyphens then it won't help. The standard fit algorithm (used when K&P fails) forbids more that two consecutive hyphens.
|
The other area to tweak hyphenation is the actual hyphenation rules. For example, the hyphenation dictionary supplied with Kobo ereaders (and probably most other RMSDK readers) sets a minimum of five characters pre and post hyphen (so minimum ten character word). My personal tweak to this is to set it to three pre and post (so minimum six character word).