whisper.cat stuff

This commit is contained in:
[Harper Innes]
2023-10-05 23:28:32 +11:00
parent 2a6e28637c
commit f127b4fea8
5224 changed files with 919361 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="16" viewBox="0 0 10 16"><path fill="#1c1c1c" fill-rule="evenodd" d="M10 8L4 3v3H0v4h4v3l6-5z"/></svg>

After

Width:  |  Height:  |  Size: 160 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill="#fff" fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z"/></svg>

After

Width:  |  Height:  |  Size: 174 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16"><path fill="#1c1c1c" fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"/></svg>

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14.001">
<defs>
<style>
.cls-1 {
fill: #666;
}
</style>
</defs>
<path id="info" class="cls-1" d="M7-32a6.852,6.852,0,0,1,1.859.252,7.054,7.054,0,0,1,1.673.707,7.011,7.011,0,0,1,1.415,1.094,7.012,7.012,0,0,1,1.094,1.415,7.055,7.055,0,0,1,.707,1.674A6.853,6.853,0,0,1,14-25a6.853,6.853,0,0,1-.252,1.859,7.055,7.055,0,0,1-.707,1.674,7.012,7.012,0,0,1-1.094,1.415,7.011,7.011,0,0,1-1.415,1.094,7.054,7.054,0,0,1-1.673.707A6.852,6.852,0,0,1,7-18a6.852,6.852,0,0,1-1.859-.252,7.054,7.054,0,0,1-1.673-.707,7.012,7.012,0,0,1-1.415-1.094A7.01,7.01,0,0,1,.961-21.467a7.072,7.072,0,0,1-.707-1.67A6.84,6.84,0,0,1,0-25a6.853,6.853,0,0,1,.252-1.859,7.057,7.057,0,0,1,.707-1.674,7.01,7.01,0,0,1,1.094-1.415,7.012,7.012,0,0,1,1.415-1.094,7.07,7.07,0,0,1,1.67-.707A6.839,6.839,0,0,1,7-32Zm.467,10.267H6.535v.933h.933Zm.058-1.232a2.456,2.456,0,0,1,.051-.51.908.908,0,0,1,.263-.452q.284-.284.561-.543a4.743,4.743,0,0,0,.5-.543,2.539,2.539,0,0,0,.357-.62,2.039,2.039,0,0,0,.135-.766,2.3,2.3,0,0,0-.19-.93,2.447,2.447,0,0,0-.514-.758,2.446,2.446,0,0,0-.758-.514,2.3,2.3,0,0,0-.93-.19,2.3,2.3,0,0,0-.93.19,2.447,2.447,0,0,0-.758.514,2.446,2.446,0,0,0-.514.758,2.3,2.3,0,0,0-.19.93H5.66a1.3,1.3,0,0,1,.106-.521,1.362,1.362,0,0,1,.288-.427,1.362,1.362,0,0,1,.427-.288A1.3,1.3,0,0,1,7-27.741a1.3,1.3,0,0,1,.521.106,1.362,1.362,0,0,1,.427.288,1.362,1.362,0,0,1,.288.427,1.3,1.3,0,0,1,.106.521,1.023,1.023,0,0,1-.139.532,2.44,2.44,0,0,1-.346.448q-.208.215-.448.434a4.026,4.026,0,0,0-.448.481,2.507,2.507,0,0,0-.346.594,2.006,2.006,0,0,0-.138.777v.467h1.05Z" transform="translate(-0.002 32)"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17">
<defs>
<style>
.cls-1 {
fill: none;
stroke: #fff;
}
</style>
</defs>
<g id="logo4" transform="translate(0 0.5)" shape-rendering="crispEdges">
<line id="Line_6" data-name="Line 6" class="cls-1" x2="10.182" transform="translate(0 16)"/>
<line id="Line_5" data-name="Line 5" class="cls-1" x2="16" transform="translate(0 12.8)"/>
<line id="Line_4" data-name="Line 4" class="cls-1" x2="10.182" transform="translate(0 9.6)"/>
<line id="Line_3" data-name="Line 3" class="cls-1" x2="16" transform="translate(0 6.4)"/>
<line id="Line_2" data-name="Line 2" class="cls-1" x2="10.182" transform="translate(0 3.2)"/>
<line id="Line_1" data-name="Line 1" class="cls-1" x2="16"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill="#fff" fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"/></svg>

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill="#1c1c1c" fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/></svg>

After

Width:  |  Height:  |  Size: 339 B

View File

@ -0,0 +1,187 @@
<!DOCTYPE html>
<html>
<head>
<title>WebOasis - Text Cleaner</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Clean text using Text Cleaner. An all-in-one text cleaning and unformatting tool that can perform many simple and complex text operations.">
<link rel="stylesheet" href="css/style.css">
<meta name="theme-color" content="#0280cf" />
<link rel="shortcut icon" href="img/favicon.ico">
</head>
<body class="no-transition">
<div class="navbar no-select"><a href="index.html" class="brand left">
<h1>WebOasis - Text Cleaner</h1>
</a><a href="../" class="donate right">Go Back</a></div>
<div class="align-center">
<style>
.tc_top {
width: 320px;
height: 100px
}
@media(min-width:748px) {
.tc_top {
width: 728px;
height: 90px
}
}
</style>
</div>
<div class="wrapper">
<div class="box clearfix"><span class="switch right"><input type="checkbox" id="isWrap" checked><label for="isWrap">Wrap lines</label></span>
<div class="form-group left w-100">
<div class="container"><textarea id="input" class="w-100 form-control" style="width:100%;height:320px;font-family:Georgia" placeholder="Copy and paste your text here, change the settings below and click the clean button."></textarea>
<div class="clipboard tooltipped tooltipped-n" aria-label="Copy to clipboard"><i class="oct i-copy"></i></div>
</div>
</div>
<div class="align-center"><button id="clean" class="btn min-wid" type="button">Clean</button> <button id="undo" class="btn btn-light min-wid" type="button">Undo</button></div>
</div>
<h5 class="text-light uppercase sm-align-center">Settings</h5>
<div class="box">
<h2>Clean Text</h2>
<div class="clearfix">
<div class="w-33 md-w-50 sm-w-100 left">
<div class="indent"><b>Whitespace</b>
<div class="checkbox"><input type="checkbox" id="trim_yes"><label for="trim_yes">Trim</label></div>
<div class="checkbox"><input type="checkbox" id="trim_lead"><label for="trim_lead">Remove leading spaces</label></div>
<div class="checkbox"><input type="checkbox" id="trim_trail"><label for="trim_trail">Remove trailing spaces</label></div>
<div class="checkbox"><input type="checkbox" id="spaces_tab"><label for="spaces_tab">Replace <input id="num_st" type="number" class="form-inline" style="width:28px" value="4"> space/s with 1 tab</label></div>
<div class="checkbox"><input type="checkbox" id="tab_spaces"><label for="tab_spaces">Replace 1 tab with <input id="num_ts" type="number" class="form-inline" style="width:28px" value="1"> space/s</label></div>
<div class="checkbox"><input type="checkbox" id="del_blank"><label for="del_blank">Remove blank/empty lines</label></div>
<div class="checkbox"><input type="checkbox" id="lb_space"><label for="lb_space">Replace line break with space</label></div>
<div class="checkbox"><input type="checkbox" id="crunch_space"><label for="crunch_space">Multiple spaces to single</label></div>
<div class="checkbox"><input type="checkbox" id="crunch_line"><label for="crunch_line">Multiple blank lines to single</label></div>
<div class="checkbox"><input type="checkbox" id="del_lb"><label for="del_lb">Remove all line breaks</label></div>
</div>
</div>
<div class="w-33 md-w-50 sm-w-100 left">
<div class="indent"><b>Characters</b>
<div class="checkbox"><input type="checkbox" id="del_punc"><label for="del_punc">Remove punctuation marks</label></div>
<div class="checkbox"><input type="checkbox" id="del_emj"><label for="del_emj">Strip all emojis</label></div>
<div class="checkbox"><input type="checkbox" id="del_dia"><label for="del_dia">Remove letter accents (diacritics)</label></div>
<div class="checkbox"><input type="checkbox" id="normalize_letters"><label for="normalize_letters">Normalize unicode letters/characters</label></div>
<div class="checkbox"><input type="checkbox" id="del_unk"><label for="del_unk">Remove replacement character</label></div>
<div class="checkbox"><input type="checkbox" id="del_non_ascii"><label for="del_non_ascii">Remove non-ASCII characters</label></div>
<div class="checkbox"><input type="checkbox" id="del_non_alphanum"><label for="del_non_alphanum">Remove non-alphanumeric characters</label></div>
</div>
<div class="indent"><b>Other</b>
<div class="checkbox"><input type="checkbox" id="del_mail"><label for="del_mail">Strip all e-mails</label></div>
<div class="checkbox"><input type="checkbox" id="del_bbcode"><label for="del_bbcode">Remove BBCode tags (Forum)</label></div>
</div>
</div>
<div class="w-33 md-w-50 sm-w-100 left">
<div class="indent"><b>HTML</b>
<div class="checkbox"><input type="checkbox" id="unescape_html"><label for="unescape_html">Unescape HTML tags</label></div>
<div class="checkbox"><input type="checkbox" id="strip_html"><label for="strip_html">Strip all HTML tags</label></div>
<div class="checkbox"><input type="checkbox" id="strip_id"><label for="strip_id">Remove all ids</label></div>
<div class="checkbox"><input type="checkbox" id="strip_class"><label for="strip_class">Remove all classes</label></div>
<div class="checkbox"><input type="checkbox" id="strip_style"><label for="strip_style">Remove inline styles</label></div>
<div class="checkbox"><input type="checkbox" id="decode_entities"><label for="decode_entities">Decode HTML Character Entities</label></div>
<div class="checkbox"><input type="checkbox" id="decode_uri"><label for="decode_uri">Decode URL-encoded characters</label></div>
</div>
<div class="indent"><b>Links</b>
<div class="grouped">
<div class="checkbox"><input type="checkbox" id="del_url"><label for="del_url">Remove all web urls</label></div>
<div class="checkbox"><input type="checkbox" id="urls_links"><label for="urls_links">Convert urls to links</label></div>
</div>
</div>
</div>
</div><br>
<h3>Text Formatting</h3>
<div class="clearfix">
<div class="w-33 md-w-50 sm-w-100 left">
<div class="indent"><b>Letter case</b>
<div class="radio"><input type="radio" name="letter_case" id="case_upper"><label for="case_upper">Uppercase</label></div>
<div class="radio"><input type="radio" name="letter_case" id="case_lower"><label for="case_lower">Lowercase</label></div>
<div class="radio"><input type="radio" name="letter_case" id="case_sentence"><label for="case_sentence">Sentence case</label></div>
<div class="radio"><input type="radio" name="letter_case" id="case_capitalize"><label for="case_capitalize">Capitalize each word</label></div>
<div class="radio"><input type="radio" name="letter_case" id="case_none" checked><label for="case_none">Do not change</label></div>
</div>
<div class="indent"><b>Quotes</b>
<div class="grouped">
<div class="checkbox"><input type="checkbox" name="quote_marks" id="curly_straight"><label for="curly_straight">Smart quotes to regular</label></div>
<div class="checkbox"><input type="checkbox" name="quote_marks" id="straight_curly"><label for="straight_curly">Regular quotes to smart</label></div>
</div>
</div>
</div>
<div class="w-33 md-w-50 sm-w-100 left">
<div class="indent"><b>Duplicates</b>
<div class="checkbox"><input type="checkbox" id="del_dup_lines"><label for="del_dup_lines">Remove duplicate lines/paragraphs</label></div>
<div class="checkbox"><input type="checkbox" id="del_rep_words"><label for="del_rep_words">Remove repeating words</label></div>
</div>
<div class="indent"><b>Trim</b>
<div class="checkbox"><input type="checkbox" id="del_char_left"><label for="del_char_left">Remove <input id="num_trim_left" type="number" class="form-inline" style="width:28px" value="3"> characters from left</label></div>
<div class="checkbox"><input type="checkbox" id="del_char_right"><label for="del_char_right">Remove <input id="num_trim_right" type="number" class="form-inline" style="width:28px" value="3"> characters from right</label></div>
</div>
<div class="indent"><b>Writing</b>
<div class="checkbox"><input type="checkbox" id="fix_punc_space"><label for="fix_punc_space">Fix spaces after each punctuation mark</label></div>
<div class="checkbox"><input type="checkbox" id="text_short"><label for="text_short">Convert common shorthand to full words</label></div>
</div>
</div>
<div class="w-33 md-w-100 left">
<div class="align-center">
<style>
.tc_box {
width: 300px;
height: 250px
}
@media(min-width:401px) {
.tc_box {
width: 336px;
height: 280px
}
}
@media(min-width:1001px) {
.tc_box {
width: 300px;
height: 250px
}
}
@media(min-width:1110px) {
.tc_box {
width: 336px;
height: 280px
}
}
</style>
</div>
</div>
</div><br>
<div class="form-group controls align-center"><span>Select: </span><a id="select_all">All</a> | <a id="select_none">None</a> | <a id="select_default">Default</a></div>
<h3>Find and Replace</h3>
<style type="text/css">
#fnr_body tr>td:nth-child(odd) {
width: 50%
}
</style>
<table class="table-striped w-100">
<tbody id="fnr_body"></tbody>
</table>
<div class="align-center"><button class="btn" type="button" id="fnr_add"><i class="oct i-plus"></i></button></div>
</div>
<h5 class="text-light uppercase sm-align-center">About</h5>
<div class="box">
<h3>What is Text Cleaner?</h3>
<p>Text Cleaner is an all-in-one text cleaning and formatting tool that can perform many complex text operations. It can remove unnecessary spaces and unwanted characters. It can also change letter case, convert typography quotes, delete duplicate lines/paragraphs and words, convert bold and italic unicode letters into regular letters, fix spacing between punctuations, remove letter accents, decode character entity codes, unescape and strip HTML tags, convert urls to links, and more. With this, you can also create your very own "find and replace" list.</p>
<p>It's highly-customizable. You can tweak the settings based on your personal preference. Your custom configuration is automatically saved in your browser, so you don't have to completely redo your settings on your next visit.</p>
<p>The main purpose of this utility is to unformat a formatted text and remove all unmeaningful characters which are often present in texts that were copied directly from word processors, web pages, PDFs, client briefs, and e-mails. I originally made this tool for my first data entry job and it made my work easier. I hope you find it useful too. This web app is free to use for any individual, company, office or organization for research, development, and/or commercial purposes. Please back up your data accordingly. We will not be held legally liable for any data loss which may occur while performing work on your computer.</p>
<h3>How to use?</h3>
<p>Simply copy and paste your text in the input box, configure the settings below by checking/unchecking the boxes and click the clean button. The cleaned version of your text shoulded appear in the result box. Not expecting the result you wanted? No worries, you can go back and click the input tab and from there you can start from the top. Hitting the reset button will clear both fields.</p>
</div>
</div>
<div class="toast">
<div class="toast-content"></div>
</div>
<div class="align-center pad-1">
<div>© WebOasis - Text Cleaner</div>
<div class="font-14"><a href="#">Back To Top</a></div>
</div>
<script src="js/jquery.js"></script>
<script src="js/modules/diacritics.js"></script>
<script src="js/modules/shorthands.js"></script>
<script src="js/app.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

2
weboasis/text/cleaner/js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
for(var diacriticsList=[{base:"A",chars:"ÁÀÂǍĂÃẢẠÄÅĀĄẤẦẪẨẬẮẰẴẲẶǺ"},{base:"C",chars:"ĆĈČĊÇ"},{base:"D",chars:"ĎĐÐ"},{base:"E",chars:"ÉÈÊĚĔẼẺĖËĒĘẾỀỄỂẸỆ"},{base:"G",chars:"ĞĜĠĢ"},{base:"H",chars:"ĤĦ"},{base:"I",chars:"ÍÌĬÎǏÏĨĮĪỈỊ"},{base:"J",chars:"Ĵ"},{base:"K",chars:"Ķ"},{base:"L",chars:"ĹĽĻŁĿ"},{base:"N",chars:"ŃŇÑŅ"},{base:"O",chars:"ÓÒŎÔỐỒỖỔǑÖŐÕØǾŌỎƠỚỜỠỞỢỌỘ"},{base:"P",chars:"ṔṖ"},{base:"R",chars:"ŔŘŖ"},{base:"S",chars:"ŚŜŠŞ"},{base:"T",chars:"ŤŢŦ"},{base:"U",chars:"ÚÙŬÛǓŮÜǗǛǙǕŰŨŲŪỦƯỨỪỮỬỰỤ"},{base:"W",chars:"ẂẀŴẄ"},{base:"Y",chars:"ÝỲŶŸỸỶỴ"},{base:"Z",chars:"ŹŽŻ"},{base:"a",chars:"áàâǎăãảạäåāąấầẫẩậắằẵẳặǻ"},{base:"C",chars:"ćĉčċç"},{base:"d",chars:"ďđ"},{base:"e",chars:"éèêěĕẽẻėëēęếềễểẹệ"},{base:"g",chars:"ğĝġģ"},{base:"h",chars:"ĥħ"},{base:"i",chars:"íìĭîǐïĩįīỉị"},{base:"j",chars:"ĵ"},{base:"k",chars:"ķ"},{base:"l",chars:"ĺľļłŀ"},{base:"n",chars:"ńňñņ"},{base:"o",chars:"óòŏôốồỗổǒöőõøǿōỏơớờỡởợọộ"},{base:"p",chars:"ṕṗ"},{base:"r",chars:"ŕřŗ"},{base:"s",chars:"śŝšş"},{base:"t",chars:"ťţŧ"},{base:"u",chars:"úùŭûǔůüǘǜǚǖűũųūủưứừữửựụ"},{base:"w",chars:"ẃẁŵẅ"},{base:"y",chars:"ýỳŷÿỹỷỵ"},{base:"z",chars:"źžż"}],diacriticsMap={},i=0;i<diacriticsList.length;i+=1)for(var chars=diacriticsList[i].chars,j=0;j<chars.length;j+=1)diacriticsMap[chars[j]]=diacriticsList[i].base;function removeDiacritics(a){return a.replace(/[^-~]/g,function(a){return diacriticsMap[a]||a})}

View File

@ -0,0 +1 @@
SMS_map={"2day":"today","2f4u":"too fast for you","2morow":"tomorrow","2nite":"tonight",afaik:"as far as I know",afair:"as far as I remember",afk:"away from keyboard",aight:"alright",aka:"also known as","b/c":"because",bf:"boyfriend",btw:"by the way",dgmw:"don't get me wrong",faq:"frequently asked questions",ftw:"for the win",fwiw:"for what it's worth",fyi:"for your information",gf:"girlfriend",gr8:"great",gtg:"got to go",icymi:"in case you missed it",idc:"I don't care",idk:"I don't know",ily:"i love you",imho:"in my humble opinion",imo:"in my opinion",iow:"in other words",irl:"in real life",jfyi:"just for your information",l8r:"later",lol:"laughing out loud",mmw:"mark my words","n/a":"not applicable",nsfw:"not safe for work",nvm:"nevermind",omg:"oh my god",tbh:"to be honest",tnx:"thanks",ttyl:"talk to you later",tyt:"take your time",ur:"your",w8:"wait",wtf:"what the fuck",wth:"what the hell",xoxo:"hugs and kisses",ymmd:"you made my day",ymmv:"your mileage may vary"};var replaceSMS=function(o){return SMS_map[o.toLowerCase()]||o};

File diff suppressed because one or more lines are too long