Skip to content

Commit

Permalink
Document dubstep (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Jun 8, 2022
1 parent 3d1f5de commit 658f951
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 658f951

Please sign in to comment.