Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23066

    spiros
    Participant

    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.htm

    #23093

    spiros
    Participant

    There 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-notepad

    #23094

    Makoto Emura
    Keymaster

    We 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.

    #24062

    spiros
    Participant

    Thank 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’t

    Becomes
    We’Re Master’S Doesn’T

    Instead of

    We’re Master’s Doesn’t

    By the way, the default functionality of the Convert Selection > Capitalize command, does not do that.

    #24073

    Makoto Emura
    Keymaster

    I updated the script to avoid capitalizing a character proceeding an apostrophe: https://gist.github.com/MakotoE/d74d75ade47f57c1c9396488bada8347

    #24089

    spiros
    Participant

    Thank you! Looks good and is much appreciated.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.