Update tts_generator.html
This commit is contained in:
1 parent
951df5a239
commit
4d9b44d9a0
1 file changed
+3
-2
@@ -927,7 +927,8 @@
|
||||
cleanedText = cleanedText.replace(/\.\s'/g, ".'");
|
||||
cleanedText = cleanedText.replace(/(?<!\w)[']+(?!\w)/g, '');
|
||||
cleanedText = cleanedText.replace(/"/g, "'");
|
||||
cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF\u0150\u0151\u0170\u0171]\$/g, '');
|
||||
//cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF\u0150\u0151\u0170\u0171]\$/g, '');
|
||||
cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s.,;:!?\-'"À-ÿ\u0400-\u04FF\u0150\u0151\u0170\u0171\u0900-\u097F\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u0600-\u06FF\u0750-\u077F\uFB50-\uFDFF\uFE70-\uFEFF$]/g, '');
|
||||
// Replace dash followed by space with comma and space
|
||||
cleanedText = cleanedText.replace(/-\s/g, '; ');
|
||||
// Replace double dash "--" with semicolon "; "
|
||||
@@ -2209,4 +2210,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in new issue
Block a user