Here's an exemplary text:
Code: Select all
one two
"one two"
(one two)
one-two
one_two
one+two
one,two
When I run RMC > Change Case > Capitalize command (or Edit > Format > Change Case > Capitalize), I get this:
Code: Select all
One Two
"One Two"
(One Two)
One-Two
One_two
One+Two
One,Two
However, with a Namecase function in my script I get this:
Code: Select all
One Two
"one Two"
(one Two)
One-two
One_two
One+two
One,two
I'd say the former output is almost correct -- IMO it should give One_
Two. Can you please make Namecase work the way menu command does (with possible change for text with underscores)?
And to mitigate confusion, perhaps Namecase function should be renamed to Capitalize, with Namecase as an alias.