Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document dubstep (#74) #129

Merged
merged 1 commit into from Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/translating.rst
Expand Up @@ -125,6 +125,11 @@ dubstep

The dubstep transform is an experience.

First, it builds over the course of the string, so longer strings have more
dubstepperies than short strings.

Second, it adds dupsteppish punctuation to punctuation.


empty
-----
Expand Down
4 changes: 4 additions & 0 deletions tests/test_translator.py
Expand Up @@ -105,6 +105,10 @@ class TestDubstepTransform(TransformTestCase):
),
),
("Super browsing", "Super t-t-t-t browsing BWWWWWAAAAAAAaaaaa\u2757"),
(
"Sentence 1. Sentence 2!",
"Sentence 1 . t-t-t-t Sentence 2! BWWWWWWWWAAAAAAAAAAaaaaaaaa\u2757",
),
],
)
def test_basic(self, text, expected):
Expand Down