add: переносы

This commit is contained in:
2025-05-09 21:57:03 +03:00
parent 24fd3fcf55
commit 0c83da52c6
5 changed files with 112 additions and 1 deletions

8
main.py Normal file
View File

@@ -0,0 +1,8 @@
import etpgrf
if __name__ == '__main__':
text_in = 'Привет, World! Это <i>тестовый текст для проверки расстановки</i> переносов в словах. Миллион 1000000'
result = etpgrf.hyphenation.hyphenation_in_text(text_in, min_len_word_hyphenation=8, sep='-')
print(result)