notepad2-mod
notepad2-mod copied to clipboard
"Title Case" option doesn't work?
"Title Case" option doesn't work after applying "Upper Case" option.
Steps to reproduce:
- put some text
- apply "Edit->Convert->Upper Case" option (works fine)
- apply "Edit->Convert->Title Case" option (doesn't work)
Notepad2-mod (64-bit) 4.2.25 r823 (f4bfacf)
Edit ▷ Convert ▷ Title Case (Ctrl+Alt+I) does not work for upper case words.
Input: TEST TEXT
Result: TEST TEXT
Expected Result: Test Text
Steps to reproduce:
- type text in upper case
- select upper case text
- apply Edit ▷ Convert ▷ Title Case (Ctrl+Alt+I)
Notepad2-mod (64-bit) 4.2.25 r972 (68b1190)
System/library limitation/design?
Converts the specified string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).
Maybe in the future it’ll be smarter, but for now it just uppercases the first letter in a group of letters, and tries to pay attention to non-letters and word breaks. It also tries to keep acronyms all upper-case.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318700(v=vs.85).aspx https://blogs.msdn.microsoft.com/shawnste/2009/08/18/what-is-title-case/ http://stackoverflow.com/questions/1206019/converting-string-to-title-case-in-c-sharp https://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitlecase(v=vs.110).aspx