- AuthorPosts
- April 24, 2018 at 12:29 pm #23066spirosParticipant
It would be great if there was such a functionality, with the ability also to define words that do not get capitalized (Articles, conjunctions, and prepositions)
http://www.grammar-monster.com/lessons/capital_letters_title_case.htmApril 28, 2018 at 5:44 am #23093spirosParticipantThere is already a shortcut for this in Notepad++ (no option though for words that should not be capitalized)
https://superuser.com/questions/115432/converting-text-to-title-case-in-notepadApril 28, 2018 at 11:35 am #23094Makoto EmuraKeymasterWe appreciate your feedback. Although we won’t be implementing this feature in the near future, I did make a script that can do this: https://pastebin.com/yHZYnLMV.
excludeWords
is a list of strings that are not matched when converting words to sentence case. Just save the script as a .jsee file and add the macro in the Customize Macros window. The words that start inside the selection are converted to sentence case when the script is run. It’s not exactly fully tested, so let me know if it’s not working.December 25, 2018 at 8:18 am #24062spirosParticipantThank you. Sorry for the late reply, I just saw it. Looks good apart from misrecognizing whole words. I.e.
This:
we’re master’s doesn’tBecomes
We’Re Master’S Doesn’TInstead of
We’re Master’s Doesn’t
By the way, the default functionality of the Convert Selection > Capitalize command, does not do that.
December 27, 2018 at 9:20 am #24073Makoto EmuraKeymasterI updated the script to avoid capitalizing a character proceeding an apostrophe: https://gist.github.com/MakotoE/d74d75ade47f57c1c9396488bada8347
December 29, 2018 at 3:10 am #24089spirosParticipantThank you! Looks good and is much appreciated.
- AuthorPosts
- You must be logged in to reply to this topic.