Skip to content

Commit

Permalink
Prepare Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Nov 5, 2020
1 parent f1414f0 commit 2aee49f
Show file tree
Hide file tree
Showing 80 changed files with 105 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Version History

## Version tbd (2020-11-tbd)
## Version 4.8.1 (2020-11-05)
### Fixed
* Don't hyphenate words with (non-normalized) COMBINING ACCENTS (#147)
* bump devDependencies

### Changed
* use TextDecoder instead of StringDecoder
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.8.0 - client side hyphenation for webbrowsers
* @license Hyphenopoly 4.8.1 - 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.8.0 - client side hyphenation
* @license Hyphenopoly_Loader 4.8.1 - 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.

2 changes: 1 addition & 1 deletion 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.
90 changes: 90 additions & 0 deletions docs/min/testsuite/test50.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test 050</title>
<script>
var Hyphenopoly = {
require: {
"fr": "FORCEHYPHENOPOLY"
},
setup: {
normalize: false,
selectors: {
".hyphenate": {
hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
assert();
}
}
};
function assert() {
var tests = 2;
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: 50,
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;
}
</style>
</head>
<body>
<div id="navigate"><a href="index.html">&Larr;&nbsp;Index</a>&nbsp;|&nbsp;<a href="test49.html">&larr;&nbsp;Prev</a>&nbsp;|&nbsp;<a href="test51.html">Next&nbsp;&rarr;</a></div>

<h1>Test 050</h1>
<p id="desc">Don't hyphenate words with combining accents.</p>
<div id="result"></div>
<hr>
<h2>è = LATIN SMALL LETTER E WITH GRAVE</h2>
<p id="test1" class="test hyphenate" lang="fr">critères</p>
<p id="ref1" class="ref" lang="fr">cri•tères</p>
<h2>è = LATIN SMALL LETTER E + COMBINING GRAVE ACCENT</h2>
<p id="test2" class="test hyphenate" lang="fr">critères</p>
<p id="ref2" class="ref" lang="fr">critères</p>

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

</body>
</html>
6 changes: 3 additions & 3 deletions docs/min/testsuite/test6.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ <h2>1: hy</h2>
<p id="ref1" class="ref" lang="hy">Հա|յե|րենն ունի վեց ձայնա|վոր, մեկ կի|սա|ձայն և ե|րե|սուն բա|ղա|ձայն հնչյուններ</p>
<h2>2: be</h2>
<p id="test2" class="test hyphenate" lang="be">БЕЛАРУ́СКАЯ МО́ВА, мова беларусаў, уваходзіць у сям’ю індаеўрапейскіх моў, яе славянскай групы і ўсходнеславянскіх моваў падгрупы, на якой размаўляюць у Беларусі і па ўсім свеце, галоўным чынам у Расіі, Украіне, Польшчы.</p>
<p id="ref2" class="ref" lang="be">БЕ|ЛА|РУ́СКАЯ МО́ВА, мо|ва бе|ла|ру|саў, ува|хо|дзіць у сям’ю ін|да|еў|ра|пей|с|кіх моў, яе сла|вя|н|с|кай гру|пы і ўс|хо|д|не|с|ла|вя|н|с|кіх мо|ваў пад|гру|пы, на якой раз|маў|ля|юць у Бе|ла|ру|сі і па ўсім све|це, га|лоў|ным чы|нам у Ра|сіі, Ук|ра|і|не, Поль|ш|чы.</p>
<p id="ref2" class="ref" lang="be">БЕЛАРУ́СКАЯ МО́ВА, мо|ва бе|ла|ру|саў, ува|хо|дзіць у сям’ю ін|да|еў|ра|пей|с|кіх моў, яе сла|вя|н|с|кай гру|пы і ўс|хо|д|не|с|ла|вя|н|с|кіх мо|ваў пад|гру|пы, на якой раз|маў|ля|юць у Бе|ла|ру|сі і па ўсім све|це, га|лоў|ным чы|нам у Ра|сіі, Ук|ра|і|не, Поль|ш|чы.</p>
<h2>3: ru</h2>
<p id="test3" class="test hyphenate" lang="ru">Типогра́фика — графическое оформление печатного текста посредством набора и вёрстки с использованием норм и правил, специфических для данного языка.</p>
<p id="ref3" class="ref" lang="ru">Ти|по|гра́фи|ка — гра|фи|че|ское оформ|ле|ние пе|чат|но|го тек|ста по|сред|ством на|бо|ра и вёрст|ки с ис|поль|зо|ва|ни|ем норм и пра|вил, спе|ци|фи|че|ских для дан|но|го язы|ка.</p>
<p id="ref3" class="ref" lang="ru">Типогра́фика — гра|фи|че|ское оформ|ле|ние пе|чат|но|го тек|ста по|сред|ством на|бо|ра и вёрст|ки с ис|поль|зо|ва|ни|ем норм и пра|вил, спе|ци|фи|че|ских для дан|но|го язы|ка.</p>
<h2>4: sr-cyrl</h2>
<p id="test4" class="test hyphenate" lang="sr-cyrl">Штампарија се примарно бави израдом штампаних пословних образаца који имају разноврсну примену. Наше пословне обрасце користи велики број задовољних клијената из разних делатности. Такође, се бавимо и дигиталном штампом.</p>
<p id="ref4" class="ref" lang="sr-cyrl">Шта|мпа|ри|ја се при|мар|но ба|ви из|ра|дом шта|мпа|них по|слов|них обра|за|ца ко|ји има|ју раз|но|вр|сну при|ме|ну. На|ше по|слов|не об|ра|сце ко|ри|сти ве|ли|ки број за|до|вољ|них кли|је|на|та из раз|них де|лат|но|сти. Та|ко|ђе, се ба|ви|мо и ди|ги|та|лном шта|мпом.</p>
Expand All @@ -123,7 +123,7 @@ <h2>8: as</h2>
<p id="ref8" class="ref" lang="as">এই প্ৰব|ন্ধ|টো অ|স|ম|ত প্ৰচ|লি|ত মূল ভা|ষা|টো‎ৰ বি|ষ|য়ে। আন ব্যৱহাৰৰ বা|বে অ|স|মী|য়া (দ্ব্যৰ্থ|তা দূৰীকৰণ পৃ|ষ্ঠা) চা|ও|ক।</p>
<h2>9: bg</h2>
<p id="test9" class="test hyphenate" lang="bg">Бъ̀лгарският езѝк е индоевропейски език от групата на южнославянските езици, като образува неговата източна подгрупа.</p>
<p id="ref9" class="ref" lang="bg">Бъ̀лгар|с|ки|ят езѝк е ин|до|ев|ро|пейс|ки език от гру|па|та на юж|нос|ла|вян|с|ки|те ези|ци, ка|то об|ра|зу|ва не|го|ва|та из|точ|на под|гру|па.</p>
<p id="ref9" class="ref" lang="bg">Бъ̀лгарският езѝк е ин|до|ев|ро|пейс|ки език от гру|па|та на юж|нос|ла|вян|с|ки|те ези|ци, ка|то об|ра|зу|ва не|го|ва|та из|точ|на под|гру|па.</p>
<h2>10: bn</h2>
<p id="test10" class="test hyphenate" lang="bn">বাংলা নামের অন্যান্য নিবন্ধের জন্য, বাংলা (দ্ব্যর্থতা নিরসন) দেখুন।</p>
<p id="ref10" class="ref" lang="bn">বাং|লা না|মে|র অ|ন্যা|ন্য নি|ব|ন্ধে|র জ|ন্য, বাং|লা (দ্ব্য|র্থ|তা নি|র|স|ন) দে|খু|ন।</p>
Expand Down
3 changes: 2 additions & 1 deletion docs/min/testsuite/testdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
{"exec": true, "path": "test46.html"},
{"exec": true, "path": "test47.html"},
{"exec": true, "path": "test48.html"},
{"exec": true, "path": "test49.html"}
{"exec": true, "path": "test49.html"},
{"exec": true, "path": "test50.html"}
];
var testframe = document.getElementById("testframe");
var currentTest = 1;
Expand Down
2 changes: 1 addition & 1 deletion hyphenopoly.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly.module.js 4.8.0 - hyphenation for node
* @license Hyphenopoly.module.js 4.8.1 - hyphenation for node
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyphenopoly",
"version": "4.8.0",
"version": "4.8.1",
"description": "Hyphenation for node and Polyfill for client-side hyphenation.",
"keywords": [
"hyphenation",
Expand Down

0 comments on commit 2aee49f

Please sign in to comment.