Skip to content

Commit

Permalink
Prepare Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Jan 5, 2021
1 parent fbd5e18 commit f34f694
Show file tree
Hide file tree
Showing 90 changed files with 123 additions and 41 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Version History

## Version 4.10.0 (2021-mm-dd)
## Version 4.10.0 (2021-01-05)
### Fixed
* Prevent error on elements with lang="zxx" (#160)
* Refactor code to determine language of elements
* Refactor code to determine language of elements (79735497cb51f15fbc6932dce809293f4cd1050e)
* Enhance wasm.hyphenate() (1567e276ccdae2ca1b611c01b51e341e6ddb9dca)
* bump devDependencies

## Version 4.9.0 (2020-12-01)
Expand Down
4 changes: 2 additions & 2 deletions Hyphenopoly.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license Hyphenopoly 4.9.0 - client side hyphenation for webbrowsers
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* @license Hyphenopoly 4.10.0 - client side hyphenation for webbrowsers
* ©2021 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
* Released under the MIT license
Expand Down
4 changes: 2 additions & 2 deletions Hyphenopoly_Loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license Hyphenopoly_Loader 4.9.0 - client side hyphenation
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* @license Hyphenopoly_Loader 4.10.0 - client side hyphenation
* ©2021 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
* Released under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Mathias Nater
Copyright (c) 2021 Mathias Nater

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 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 modified 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 modified 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.
4 changes: 3 additions & 1 deletion docs/min/testsuite/test20.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
};
function assert() {
var tests = 4;
var tests = 5;
var i = 1;
var test = "";
var ref = "";
Expand Down Expand Up @@ -91,6 +91,8 @@ <h1>Test 020</h1>
<p id="ref3" class="ref" lang="de"><span lang="en-us">ex•cep•tion</span></p>
<p id="test4" class="test hyphenate"><span>exception</span></p>
<p id="ref4" class="ref"><span>ex•cep•tion</span></p>
<p id="test5" class="test hyphenate" lang=""><span>exception</span></p>
<p id="ref5" class="ref" lang=""><span>ex•cep•tion</span></p>
<hr>
<div><span class="test">Test</span> <span class="ref">Ref</span></div>

Expand Down
100 changes: 100 additions & 0 deletions docs/min/testsuite/test51.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test 051</title>
<script>
var Hyphenopoly = {
require: {
"en-us": "FORCEHYPHENOPOLY"
},
setup: {
selectors: {
".hyphenate": {
hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
assert();
}
}
};
function assert() {
var tests = 4;
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 += "<span style=\"background-color: #d6ffd6\">" + (function (i) {
return (i < 10) ? "0" + i : i;
}(i)) + "</span> ";
result = result && true;
} else {
document.getElementById("result").innerHTML += "<span style=\"background-color: #ffd6d6\">" + (function (i) {
return (i < 10) ? "0" + i : i;
}(i)) + "</span> ";
result = false;
}
i += 1;
}
if (parent != window) {
parent.postMessage(JSON.stringify({
desc: document.getElementById("desc").innerHTML,
index: 51,
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="test50.html">&larr;&nbsp;Prev</a>&nbsp;|&nbsp;<a href="test52.html">Next&nbsp;&rarr;</a></div>

<h1>Test 052</h1>
<p id="desc">Check handling of lang="zxx"</p>
<div id="result"></div>
<hr>
<p id="test1" class="test hyphenate">exception</p>
<p id="ref1" class="ref">ex•cep•tion</p>

<p id="test2" class="test hyphenate" lang="zxx">nonlinguistic</p>
<p id="ref2" class="ref" lang="zxx">nonlinguistic</p>

<p id="test3" class="test hyphenate">hyphenation <span lang="zxx">nonlinguistic</span></p>
<p id="ref3" class="ref">hy•phen•ation <span lang="zxx">nonlinguistic</span></p>

<p id="test4" class="test hyphenate" lang="zxx">nonlinguistic <span lang="en-us">hyphenation</span></p>
<p id="ref4" class="ref" lang="zxx">nonlinguistic <span lang="en-us">hy•phen•ation</span></p>
<hr>
<div><span class="test">Test</span> <span class="ref">Ref</span></div>

</body>
</html>
3 changes: 2 additions & 1 deletion docs/min/testsuite/testdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
{"exec": true, "path": "test47.html"},
{"exec": true, "path": "test48.html"},
{"exec": true, "path": "test49.html"},
{"exec": true, "path": "test50.html"}
{"exec": true, "path": "test50.html"},
{"exec": true, "path": "test51.html"}
];
var testframe = document.getElementById("testframe");
var currentTest = 1;
Expand Down
1 change: 0 additions & 1 deletion examples/webpack/dist/index.html

This file was deleted.

Loading

0 comments on commit f34f694

Please sign in to comment.