Quote:
Originally Posted by jcn363
How can I make my own hyphenate file?
|
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
Quote:
Originally Posted by jcn363
Is there a parameter to control the number of consecutive hyphens that the paragraph-breaker library might generate?
|
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.