Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Oct 13, 2017
2 parents 4e59a94 + 3db1b00 commit 57f7d4f
Show file tree
Hide file tree
Showing 6 changed files with 551 additions and 536 deletions.
1,009 changes: 509 additions & 500 deletions Hyphenator.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Hyphenator_Loader.js
@@ -1,4 +1,4 @@
/** @license Hyphenator_Loader 5.2.1 - client side hyphenation for webbrowsers
/** @license Hyphenator_Loader 5.3.0 - client side hyphenation for webbrowsers
* Copyright (C) 2017 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenator
*
Expand All @@ -11,7 +11,7 @@
* @description Checks if there's CSS-hyphenation available for the given languages and
* loads and runs Hyphenator if there's no CSS-hyphenation
* @author Mathias Nater, <a href = "mailto:mathias@mnn.ch">mathias@mnn.ch</a>
* @version 5.2.1
* @version 5.3.0
* @namespace Holds all methods and properties
*/

Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "hyphenator",
"version": "5.2.1",
"version": "5.3.0",
"main": "Hyphenator.js",
"ignore": [
"favicon.ico"
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "hyphenator.js",
"version": "5.2.1",
"version": "5.3.0",
"description": "Client-side hyphenation of HTML-Documents",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions testsuite/test13.html
Expand Up @@ -66,6 +66,9 @@ <h1>Test 13</h1>
<a href="#">http://www.domain.com/?adid=b2plbm5pbmdzLjY1NDM1LjU0MDNAbmluZXNoYXJwLmFwbGl0cmFrLmNvbQ</a><br>
<a href="#">http://www.einsehrlangerdomainname.com/</a><br>
<a href="#">http://www.domain.longtld/</a><br>
<a href="#">http://www.domain.co.uk/</a><br>
<a href="#">http://www.domain.co.uk</a><br>
<a href="#">http://www.domain.co.uk/file.html</a><br>
</p>

<p id="ref">
Expand All @@ -84,6 +87,9 @@ <h1>Test 13</h1>
<a href="#">http://•www.•domain.•com/?•adi•d=b2p•lbm5•pbmd•zLjY•1NDM•1LjU•0MDN•Abml•uZXN•oYXJ•wLmF•wbGl•0cmF•rLmN•vbQ</a><br>
<a href="#">http://•www.•ein•sehr•lang•erdo•main•name.•com/</a><br>
<a href="#">http://•www.•domain.•longtld/</a><br>
<a href="#">http://•www.•domain.•co.•uk/</a><br>
<a href="#">http://•www.•domain.•co.•uk</a><br>
<a href="#">http://•www.•domain.•co.•uk/•file.•html</a><br>
</p>

</body>
Expand Down
64 changes: 32 additions & 32 deletions testsuite/test35.html
Expand Up @@ -11,51 +11,51 @@
margin-right:25%;
}
h2 + p {
background-color: #ffd6d6;
background-color: #ffd6d6;
}
h2 + p + p {
background-color: #d6ffd6;
background-color: #d6ffd6;
}
</style>
<script src="../Hyphenator.js" type="text/javascript"></script>
<script type="text/javascript">
if (parent != window) {
Hyphenator.config({
'onhyphenationdonecallback': function () {
var i, last = 6, t1, t2, r = true,
desc = document.getElementById('desc').firstChild.data,
msg = {
desc: desc,
index: 35
};
for (i = 1; i <= last; i++) {
t1 = document.getElementById('test' + i).innerHTML;
t2 = document.getElementById('ref' + i).innerHTML;
r = r && (t1 == t2);
}
if (r) {
msg.result = 'passed';
} else {
msg.result = 'failed';
}
parent.postMessage(JSON.stringify(msg), window.location.href);
}
});
}
Hyphenator.config({minwordlength: 4, hyphenchar: '|', storagetype: 'none', safecopy: false});
Hyphenator.run();
if (parent != window) {
Hyphenator.config({
'onhyphenationdonecallback': function () {
var i, last = 7, t1, t2, r = true,
desc = document.getElementById('desc').firstChild.data,
msg = {
desc: desc,
index: 35
};
for (i = 1; i <= last; i++) {
t1 = document.getElementById('test' + i).innerHTML;
t2 = document.getElementById('ref' + i).innerHTML;
r = r && (t1 == t2);
}
if (r) {
msg.result = 'passed';
} else {
msg.result = 'failed';
}
parent.postMessage(JSON.stringify(msg), window.location.href);
}
});
}
Hyphenator.config({minwordlength: 4, hyphenchar: '|', storagetype: 'none', safecopy: false});
Hyphenator.run();
</script>
</head>
<body>
<p><a href="index.html">&lt;&lt;- index</a> | <a href="test34.html">&lt;- Prev</a> | <a href="test36.html">Next -&gt;</a></p>
<p><a href="index.html">&lt;&lt;- index</a> | <a href="test34.html">&lt;- Prev</a> | <a href="test36.html">Next -&gt;</a></p>
<h1>Test 35</h1>
<p id="desc">Check support for other languages.</p>
<h2>Armenian</h2>
<h2>Armenian</h2>
<p id="test1" class="hyphenate" lang="hy">Հայերենն ունի վեց ձայնավոր, մեկ կիսաձայն և երեսուն բաղաձայն հնչյուններ</p>
<p id="ref1" lang="hy">Հա|յե|րենն ունի վեց ձայնա|վոր, մեկ կի|սա|ձայն և ե|րե|սուն բա|ղա|ձայն հնչյուններ</p>
<h2>Belarusian</h2>
<p id="ref1" lang="hy">Հա|յե|րենն ունի վեց ձայնա|վոր, մեկ կի|սա|ձայն և ե|րե|սուն բա|ղա|ձայն հնչյուններ</p>
<h2>Belarusian</h2>
<p id="test2" class="hyphenate" lang="be">БЕЛАРУ́СКАЯ МО́ВА, мова беларусаў, уваходзіць у сям’ю індаеўрапейскіх моў, яе славянскай групы і ўсходнеславянскіх моваў падгрупы, на якой размаўляюць у Беларусі і па ўсім свеце, галоўным чынам у Расіі, Украіне, Польшчы.</p>
<p id="ref2" lang="be">БЕ|ЛА|РУ́СКАЯ МО́ВА, мо|ва бе|ла|ру|саў, ува|хо|дзіць у сям’ю інда|еў|ра|пей|скіх моў, яе сла|вянскай гру|пы і ўсхо|дне|сла|вянскіх мо|ваў па|д|гру|пы, на якой ра|з|маў|ля|юць у Бе|ла|ру|сі і па ўсім све|це, га|лоў|ным чы|нам у Ра|сіі, Укра|іне, По|ль|шчы.</p>
<p id="ref2" lang="be">БЕ|ЛА|РУ́СКАЯ МО́ВА, мо|ва бе|ла|ру|саў, ува|хо|дзіць у сям’ю інда|еў|ра|пей|скіх моў, яе сла|вянскай гру|пы і ўсхо|дне|сла|вянскіх мо|ваў па|д|гру|пы, на якой ра|з|маў|ля|юць у Бе|ла|ру|сі і па ўсім све|це, га|лоў|ным чы|нам у Ра|сіі, Укра|іне, По|ль|шчы.</p>
<h2>Russian</h2>
<p id="test3" class="hyphenate" lang="ru">Типогра́фика — графическое оформление печатного текста посредством набора и вёрстки с использованием норм и правил, специфических для данного языка.</p>
<p id="ref3" lang="ru">Ти|по|гра́фи|ка — гра|фи|че|ское оформ|ле|ние пе|чат|но|го тек|ста по|сред|ством на|бо|ра и вёрст|ки с ис|поль|зо|ва|ни|ем норм и пра|вил, спе|ци|фи|че|ских для дан|но|го язы|ка.</p>
Expand Down

0 comments on commit 57f7d4f

Please sign in to comment.