From 6b1d8fc6402677a494b32234562df897d0e61461 Mon Sep 17 00:00:00 2001 From: surrsurus Date: Mon, 13 Nov 2017 13:01:14 -0500 Subject: [PATCH] Remove minified files --- minified/converter-form-min.js | 1 - minified/text-to-ipa-min.js | 1 - 2 files changed, 2 deletions(-) delete mode 100755 minified/converter-form-min.js delete mode 100755 minified/text-to-ipa-min.js diff --git a/minified/converter-form-min.js b/minified/converter-form-min.js deleted file mode 100755 index 38323fa..0000000 --- a/minified/converter-form-min.js +++ /dev/null @@ -1 +0,0 @@ -if(typeof ConverterForm!=='object'){ConverterForm={}}(function(){'use strict';if(typeof ConverterForm._undefMsg!=='string'){ConverterForm._undefMsg='Some words you have entered cannot be found in the IPA dictionary.'}if(typeof ConverterForm._multiMsg!=='string'){ConverterForm._multiMsg='Some words you have entered have multiple pronunciations in english. These differences are seperated with "OR"'}if(typeof ConverterForm._updateParagraph!=='function'){ConverterForm._updateParagraph=function(inID,text){document.getElementById(inID).innerHTML='

'+text+'

'}}if(typeof ConverterForm._updateTextArea!=='function'){ConverterForm._updateTextArea=function(inID,text){document.getElementById(inID).value=text}}if(typeof ConverterForm.convert!=='function'){ConverterForm.convert=function(inID,outID,errID){if(typeof inID!=='string'){console.log('TextToIPA Error: "inID" called in "ConverterForm.convert()" is not a valid ID"');}else if(typeof TextToIPA!=='object'){console.log('TextToIPA Error: "TextToIPA" object not found. Is "text-to-ipa.js" included before ConverterForm.convert() is ran?')}else{var currentErrorMessage='';var currentMultiMessage='';var IPAText=[];var englishTextArray=document.getElementById(inID).value.split(/\s+/g);for(var i in englishTextArray){var IPAWord=TextToIPA.lookup(englishTextArray[i].toLowerCase().replace(/[^\w\s]|_/g,'').replace(/\s+/g,' '));if(typeof IPAWord.error==='undefined'){currentErrorMessage=ConverterForm._undefMsg;IPAText.push(englishTextArray[i]);}else if(IPAWord.error==='multi'){currentErrorMessage=ConverterForm._multiMsg;IPAText.push(IPAWord.text);}else{IPAText.push(IPAWord.text)}}IPAText=IPAText.join(' ');if(typeof outID==='string'){ConverterForm._updateTextArea(outID,IPAText)}else{console.log('TextToIPA Warning: "outID" in "ConverterForm.convert()" is not a string, skipping IPA output.')}if(typeof errID==='string'){ConverterForm._updateParagraph(errID,currentErrorMessage+' '+currentMultiMessage)}else{console.log('TextToIPA Warning: "errID" in "ConverterForm.convert()" is not a string, skipping error output.')}}}}}()); diff --git a/minified/text-to-ipa-min.js b/minified/text-to-ipa-min.js deleted file mode 100755 index 41a4fcf..0000000 --- a/minified/text-to-ipa-min.js +++ /dev/null @@ -1 +0,0 @@ -if(typeof TextToIPA!=='object'){TextToIPA={}}(function(){'use strict';if(typeof TextToIPA._IPADict!=='object'){TextToIPA._IPADict={}}function IPAWord(error,text){this.error=error;this.text=text}if(typeof TextToIPA._parseDict!=='function'){TextToIPA._parseDict=function(lines){console.log('TextToIPA: Beginning parsing to dict...');for(var i in lines){var arr=lines[i].split(/\s+/g);TextToIPA._IPADict[arr[0]]=arr[1]}console.log('TextToIPA: Done parsing.')}}if(typeof TextToIPA.loadDict!=='function'){TextToIPA.loadDict=function(location){console.log('TextToIPA: Loading dict from '+location+'...');if(typeof location!=='string'){console.log('TextToIPA Error: Location is not valid!')}else{var txtFile=new XMLHttpRequest();txtFile.open('GET',location,true);txtFile.onreadystatechange=function(){if(txtFile.readyState==4){if(txtFile.status==200||txtFile.status==0){TextToIPA._parseDict(txtFile.responseText.split('\n'))}}};txtFile.send(null)}}}if(typeof TextToIPA.lookup!=='function'){TextToIPA.lookup=function(word){if(Object.keys(TextToIPA._IPADict).length===0){console.log('TextToIPA Error: No data in TextToIPA._IPADict. Did "TextToIPA.loadDict()" run?')}else{if(typeof TextToIPA._IPADict[word]!='undefined'){var error=null;var text=TextToIPA._IPADict[word];for(var i=1;i<4;i+=1){if(typeof TextToIPA._IPADict[word+'('+i+')']!='undefined'){error='multi';text+=' OR '+TextToIPA._IPADict[word+'('+i+')'];}else{break}}return new IPAWord(error,text)}else{return new IPAWord('undefined',word)}}}}}());