Created
August 1, 2021 20:40
-
-
Save nivaca/86c2e7fce03b62ba7d4c8fe3f9b4c1b0 to your computer and use it in GitHub Desktop.
Converts to smart title case a text in the clipboard and stores it again in it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyperclip | |
| from titlecase import titlecase | |
| inputtext = pyperclip.paste() | |
| outputtext = titlecase(inputtext) | |
| pyperclip.copy(outputtext) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment