37 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.8 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.js</title>
 | |
|         <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 | |
|         <style type="text/css">
 | |
|             body {
 | |
|                 width:30%;
 | |
|                 margin-left:35%;
 | |
|                 margin-right:35%;
 | |
|             }
 | |
|             .text {
 | |
|                 text-align:justify;
 | |
|             }
 | |
|         </style>
 | |
|         <script src="Hyphenator.js" type="text/javascript"></script>
 | |
|         <script type="text/javascript">
 | |
|         	Hyphenator.config({
 | |
|         		displaytogglebox : true,
 | |
|         		minwordlength : 4
 | |
|         	});
 | |
|         	Hyphenator.run();
 | |
|         </script>
 | |
|     </head>
 | |
|     <body>
 | |
|         <h1>Example of using Hyphenator.js</h1>
 | |
|         <h2>Deutsch</h2>
 | |
|         <p class="hyphenate text" lang="de">Deutschsprachige Beispieltexte haben natürlicherweise längere Wortzusammensetzungen als englischsprachige. Aber auch <span lang="en">“hyphenation”</span> ist ein ziemlich langes Kompositum.</p>
 | |
|         <p class="hyphenate text" lang="de">Verändern Sie die Fenstergrösse um den Effekt der Silbentrennung zu sehen.</p>
 | |
|         <h2>English</h2>
 | |
|         <p class="hyphenate text" lang="en">English words are shorter in the average then german words. <span lang="de">«Silbentrennungsalgorithmus»</span> for example is quite long.</p>
 | |
|         <p class="hyphenate text" lang="en">Resize the window to see hyphenation in effect.</p>
 | |
|         <h2>Links</h2>
 | |
|         <p class="hyphenate text" lang="en">Not only words but also links like <a href="http://code.google.com/p/hyphenator/">http://code.google.com/p/hyphenator/</a> are processed. But in a special manner (using zero width space).</p>
 | |
|     </body>
 | |
| </html> |