View Single Post
Old 12-02-2018, 04:40 AM   #268
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by jcn363 View Post
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 View Post
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.
baskerville is offline   Reply With Quote