mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 11:40:57 +02:00
fix(normalization): improve punctuation handling and spacing in text normalization
fix(subtitles): enhance ellipsis and paragraph break handling in subtitle processing feat(gui): implement background update check for new versions test(tests): add tests for ellipsis handling and paragraph breaks preservation
This commit is contained in:
@@ -90,3 +90,10 @@ def test_manual_override_normalization():
|
||||
assert normalize_manual_override_token("The") == "the"
|
||||
assert normalize_manual_override_token(" A ") == "a"
|
||||
assert normalize_manual_override_token("word") == "word"
|
||||
|
||||
|
||||
def test_paragraph_breaks_and_ellipsis_preserved():
|
||||
normalized = normalize("Test. Lorem ipsum...\n\nLorem...\n\nLorem ...")
|
||||
assert "\n\n" in normalized
|
||||
assert ". . ." not in normalized
|
||||
assert "Lorem..." in normalized
|
||||
|
||||
Reference in New Issue
Block a user