Skip to main content

capitalizr - It’s a utility that lets you change the case (lowercase to uppercase the letter of the words) words in a file, leaving the words which have 3 or less letters. The file looks pretty if it has all words in capitalcase in it.

why not sed?

  • because capitalizr is easy to use, just damn simple

  • sed doesn’t takes input from stdin, it just works on piping.

Install

The one and only requirement is Python, if you are on any variant of UNIX (e.g. Linux, *BSD, Mac etc) then you have a good luck, else download it. The simplest installation (for UNIX) is download/clone the archive, extract it cd to it and run the setup:

$ pip install capitalizr

Refer to INSTALL file for more instruction related to installation.

Usages

After following the instructions in INSTALL file, you should be able to type capitalizr in terminal. Type capitalizr followed by the filename and the output will be on the screen:

$ capitalizr inputfile.txt

Pipe input to it:

$ cat inputfile.txt | capitalizr -

Input from stdin:

$ capitalizr -
the quick brown fox jumps over the lazy dog
^D
the Quick Brown fox Jumps Over the Lazy dog

You can write the output into file by passing -o followed by output filename, and the output will be on a file named outputfile.txt:

$ capitalizr inputfile.txt -o outputfile.txt

Override the default length of words to be escaped. The default it 3:

$ capitalizr -t 1 inputfile.txt

Bugs? Suggestions? Questions?

Questions approaching in your mind? Found any bugs? Have any suggestions? Don’t hesitate to post it at: https://github.com/santosh/capitalizr/issues

To do

These might seem silly ;) Here are implementation I want, priority wise:

  • Android App

  • Implement GUI

  • Put it in repository list of Ubuntu, Fedora etc.

  • Deployment with Debian package and Windows installer.

  • ~~Manual page (And the installation of it)~~ ✔

See also the sandbox branch of the repository.

Contributors

Feel free to contribute, just fork, clone, do your changes, push and send me a pull request.

Here are the contributors:

Release files for capitalizr 1.02.00

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for capitalizr 1.02.00
File Size Uploaded
capitalizr-1.02.00.zip 9.3 kB Details
capitalizr-1.02.00.tar.gz 5.8 kB Details
capitalizr-1.02.00.tar.bz2 6.2 kB Details

Release files / capitalizr-1.02.00.zip

Download URL capitalizr-1.02.00.zip
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d4443bda51310b47c0fd80c6dc692f93402e7ce22934945411fa49d3d668e1b
BLAKE2b-256 checksum
How to use checksums
a7b5840233ba97b46ce50455e883e40bb94e79cc3ff66bfdf111cb779d7698fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / capitalizr-1.02.00.tar.gz

Download URL capitalizr-1.02.00.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa8032ded37856b394ed69c707a906329ff8ee849ee01c79a99f8c8f5e819ff
BLAKE2b-256 checksum
How to use checksums
a2bfb5b685abb33b8c3c1696ccc8a10da8b18860fba1fafa04e801d8a503f287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / capitalizr-1.02.00.tar.bz2

Download URL capitalizr-1.02.00.tar.bz2
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
918356efc78141a550c4b2492108afcca910d3cee6b9b9f153a3e0e8d6887bed
BLAKE2b-256 checksum
How to use checksums
085149cffa58940c3c878ce4a47f08e642bcec53d7bd9a5604689f68a15eecf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.02.00 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page