Merge pull request #2951 from SillyTavern/intl-quotes

Support more pairs of international quotes
This commit is contained in:
Cohee
2024-10-05 20:31:14 +03:00
committed by GitHub
2 changed files with 27 additions and 9 deletions

View File

@@ -474,7 +474,7 @@ async function processTtsQueue() {
}
if (extension_settings.tts.narrate_quoted_only) {
const special_quotes = /[“”«»]/g; // Extend this regex to include other special quotes
const special_quotes = /[“”«»「」『』""]/g; // Extend this regex to include other special quotes
text = text.replace(special_quotes, '"');
const matches = text.match(/".*?"/g); // Matches text inside double quotes, non-greedily
const partJoiner = (ttsProvider?.separator || ' ... ');