227 lines
39 KiB
HTML
227 lines
39 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||
|
"http://www.w3.org/TR/html4/strict.dtd">
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>Hyphenator – reducePatternSet</title>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
|
<style type="text/css">
|
||
|
body {
|
||
|
font: 11px/1.8em Verdana;
|
||
|
margin-left: 20%;
|
||
|
margin-right:20%;
|
||
|
background-color:#EEEEEE;
|
||
|
width:60em;
|
||
|
}
|
||
|
fieldset {
|
||
|
background-color:#FFFFFF;
|
||
|
border:1px solid #AAAAAA;
|
||
|
margin:1em 0em;
|
||
|
padding: 0em 1em 2em 1em;
|
||
|
}
|
||
|
h1 {
|
||
|
background-color:#FFFFFF;
|
||
|
border:1px solid #AAAAAA;
|
||
|
margin:1em 0em;
|
||
|
color: #404041;
|
||
|
text-align:right;
|
||
|
|
||
|
}
|
||
|
img {
|
||
|
vertical-align:middle;
|
||
|
}
|
||
|
.info_btn {
|
||
|
vertical-align:text-bottom;
|
||
|
cursor:pointer;
|
||
|
}
|
||
|
.info_box {
|
||
|
display:none;
|
||
|
border:1px dashed #AAAAAA;
|
||
|
padding:0.2em 1em;
|
||
|
font-style:italic;
|
||
|
}
|
||
|
.multicol {
|
||
|
text-align:justify;
|
||
|
width: 28em;
|
||
|
float:left;
|
||
|
margin:0em 1em;
|
||
|
}
|
||
|
ul.multicol {
|
||
|
width:21em;
|
||
|
padding:0;
|
||
|
margin:0;
|
||
|
|
||
|
}
|
||
|
li {
|
||
|
list-style:none;
|
||
|
}
|
||
|
form {
|
||
|
clear: both;
|
||
|
padding-top:2em;
|
||
|
}
|
||
|
legend {
|
||
|
border:1px solid #AAAAAA;
|
||
|
background-color:#FFFFFF;
|
||
|
padding:0em 1em;
|
||
|
font-style: italic;
|
||
|
font-weight: 200;
|
||
|
}
|
||
|
input {
|
||
|
margin-right:1em;
|
||
|
}
|
||
|
textarea {
|
||
|
width:100%;
|
||
|
}
|
||
|
.grayedout {
|
||
|
border: 1px solid grey;
|
||
|
color: grey;
|
||
|
}
|
||
|
</style>
|
||
|
<script src="Hyphenator.js" type="text/javascript"></script>
|
||
|
<script src="patterns/be.js" type="text/javascript"></script>
|
||
|
<script src="patterns/bn.js" type="text/javascript"></script>
|
||
|
<script src="patterns/ca.js" type="text/javascript"></script>
|
||
|
<script src="patterns/cs.js" type="text/javascript"></script>
|
||
|
<script src="patterns/da.js" type="text/javascript"></script>
|
||
|
<script src="patterns/de.js" type="text/javascript"></script>
|
||
|
<script src="patterns/el-monoton.js" type="text/javascript"></script>
|
||
|
<script src="patterns/el-polyton.js" type="text/javascript"></script>
|
||
|
<script src="patterns/en-gb.js" type="text/javascript"></script>
|
||
|
<script src="patterns/en-us.js" type="text/javascript"></script>
|
||
|
<script src="patterns/eo.js" type="text/javascript"></script>
|
||
|
<script src="patterns/es.js" type="text/javascript"></script>
|
||
|
<script src="patterns/et.js" type="text/javascript"></script>
|
||
|
<script src="patterns/fi.js" type="text/javascript"></script>
|
||
|
<script src="patterns/fr.js" type="text/javascript"></script>
|
||
|
<script src="patterns/gu.js" type="text/javascript"></script>
|
||
|
<script src="patterns/grc.js" type="text/javascript"></script>
|
||
|
<script src="patterns/hi.js" type="text/javascript"></script>
|
||
|
<script src="patterns/hu.js" type="text/javascript"></script>
|
||
|
<script src="patterns/hy.js" type="text/javascript"></script>
|
||
|
<script src="patterns/it.js" type="text/javascript"></script>
|
||
|
<script src="patterns/kn.js" type="text/javascript"></script>
|
||
|
<script src="patterns/la.js" type="text/javascript"></script>
|
||
|
<script src="patterns/lt.js" type="text/javascript"></script>
|
||
|
<script src="patterns/lv.js" type="text/javascript"></script>
|
||
|
<script src="patterns/ml.js" type="text/javascript"></script>
|
||
|
<script src="patterns/nl.js" type="text/javascript"></script>
|
||
|
<script src="patterns/nb-no.js" type="text/javascript"></script>
|
||
|
<script src="patterns/or.js" type="text/javascript"></script>
|
||
|
<script src="patterns/pa.js" type="text/javascript"></script>
|
||
|
<script src="patterns/pl.js" type="text/javascript"></script>
|
||
|
<script src="patterns/pt.js" type="text/javascript"></script>
|
||
|
<script src="patterns/ro.js" type="text/javascript"></script>
|
||
|
<script src="patterns/ru.js" type="text/javascript"></script>
|
||
|
<script src="patterns/sk.js" type="text/javascript"></script>
|
||
|
<script src="patterns/sl.js" type="text/javascript"></script>
|
||
|
<script src="patterns/sr-latn.js" type="text/javascript"></script>
|
||
|
<script src="patterns/sv.js" type="text/javascript"></script>
|
||
|
<script src="patterns/ta.js" type="text/javascript"></script>
|
||
|
<script src="patterns/te.js" type="text/javascript"></script>
|
||
|
<script src="patterns/tr.js" type="text/javascript"></script>
|
||
|
<script src="patterns/uk.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
window.onload = function () {
|
||
|
document.getElementById('myform').onsubmit = function (e) {
|
||
|
if (e && e.preventDefault) {
|
||
|
e.preventDefault();
|
||
|
} else if (window.event) {
|
||
|
window.event.returnValue = false;
|
||
|
}
|
||
|
var text = document.getElementById('text').value,
|
||
|
language = document.getElementById('language').value;
|
||
|
Hyphenator.hyphenate(text, language);
|
||
|
var patSet = Hyphenator.getRedPatternSet(language),
|
||
|
s = '', k;
|
||
|
for(k in patSet) {
|
||
|
s += patSet[k].replace(/_/g, '.') + ' ';
|
||
|
}
|
||
|
var output = document.getElementById('output');
|
||
|
output.firstChild.data = '';
|
||
|
output.firstChild.data = s;
|
||
|
|
||
|
output.focus();
|
||
|
output.select();
|
||
|
return false;
|
||
|
};
|
||
|
};
|
||
|
Hyphenator.config({
|
||
|
remoteloading:false,
|
||
|
displaytogglebox: true,
|
||
|
enablereducedpatternset: true,
|
||
|
storagetype: 'none'
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Reduce the Pattern Set for <img src="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%97%00%00%007%08%06%00%00%00%01%83%D8%97%00%00%00%04sBIT%08%08%08%08%7C%08d%88%00%00%20%00IDATx%9C%ED%9Dw%9C%5C%E5y%EF%BF%A7M%DF%99%DD%D9%5E%25%ED%AA%01%AA%88b%10H%60%3A%A2c%1B%DB8%D8%26%BE%F7b%9B8%8E%1D%DB%09.Ipn%9C%60%9B%C4%C4%80qI%AE%03%18%C7%A68%E0%98%18%89%22%89*P%EFeUv%A5%DD%D5%F6%E9s%E6%B4%FB%C7)sfv%85%A4%98%DB%3E%D7%EF%E73%9A%D9%99s%DE%F3%BE%CF%FB%BCO%F9%3D%CF%F3J%B0%2C%CB%E2%F7%ED%F7%ED%BDk%1E%3F%C9%A7t%B5e!%08%02.%1F%FA%F9Q%10%04%DF%95%02%FE%3F%FD%F7U%F3%B0%20%08%DEo%95%7D%FC%DF%D3%FE_%1F%FF%FF%E9%26%FC%5Er%9D%B8%95J%25%02%81%00%5B%B6le%F5%0B%ABI%26%93%DEw%97_q%193f%CC%40%D7ud%F9%94%F6%E8%FF%2F%ED%3F%2F%B9t%5D%C70%0C%EFoQ%14Q%14%C5%B9rz%C9%A5%EB%3A%9A%A6%23%8A%E5%9D%AE(%0A%A2(%FE_%BD%F3u%5D'%10%08%B0k%D7.%1E~%F8%07tww%93%CB%E5%88D%22%CC%3Fc%3E3f%CC%C00%8C%DF3%D7%09%DA)Q%C54M%24I%22%97%CB%F1%D8%A3%8F%F3%C6%1Bo%10%8B%C5H%A5R%CC%3Fc%3E%7F%FC%C7%9F%23%1A%8D%82%20%E0g%13UU%09%85B%FC%FB%AF%FF%9D%9F%FE%F4_hkk%A3P(%10%89F%F9%CCg%EE%E2%8C3%CE%40%D34%02%81%C0%FF%A2%E9%FDn%CDezA%10%90%24%A9%E2%E5%FF%ED%F7m%FAv%CA%92%0Bl%26%1B86%C0%AE%5D%BBI%24%12%8C%8D%8E%11%0E%87%D1u%D3%26r%15%9D-%C3%BEodt%94%ED%DBw%90%CDf%C9%E5%F2%D4%D4%C4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CM%E0J%DC%03%07zy%F6%D9%E7%983g%0E%DF%F8%C6%D7Y%BCdQ%85I%F0%5E1%D9%F4J%FE%5D%9A_%1C%BB%04%0BG%C2(%8A%82%22%CB%8E(%B7_%91H%04Y%96Q%14%A5b%C7%06%83A%86G%86%B9%EE%BAU%9Cs%CE9h%9AF(%14%A2%A1%A1%81%97_z%99%FE%FE%BE%0A%09%E7%3E%D74MdYf%F5%EA%D5%8C%8F%8F%13%0E%87%09%06%83(%8A%C2%1F%FC%C1%C7%A8%AB%AB%F3%D4L0%18%24%10%08%10%89D%D8%B1s%07_%F8%FC%17%D8%B1c'%D1X%94X%2CF%7D%7D%3D%81%40%00M%D3%91%15%85%C6%C6F6m%DA%C4W%EF%F9*%87%8F%1C%F1%18%D9%7D%B6%3D%1E%5Bz%8D%8E%8E%F2%ADo%FD-%EB%D6%AE%25%91%88%13%0E%87%A9O%26%3D%AFW%12E%DA%DA%DA%D8%B8q%13%7F%7F%FF%3F%90%CB%E6%90%24%C9Sk%96e%91%CB%E5%F8%F6%7D%DF%E1%DE%BF%FA%26%C5b%81h4J8%1Cf%C6%8C%19%9Cy%E6%19%CC%99%D3CSs%13%00%F5%F5%
|
||
|
<p class="multicol hyphenate">
|
||
|
Hyphenator uses a large set of patterns to hyphenate words. If you have a static site (i.e. a site that will not be changed) it may be convenient to reduce the set of patterns to those wich are actually used. This helps to save lots of bits of your pageload.</p>
|
||
|
<p class="multicol hyphenate">
|
||
|
The script loads the version of Hyphenator.js that resides in the same directory as this page.
|
||
|
</p>
|
||
|
<form action="#outanchor" method="post" id="myform">
|
||
|
<fieldset>
|
||
|
<legend>Reduce Patterns for this text:</legend>
|
||
|
<p>Enter the text(s) of your static site here:</p>
|
||
|
<textarea id="text" rows="20" cols="20"></textarea>
|
||
|
<p>Select the language:</p>
|
||
|
<select id="language" name="language" size="1" title="language">
|
||
|
<option value="be">Беларуская (Belarusian)</option>
|
||
|
<option value="bn">বাংলা (Bengali)</option>
|
||
|
<option value="ca">Català (Catalan)</option>
|
||
|
<option value="cs">Česky (Czech)</option>
|
||
|
<option value="da">Dansk (Danish)</option>
|
||
|
<option value="de" selected>Deutsch (German)</option>
|
||
|
<option value="el-monoton">monton greek</option>
|
||
|
<option value="el-polyton">polyton greek</option>
|
||
|
<option value="en-us">American English</option>
|
||
|
<option value="en-gb">British English</option>
|
||
|
<option value="et">Eesti (Estonian)</option>
|
||
|
<option value="eo">Esperanto (Esperanto)</option>
|
||
|
<option value="es">Español (Spanish)</option>
|
||
|
<option value="fi">Suomi (Finnish)</option>
|
||
|
<option value="fr">Français (French)</option>
|
||
|
<option value="grc">ancient greek</option>
|
||
|
<option value="gu">ગુજરાતી (Gujarati)</option>
|
||
|
<option value="hi">हिंदी (Hindi)</option>
|
||
|
<option value="hu">Magyar (Hungarian)</option>
|
||
|
<option value="hy">Հայերեն լեզու (Armenian)</option>
|
||
|
<option value="it">Italiano (Italian)</option>
|
||
|
<option value="kn">ಕನ್ನಡ (Kannada)</option>
|
||
|
<option value="la">Latin (Latin)</option>
|
||
|
<option value="lt">Lietuvių (Lithuanian)</option>
|
||
|
<option value="lv">latviešu valoda (Latvian)</option>
|
||
|
<option value="ml">മലയാളം (Malayalam)</option>
|
||
|
<option value="nl">Nederlands (Dutch)</option>
|
||
|
<option value="nb-no">Norsk (Norwegian)</option>
|
||
|
<option value="or">ଓଡ଼ିଆ (Oriya)</option>
|
||
|
<option value="pa">ਪੰਜਾਬੀ (Punjabi)</option>
|
||
|
<option value="pl">Polski (Polish)</option>
|
||
|
<option value="pt">Português (Portuguese)</option>
|
||
|
<option value="ro">Română (Romanian)</option>
|
||
|
<option value="ru">Pyccĸий (Russian)</option>
|
||
|
<option value="sk">Slovenčina (Slovak)</option>
|
||
|
<option value="sl">Slovenščina (Slovenian)</option>
|
||
|
<option value="sr-latn">Srpski (Serbian, Latin script)</option>
|
||
|
<option value="sv">Svenska (Swedish)</option>
|
||
|
<option value="ta">தமிழ் (Tamil)</option>
|
||
|
<option value="te">తెలుగు (Telugu)</option>
|
||
|
<option value="tr">Türkçe (Turkish)</option>
|
||
|
<option value="uk">Українська (Ukrainian)</option>
|
||
|
</select>
|
||
|
<p>
|
||
|
<input id="create2" type="submit" value=" Go! ">
|
||
|
<input type="reset" value=" Reset! ">
|
||
|
</p>
|
||
|
</fieldset>
|
||
|
<fieldset>
|
||
|
<legend>Output:</legend>
|
||
|
<a name="outanchor"></a>
|
||
|
<p>Copy this to the inputfield in <a href="compressor.html">compressor.html</a>:</p>
|
||
|
<textarea id="output" rows="20" cols="20">
|
||
|
</textarea>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|