Skip to content

Commit

Permalink
chore: update german patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Jul 22, 2020
1 parent 8b65764 commit 6997116
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 8 deletions.
Binary file modified lang/de/de.wasm
Binary file not shown.
Binary file modified lang/de/src/de.hpb
Binary file not shown.
16 changes: 8 additions & 8 deletions lang/de/src/g.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const to: i32 = 3425420;
export const po: i32 = 3425550;
export const pl: i32 = 81727;
export const to: i32 = 4165136;
export const po: i32 = 4165266;
export const pl: i32 = 90471;
export const vs: i32 = 1536;
export const pt: i32 = 77688;
export const wo: i32 = 3423740;
export const tw: i32 = 3423868;
export const hp: i32 = 3423932;
export const hw: i32 = 3423996;
export const pt: i32 = 83580;
export const wo: i32 = 4163456;
export const tw: i32 = 4163584;
export const hp: i32 = 4163648;
export const hw: i32 = 4163712;
export const lm: i32 = 2;
export const rm: i32 = 2;
Binary file modified patterns/de.wasm
Binary file not shown.
88 changes: 88 additions & 0 deletions 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>

0 comments on commit 6997116

Please sign in to comment.