View Single Post
Old 12-02-2018, 05:34 AM   #269
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by baskerville View Post
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).
sherman is offline   Reply With Quote