diff --git a/docs/plugins/titlecase.rst b/docs/plugins/titlecase.rst index 541c52613..e2861f0ac 100644 --- a/docs/plugins/titlecase.rst +++ b/docs/plugins/titlecase.rst @@ -151,13 +151,14 @@ Default .. conf:: all_caps :default: no - If the alphabet content of a string is all caps, do not modify. Useful - if you encounter a lot of acronyms, etc. + If the letters a-Z in a string are all caps, do not modify the string. Useful + if you encounter a lot of acronyms. .. conf:: all_lowercase + :default: no - If the alphabet content of a string is all lowercase, do not modify. Useful - if you encounter a lot of stylized lowercase spellings, but otherwise + If the letters a-Z in a string are all lowercase, do not modify the string. + Useful if you encounter a lot of stylized lowercase spellings, but otherwise want titlecase applied. .. conf:: after_choice diff --git a/test/plugins/test_titlecase.py b/test/plugins/test_titlecase.py index 0d5437d5d..c25661bbf 100644 --- a/test/plugins/test_titlecase.py +++ b/test/plugins/test_titlecase.py @@ -140,8 +140,8 @@ class TestTitlecasePlugin(PluginTestCase): (False, "RBMK1000", "Rbmk1000"), (True, "P A R I S!", "P A R I S!"), (True, "pillow dub...", "Pillow Dub..."), - (False, "P A R I S!", "P a R I S!") - ] + (False, "P A R I S!", "P a R I S!"), + ] for testcase in testcases: all_caps, given, expected = testcase with self.configure_plugin({"all_caps": all_caps}): @@ -153,7 +153,7 @@ class TestTitlecasePlugin(PluginTestCase): (True, "RBMK1000", "Rbmk1000"), (True, "pillow dub...", "pillow dub..."), (False, "pillow dub...", "Pillow Dub..."), - ] + ] for testcase in testcases: all_lowercase, given, expected = testcase with self.configure_plugin({"all_lowercase": all_lowercase}):