Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Aug 5, 2020
1 parent 841dac9 commit 301a9bd
Show file tree
Hide file tree
Showing 82 changed files with 458 additions and 109 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Version History

## Version 4.6.1 (2020-07-XX)
## Version 4.7.0 (2020-08-05)
### Fixed
* retrieving maindir now works correctly if the filename is mangled (#135)
* bump devDependencies

### Changed
* use nb instead of nb-no, equivalent to nn
* remove some rare/ancient languages (cop, mul-ethi, grc, la-x-liturgic)
* tooling now supports extraction of patterns from .tex files (#138)

## Version 4.6.0 (2020-06-29)
### Added
Expand Down
2 changes: 1 addition & 1 deletion Hyphenopoly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly 4.6.0 - client side hyphenation for webbrowsers
* @license Hyphenopoly 4.7.0 - client side hyphenation for webbrowsers
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
2 changes: 1 addition & 1 deletion Hyphenopoly_Loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly_Loader 4.6.0 - client side hyphenation
* @license Hyphenopoly_Loader 4.7.0 - client side hyphenation
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
4 changes: 2 additions & 2 deletions docs/min/Hyphenopoly.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/min/Hyphenopoly_Loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/min/patterns/af.wasm
Binary file not shown.
Binary file modified docs/min/patterns/as.wasm
Binary file not shown.
Binary file modified docs/min/patterns/be.wasm
Binary file not shown.
Binary file modified docs/min/patterns/bg.wasm
Binary file not shown.
Binary file modified docs/min/patterns/bn.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ca.wasm
Binary file not shown.
Binary file modified docs/min/patterns/cs.wasm
Binary file not shown.
Binary file modified docs/min/patterns/cy.wasm
Binary file not shown.
Binary file modified docs/min/patterns/da.wasm
Binary file not shown.
Binary file modified docs/min/patterns/de.wasm
Binary file not shown.
Binary file modified docs/min/patterns/el-monoton.wasm
Binary file not shown.
Binary file modified docs/min/patterns/el-polyton.wasm
Binary file not shown.
Binary file modified docs/min/patterns/en-gb.wasm
Binary file not shown.
Binary file modified docs/min/patterns/en-us.wasm
Binary file not shown.
Binary file modified docs/min/patterns/eo.wasm
Binary file not shown.
Binary file modified docs/min/patterns/es.wasm
Binary file not shown.
Binary file modified docs/min/patterns/et.wasm
Binary file not shown.
Binary file modified docs/min/patterns/eu.wasm
Binary file not shown.
Binary file modified docs/min/patterns/fi.wasm
Binary file not shown.
Binary file modified docs/min/patterns/fr.wasm
Binary file not shown.
Binary file modified docs/min/patterns/fur.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ga.wasm
Binary file not shown.
Binary file modified docs/min/patterns/gl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/gu.wasm
Binary file not shown.
Binary file modified docs/min/patterns/hi.wasm
Binary file not shown.
Binary file modified docs/min/patterns/hr.wasm
Binary file not shown.
Binary file modified docs/min/patterns/hsb.wasm
Binary file not shown.
Binary file modified docs/min/patterns/hu.wasm
Binary file not shown.
Binary file modified docs/min/patterns/hy.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ia.wasm
Binary file not shown.
Binary file modified docs/min/patterns/id.wasm
Binary file not shown.
Binary file modified docs/min/patterns/is.wasm
Binary file not shown.
Binary file modified docs/min/patterns/it.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ka.wasm
Binary file not shown.
Binary file modified docs/min/patterns/kmr.wasm
Binary file not shown.
Binary file modified docs/min/patterns/kn.wasm
Binary file not shown.
Binary file modified docs/min/patterns/la.wasm
Binary file not shown.
Binary file modified docs/min/patterns/lt.wasm
Binary file not shown.
Binary file modified docs/min/patterns/lv.wasm
Binary file not shown.
Binary file modified docs/min/patterns/mk.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ml.wasm
Binary file not shown.
Binary file modified docs/min/patterns/mn-cyrl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/mr.wasm
Binary file not shown.
Binary file added docs/min/patterns/nb.wasm
Binary file not shown.
Binary file modified docs/min/patterns/nl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/nn.wasm
Binary file not shown.
Binary file added docs/min/patterns/no.wasm
Binary file not shown.
Binary file modified docs/min/patterns/oc.wasm
Binary file not shown.
Binary file modified docs/min/patterns/or.wasm
Binary file not shown.
Binary file modified docs/min/patterns/pa.wasm
Binary file not shown.
Binary file modified docs/min/patterns/pl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/pms.wasm
Binary file not shown.
Binary file modified docs/min/patterns/pt.wasm
Binary file not shown.
Binary file modified docs/min/patterns/rm.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ro.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ru.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sh-cyrl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sh-latn.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sk.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sr-cyrl.wasm
Binary file not shown.
Binary file modified docs/min/patterns/sv.wasm
Binary file not shown.
Binary file modified docs/min/patterns/ta.wasm
Binary file not shown.
Binary file modified docs/min/patterns/te.wasm
Binary file not shown.
Binary file modified docs/min/patterns/th.wasm
Binary file not shown.
Binary file modified docs/min/patterns/tk.wasm
Binary file not shown.
Binary file modified docs/min/patterns/tr.wasm
Binary file not shown.
Binary file modified docs/min/patterns/uk.wasm
Binary file not shown.
Binary file modified docs/min/patterns/zh-latn-pinyin.wasm
Binary file not shown.
9 changes: 5 additions & 4 deletions docs/min/testsuite/test28.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@
<script>
function assert(el) {
elCount += 1;
const H9YStyles = document.getElementsByTagName("style")[0];
switch (hide_mode) {
case "all":
testresult = testresult && (document.getElementById("H9Y_Styles").innerHTML === "html{visibility:hidden!important}");
testresult = testresult && (H9YStyles.innerHTML === "html{visibility:hidden!important}");
break;
case "element":
testresult = testresult && (document.getElementById("H9Y_Styles").innerHTML === ".hyphenate1{visibility:hidden!important}.hyphenate2{visibility:hidden!important}");
testresult = testresult && (H9YStyles.innerHTML === ".hyphenate1{visibility:hidden!important}.hyphenate2{visibility:hidden!important}");
break;
case "text":
testresult = testresult && (document.getElementById("H9Y_Styles").innerHTML === ".hyphenate1{color:transparent!important}.hyphenate2{color:transparent!important}");
testresult = testresult && (H9YStyles.innerHTML === ".hyphenate1{color:transparent!important}.hyphenate2{color:transparent!important}");
break;
default:
testresult = testresult && (document.getElementById("H9Y_Styles") === null);
testresult = testresult && (H9YStyles === null);
break;
}
if (elCount === 2) {
Expand Down
88 changes: 88 additions & 0 deletions docs/min/testsuite/test48.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test 048</title>
<script>
var Hyphenopoly = {
require: {
"de": "FORCEHYPHENOPOLY"
},
setup: {
selectors: {
".hyphenate": {
hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
assert();
}
}
};
function assert() {
var tests = 1;
var i = 1;
var test = "";
var ref = "";
var result = true;
while (i <= tests) {
test = document.getElementById("test" + i).innerHTML;
ref = document.getElementById("ref" + i).innerHTML;
if (test === ref) {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed</p>";
result = result && true;
} else {
document.getElementById("result").innerHTML += "<p style=\"background-color: #ffd6d6\">" + i + " failed</p>";
result = false;
}
i += 1;
}
if (parent != window) {
parent.postMessage(JSON.stringify({
desc: document.getElementById("desc").innerHTML,
index: 48,
result: (result ? "passed" : "failed")
}), window.location.href);
}
}
</script>
<script src="../Hyphenopoly_Loader.js"></script>
<style type="text/css">
body {
width:50%;
margin-left:25%;
margin-right:25%;
}

.test {
background-color: #D8E2F9;
}
.ref {
background-color: #FEEFC0;
}

.hyphenate {
hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
}
</style>
</head>
<body>
<div id="navigate"><a href="index.html">&Larr;&nbsp;Index</a>&nbsp;|&nbsp;<a href="test47.html">&larr;&nbsp;Prev</a>&nbsp;|&nbsp;<a href="test49.html">Next&nbsp;&rarr;</a></div>

<h1>Test 048</h1>
<p id="desc">Test special cases of german (de) patterns</p>
<div id="result"></div>
<hr>
<p id="test1" class="test hyphenate" lang="de">Darknet Regelgenerator</p>
<p id="ref1" class="ref" lang="de">Dark•net Re•gel•ge•nera•tor</p>

<hr>
<div><span class="test">Test</span> <span class="ref">Ref</span></div>

</body>
</html>
88 changes: 88 additions & 0 deletions docs/min/testsuite/test49.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test 049</title>
<script>
var Hyphenopoly = {
require: {
"hu": "FORCEHYPHENOPOLY"
},
setup: {
selectors: {
".hyphenate": {
hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
assert();
}
}
};
function assert() {
var tests = 1;
var i = 1;
var test = "";
var ref = "";
var result = true;
while (i <= tests) {
test = document.getElementById("test" + i).innerHTML;
ref = document.getElementById("ref" + i).innerHTML;
if (test === ref) {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed</p>";
result = result && true;
} else {
document.getElementById("result").innerHTML += "<p style=\"background-color: #ffd6d6\">" + i + " failed</p>";
result = false;
}
i += 1;
}
if (parent != window) {
parent.postMessage(JSON.stringify({
desc: document.getElementById("desc").innerHTML,
index: 49,
result: (result ? "passed" : "failed")
}), window.location.href);
}
}
</script>
<script src="../Hyphenopoly_Loader.js?var=12345"></script>
<style type="text/css">
body {
width:50%;
margin-left:25%;
margin-right:25%;
}

.test {
background-color: #D8E2F9;
}
.ref {
background-color: #FEEFC0;
}

.hyphenate {
hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
}
</style>
</head>
<body>
<div id="navigate"><a href="index.html">&Larr;&nbsp;Index</a>&nbsp;|&nbsp;<a href="test48.html">&larr;&nbsp;Prev</a>&nbsp;|&nbsp;<a href="test50.html">Next&nbsp;&rarr;</a></div>

<h1>Test 049</h1>
<p id="desc">Load Hyphenopoly_Loader.js with a GET-parameter</p>
<div id="result"></div>
<hr>
<p id="test1" class="test hyphenate" lang="hu">automatikusan</p>
<p id="ref1" class="ref" lang="hu">au•to•ma•ti•ku•san</p>

<hr>
<div><span class="test">Test</span> <span class="ref">Ref</span></div>

</body>
</html>
Loading

0 comments on commit 301a9bd

Please sign in to comment.