Skip to content

Commit

Permalink
Merge pull request #129 from willkg/74-dubstep
Browse files Browse the repository at this point in the history
Document dubstep (#74)
  • Loading branch information
willkg committed Jun 8, 2022
2 parents 3d1f5de + 658f951 commit d65593a
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 d65593a

Please sign in to comment.