rsvp-reader/alt-implementations/readifry-master/hyphenator/testsuite/test97.html

64 lines
77 KiB
HTML
Raw Normal View History

2019-12-08 09:19:55 +01:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Hyphenator.js &ndash; Test 97</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
width:50%;
margin-left:25%;
margin-right:25%;
}
#test {
background-color: #ffd6d6;
}
#ref {
background-color: #d6ffd6;
}
</style>
<script src="../Hyphenator.js" type="text/javascript"></script>
<script type="text/javascript">
//clear Storage
if (window.localStorage) {
window.localStorage.clear();
}
if (window.sessionStorage) {
window.sessionStorage.clear();
}
//store outdated patterns obj
window.localStorage.setItem('Hyphenator_en', '{"leftmin":2,"rightmin":2,"shortestPattern":2,"longestPattern":9,"specialChars":"","patterns":{"xq":"x1q","ei":"ei2","ej":"e1j","ef":"e1f","to":"1to","tl":"2tl","ou":"ou2","wc":"w3c","tu":"1tu","eq":"e1q","tv":"4tv","tw":"tw4","ty":"1ty","oq":"o1q","tz":"4tz","tc":"4tc","dy":"d2y","dw":"d1w","dv":"d1v","du":"1du","ta":"1ta","eu":"4eu","pa":"1pa","sy":"s4y","dr":"1dr","oo":"oo2","dp":"d1p","sw":"sw2","sv":"4sv","do":"1do","dm":"d1m","fa":"1fa","dj":"d1j","su":"1su","fd":"4fd","on":"o2n","fh":"4fh","fi":"1fi","fm":"4fm","fn":"4fn","fo":"1fo","pd":"pd4","ft":"2ft","fu":"3fu","fy":"1fy","ga":"1ga","ss":"2ss","sr":"s1r","uj":"u5j","dc":"d5c","db":"d1b","gb":"g3b","gd":"gd4","uk":"4uk","ok":"2ok","cy":"1cy","oj":"o5j","gl":"gl2","gm":"g1m","pf":"4pf","pg":"4pg","go":"1go","gp":"g3p","gr":"1gr","so":"1so","cq":"c1q","gs":"gs2","oi":"oi2","gw":"g3w","gy":"1gy","sk":"sk2","co":"1co","cn":"c5n","hb":"h1b","ck":"ck1","hf":"h1f","hh":"h1h","hk":"4hk","zo":"1zo","ci":"1ci","zm":"4zm","sh":"s2h","hw":"h1w","ch":"2ch","zl":"5zl","id":"2id","cc":"c3c","us":"2us","ig":"2ig","ih":"i3h","ij":"i3j","ik":"4ik","ca":"1ca","bv":"b1v","sa":"sa2","bt":"2bt","rw":"r1w","bp":"4bp","io":"2io","ip":"2ip","uu":"u3u","ir":"4ir","bk":"bk4","bj":"b1j","va":"1va","ze":"2ze","bf":"2bf","oa":"4oa","rp":"r1p","nz":"4nz","zb":"4zb","iu":"i1u","iv":"2iv","iy":"4iy","ja":"5ja","je":"1je","za":"za1","yw":"y1w","kb":"k1b","kf":"k3f","kh":"kh4","ki":"k1i","kk":"kk4","kl":"k1l","km":"k1m","kt":"k5t","kw":"k1w","ld":"2ld","rm":"r1m","nt":"n1t","lf":"2lf","rl":"r1l","rj":"r3j","lj":"4lj","ll":"l1l","lm":"2lm","lp":"2lp","lt":"4lt","nr":"n1r","rh":"rh4","vy":"v4y","nq":"n1q","ly":"1ly","ma":"1ma","wb":"w1b","rg":"rg2","rf":"r1f","wi":"wi2","ao":"4ao","mh":"2mh","wk":"w4k","rc":"r1c","wp":"w5p","mk":"4mk","mm":"m1m","mo":"1mo","wt":"4wt","wy":"wy4","xa":"x1a","rb":"r1b","an":"a2n","nm":"n5m","xe":"x1e","xh":"x1h","mt":"4mt","xi":"x3i","mu":"1mu","qu":"qu2","pw":"p3w","xo":"x3o","mw":"4mw","aj":"a1j","xp":"x3p","na":"1na","ai":"ai2","xu":"x1u","af":"a2f","xx":"xx4","yb":"y1b","ad":"a2d","nj":"n1j","yc":"y1c","nf":"n3f","pr":"pr2","yd":"y1d","yi":"y1i","dry":"4dry","nit":"n2it","nio":"ni4o","nin":"n1in","nim":"n1im","_up":"_up3","nik":"nik4","nid":"ni4d","ygi":"y5gi","yet":"ye4t","yes":"yes4","_ye":"_ye4","ab_":"4ab_","nhe":"nhe4","nha":"nha4","abe":"abe2","ngy":"n2gy","ngu":"n1gu","yer":"y1er","yee":"y5ee","ppe":"p2pe","abr":"4abr","yla":"y3la","ylo":"y3lo","new":"ne4w","nev":"ne4v","nes":"1nes","ych":"y3ch","ner":"n1er","neq":"ne2q","neo":"3neo","nen":"1nen","pse":"p2se","psh":"ps4h","yce":"y2ce","ylu":"y5lu","ned":"2ned","nec":"ne2c","yme":"yme4","nk":"4nk2","yat":"y5at","adi":"2adi","neb":"ne2b","ne_":"2ne_","yac":"y5ac","pt":"2p1t","pte":"p2te","nde":"n1de","ncu":"n1cu","ncr":"n1cr","ynd":"yn5d","pth":"p2th","adu":"4adu","ptw":"p4tw","pub":"pub3","aer":"ae4r","xua":"xu3a","yng":"yn5g","aff":"aff4","pue":"pue4","nau":"n2au","pp":"4p1p","puf":"puf4","nat":"n2at","agi":"ag1i","pum":"pu4m","agn":"ag1n","ago":"a2go","nas":"n4as","xti":"x3ti","xt":"x1t2","pun":"pu2n","agy":"a4gy","aha":"a3ha","ahe":"a3he","ahl":"ah4l","aho":"a3ho","_ti":"_ti2","aia":"a5ia","nan":"n2an","pus":"5pus","put":"pu2t","nak":"nak4","_th":"_th2","nkl":"n1kl","_te":"_te4","_ta":"_ta4","muu":"mu4u","mup":"4mup","mun":"mun2","mum":"3mum","ale":"2ale","xob":"x4ob","_sy":"_sy2","ynx":"5ynx","ali":"al1i","_st":"_st4","yo":"y1o4","xic":"xi5c","xia":"xi5a","alm":"4alm","_si":"_si2","_sh":"_sh2","msi":"m5si","xhu":"xhu4","msh":"m4sh","mr":"4m3r","ama":"4ama","mpy":"m2py","rab":"2rab","mpi":"m2pi","xhi":"xhi2","yod":"yo5d","rai":"r2ai","mp":"4m1p","mov":"mo2v","mos":"mos2","xed":"x2ed","mor":"mo2r","nl":"4n1l","amo":"a2mo","ras":"r2as","xc":"x3c2","xas":"xas5","yom":"yom4","xap":"x4ap","xam":"xam3","nme":"nme4","mok":"4mok","rbi":"rbi2","nne":"nne4","and":"4and","yos":"y4os","pot":"p4ot","noe":"3noe","mno":"mn4o","mna":"mn4a","mn":"4m1n","nog":"4nog","ml":"4m1l","ang":"2ang","wsl":"ws4l","pos":"1pos","wsh":"w3sh","wri":"wri4","wra":"wra4","ypi":"yp3i","wo
if (parent != window) {
Hyphenator.config({
'onhyphenationdonecallback': function () {
var t1 = document.getElementById('test').innerHTML,
t2 = document.getElementById('ref').innerHTML,
desc = document.getElementById('desc').firstChild.data,
msg = {
desc: desc,
index: 97
};
if (t1 == t2) {
msg.result = 'passed';
} else {
msg.result = 'failed';
}
parent.postMessage(JSON.stringify(msg), window.location.href);
}
});
}
Hyphenator.config({
hyphenchar:'|'
});
Hyphenator.run();
</script>
</head>
<body>
<p><a href="index.html">&lt;&lt;- index</a> | <a href="test96.html">&lt;- Prev</a> | <a href="test98.html">Next -&gt;</a></p>
<h1>Test 97</h1>
<p id="desc">Run Hyphenator with outdated patterns in DOMStorage.</p>
<p id="test" class="hyphenate" lang="en">Hyphenation</p>
<p id="ref">Hy|phen|ation</p>
</body>
</html>