add: тесты для unbreakables.py

This commit is contained in:
2025-07-22 13:12:07 +03:00
parent 7ff18dc2e8
commit acc592426f
6 changed files with 104 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
"""
Typography - библиотека для экранной типографики текста с поддержкой HTML.
etpgrf - библиотека для экранной типографики текста с поддержкой HTML.
Основные возможности:
- Автоматическая расстановка переносов

View File

@@ -49,7 +49,7 @@ _EN_UNBREAKABLE_WORDS = frozenset([
'a', 'an', 'as', 'at', 'by', 'in', 'is', 'it', 'of', 'on', 'or', 'so', 'to', 'if',
# 3-4 letter words
'for', 'from', 'into', 'that', 'then', 'they', 'this', 'was', 'were', 'what', 'when', 'with',
'not', 'but', 'which',
'not', 'but', 'which', 'the'
])
# --- Настройки логирования ---