Hyphenopoly
Hyphenopoly copied to clipboard
Hyphenation for node and Polyfill for client-side hyphenation.
Using this in a vue app: ``` import hyphenopoly from "hyphenopoly"; const hyphenator = hyphenopoly.config({ require: ["de", "en-us", "cop"], hyphen: "•", exceptions: { "en-us": "en-han-ces", }, }); ``` i get...
It looks like [Chrome for Windows/Linux will support CSS-hyphens:auto starting with version M88](https://www.chromestatus.com/feature/5672891947417600). Edge will follow. That means the use case of Hyphenopoly as a polyfill for hyphenation will fade...
- [x] merge i167 (succinct data structures) - [x] document succinct data structure - [x] drop support for node 10 - [x] rewrite Hyphenopoly.config see #170 - [x] document Hyphenopoly.config...
There's a TC39 proposal (currently at stage 3) for an text segmentation API: https://github.com/tc39/proposal-intl-segmenter This could replace the current implementation that uses RegEx to find words. May be worth having...
Notes: It works but is slow, not well supported and some tests break [skip travis-ci]
feat: prevent small words and eol Problem: Some languages (e.g. polish) require not to have single letter words at the end of a line. Solution: Implement a optional class based...
I might be wrong here but at first glance it looks like all that fs is doing is load stuff into memory. Maybe then just have everything in code (maybe...