S
Santosh Kumar
I have a working script which takes argv[1] as an input, deassembles
each line, and then each word. Then after it capitalizes all its word
(upcases the first letter) and then prints it out on the stdout.
That script does the capitalization work fine, but, when it reassemble
the the words, it does it like this:
lines.append(' '.join(words))
The biggest problem is, even when the input file has many spaces, it
strips it down to one.
A file with this line:
This line contains many spaces
becomes:
This Line Contains Many Spaces
The whole script will look clumsy here. I have put it up on GitHub,
here is it: https://github.com/santosh/capitalizr.py/blob/master/capitalizr
each line, and then each word. Then after it capitalizes all its word
(upcases the first letter) and then prints it out on the stdout.
That script does the capitalization work fine, but, when it reassemble
the the words, it does it like this:
lines.append(' '.join(words))
The biggest problem is, even when the input file has many spaces, it
strips it down to one.
A file with this line:
This line contains many spaces
becomes:
This Line Contains Many Spaces
The whole script will look clumsy here. I have put it up on GitHub,
here is it: https://github.com/santosh/capitalizr.py/blob/master/capitalizr