Skip to content

Commit

Permalink
Add chatsan and TTS sanitize for SAI
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 committed Sep 24, 2024
1 parent f9c7506 commit 79686b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/Corvax/TTS/TTSSystem.Sanitize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private string ReplaceWord2Num(Match word)
{"с4", "Си 4"}, // cyrillic
{"c4", "Си 4"}, // latinic
{"бсс", "Бэ Эс Эс"},
{"сии", "Эс И И"},
};

private static readonly IReadOnlyDictionary<string, string> ReverseTranslit =
Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/corvax/speech/speech-chatsan.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = СИИ
1 change: 1 addition & 0 deletions Resources/Prototypes/Accents/word_replacements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79686b0

Please sign in to comment.