diff --git a/satellite/text.py b/satellite/text.py index 951138d..faa8320 100644 --- a/satellite/text.py +++ b/satellite/text.py @@ -88,6 +88,8 @@ UNIT_SLASH = [ def clean_for_speech(text: str) -> str: + # убрать эмодзи + text = re.sub(r'[𐀀-􏿿☀-➿🌀-🧿]', '', text, flags=re.UNICODE) text = re.sub(r'\*+', '', text) # убрать **жирный** text = re.sub(r'#+\s', '', text) # убрать ## заголовки text = re.sub(r'- ', '', text) # убрать тире списков