Remove Niqqud

From TheAlmightyGuru
Jump to: navigation, search

Remove Niqqud is a JavaScript program housed in HTML that strips the vowel marks (or niqqud) from Hebrew text. This is useful to see how the Hebrew text would look were it written prior to the invention of niqqud, as with Biblical Hebrew. To run this program, copy and paste it into a file, give your file an "html" extension, then open it in a browser.


	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<script type="text/javascript">
		function processInput() {
			var input = document.getElementById("ConversionForm").elements["InputBox"].value;
			var output = stripVowels(input);
			document.getElementById("ConversionForm").elements["OutputBox"].value = output;
		function stripVowels(rawString) {
			var newString = '';
			for(character = 0; character < rawString.length; character++) {
				if(rawString.charCodeAt(character) < 1425 || rawString.charCodeAt(character) > 1479) {
					newString = newString + rawString.charAt(character);
	<form id="ConversionForm">
		<p>This form will remove the vowel marks (niqqud) from Hebrew text pasted in the Input box.</p>
			<tr><td><p>Input:</p></td><td><input name="InputBox" type="text" value="וַֽתַּהֲרֶיןָ שְׁתֵּי בְנֹֽות לֹוט מֵאֲבִיהֶֽן" style="width:400px;"/></td></tr>
			<tr><td><p> </p></td><td><p style="text-align:center;"><input name="ConvertButton" type="button" value="Remove Vowels" onclick="processInput()" style="width:200px;" /></p></td></tr>
			<tr><td><p>Output:</p></td><td><input name="OutputBox" type="text" value="" style="width:400px;" /></td></tr>