-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* BREAKING CHANGE: new hyphenopoly pattern binary format implement new hyphenation pattern binary (.hpb) format * update patterns to new format and include left-/rightmin according to source * update hyphenEngine.asm/.wasm to consume new pattern format * implement .hpb-version-check in Hyphenopoly.js and hyphenopoly.module.js fixes issue #61, fixes issue #65 * feat: add tearDown event Dispatch "tearDown"-event just before Hyphenopoly gets cleared if native CSS-hyphenation is available. fixes issue #67 * Update changelog * BREAKING CHANGE: remove `H.setup.classnames` Classnames have been deprecated since 2.6.0 – Use selectors instead. * feat: Add "loadError"event to Recover from 404 Dispatch non-cancellable "loadError"-event, if a .hpb doesn't exist. This allows to recover from a 404, without a FOUHC-timeout. fixes isse #59 * fix incorrect elements.count * update pattern format description * switch -> if/else * Change patternFormat 0 (zero) marks the beginning of a new group with same length, 255 marks a new prefix group. fixes issue #61 * dispatch loadError in requestBinary * Update Readme with new sizes * lint * lint * CHANGE how module reacts when browserified * REMOVE support for cop and la-medi * CHANGE how loader-mode is set Add new setting 'loader' (default 'fs') Add test to keep 100% coverage * Bump versions * Bump versions in lock file * lint
- Loading branch information
Showing
92 changed files
with
701 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,7 @@ | |
}, | ||
setup: { | ||
selectors: { | ||
".container": { | ||
} | ||
".container": {} | ||
} | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
/* eslint-env node */ | ||
/* eslint no-console: 0 */ | ||
"use strict"; | ||
// For RunKit: | ||
const hyphenopoly = require("hyphenopoly"); | ||
|
||
// For local node: | ||
// const hyphenopoly = require("./hyphenopoly.module.js"); | ||
/* | ||
* For local node: | ||
* const hyphenopoly = require("./hyphenopoly.module.js"); | ||
*/ | ||
|
||
const hyphenator = hyphenopoly.config({ | ||
"sync": true, | ||
"require": ["de", "en-us"], | ||
"hyphen": "•", | ||
"exceptions": { | ||
"en-us": "en-han-ces" | ||
} | ||
}, | ||
"hyphen": "•", | ||
"require": ["de", "en-us"], | ||
"sync": true | ||
}); | ||
|
||
const hy1 = hyphenator.get("en-us")("hyphenation enhances justification."); | ||
const hy2 = hyphenator.get("de")("Silbentrennung verbessert den Blocksatz."); | ||
|
||
|
||
console.log(hy1); | ||
console.log(hy2); | ||
console.log(hy2); |
Oops, something went wrong.