From 79686b0f1a6ade1afebb6472cc3f55b84cffa4af Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:31:09 +0200 Subject: [PATCH] Add chatsan and TTS sanitize for SAI --- Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs | 1 + Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl | 2 ++ Resources/Prototypes/Accents/word_replacements.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs b/Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs index 81f2d3920b2..03932af0a2e 100644 --- a/Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs +++ b/Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs @@ -137,6 +137,7 @@ private string ReplaceWord2Num(Match word) {"с4", "Си 4"}, // cyrillic {"c4", "Си 4"}, // latinic {"бсс", "Бэ Эс Эс"}, + {"сии", "Эс И И"}, }; private static readonly IReadOnlyDictionary ReverseTranslit = diff --git a/Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl b/Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl index 0d0e9524a23..43aa0efe9bb 100644 --- a/Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl +++ b/Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl @@ -248,3 +248,5 @@ corvax-chatsan-word-124 = лкм corvax-chatsan-replacement-124 = левая рука corvax-chatsan-word-125 = пкм corvax-chatsan-replacement-125 = правая рука +corvax-chatsan-word-126 = ЦИИ +corvax-chatsan-replacement-126 = СИИ diff --git a/Resources/Prototypes/Accents/word_replacements.yml b/Resources/Prototypes/Accents/word_replacements.yml index ef7b0f2895f..8d660c02ee5 100644 --- a/Resources/Prototypes/Accents/word_replacements.yml +++ b/Resources/Prototypes/Accents/word_replacements.yml @@ -696,6 +696,7 @@ corvax-chatsan-word-123: corvax-chatsan-replacement-123 corvax-chatsan-word-124: corvax-chatsan-replacement-124 corvax-chatsan-word-125: corvax-chatsan-replacement-125 + corvax-chatsan-word-126: corvax-chatsan-replacement-126 # Corvax-ChatSanitize-End - type: accent