| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | 
							- <!DOCTYPE html>
 
- <html>
 
-     <head>
 
-         <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 
-         <title>Test 008</title>
 
-         <script>
 
-         var Hyphenopoly = {
 
-             require: {
 
-                 "en-us": "FORCEHYPHENOPOLY"
 
-             },
 
-             setup: {
 
-                 selectors: {
 
-                     ".class1": {
 
-                         hyphen: "·",
 
-                         minWordLength: 10,
 
-                         leftmin: 3
 
-                     },
 
-                     ".class2": {
 
-                         hyphen: "|",
 
-                         compound: "auto"
 
-                     },
 
-                     ".class3": {
 
-                         hyphen: "¬",
 
-                         rightmin: 6
 
-                     },
 
-                     ".class4": {
 
-                         hyphen: "•"
 
-                     }
 
-                 }
 
-             },
 
-             handleEvent: {
 
-                 hyphenopolyEnd: function (e) {
 
-                     assert();
 
-                 }
 
-             }
 
-         };
 
-         </script>
 
-         <script src="../Hyphenopoly_Loader.js"></script>
 
-         <script>
 
-         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 += "<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: 8,
 
-                     result: (result ? "passed" : "failed")
 
-                 }), window.location.href);
 
-             }
 
-         }
 
-         if (!Hyphenopoly) {
 
-             document.addEventListener("DOMContentLoaded", function() {
 
-                 assert();
 
-             });
 
-         }
 
-         </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">↞ Index</a> | <a href="test7.html">← Prev</a> | <a href="test9.html">Next →</a></div>
 
-         <h1>Test 008</h1>
 
-         <p id="desc">Class-based settings.</p>
 
-         <div id="result"></div>
 
-         <hr>
 
-         <h2>1: class1</h2>
 
-         <p id="test1" class="test class1" lang="en-us">hyphenation algorithm</p>
 
-         <p id="ref1" class="ref" lang="en-us">hyphen·ation algorithm</p>
 
-         <h2>2: class2</h2>
 
-         <p id="test2" class="test class2" lang="en-us">hyphenation algorithm</p>
 
-         <p id="ref2" class="ref" lang="en-us">hy|phen|ation al|go|rithm</p>
 
-         <h2>3: class3</h2>
 
-         <p id="test3" class="test class3" lang="en-us">hyphenation algorithm</p>
 
-         <p id="ref3" class="ref" lang="en-us">hy¬phenation al¬gorithm</p>
 
-         <h2>4: class4 (subelement)</h2>
 
-         <p id="test4" class="test class3" lang="en-us">superclass <span class="class4">subclass</span></p>
 
-         <p id="ref4" class="ref" lang="en-us">su¬perclass <span class="class4">sub•class</span></p>
 
-         <hr>
 
-         <div><span class="test">Test</span> <span class="ref">Ref</span></div>
 
-     </body>
 
- </html>
 
 
  |