Skip to main content

Strange Capitalization in headings

Completed

Comments

5 comments

  • Fletcher Penney

    That's the "Title Case" functionality in the Editing preferences.  You can disable it there.

     

    It is tested on English only, but I am open to expanding to other languages that basically follow the same rules.  It also supports basic ASCII at the moment, which is why you're seeing the capitalized trailing "T"s.

     

    I'll experiment with additional whitelisted "short words" (e.g. von, im, und) and with adding UTF-8 support.

     

    That project is on github if you're interested:  https://github.com/fletcher/c-title-case

     

    Thanks!

    0
  • Fletcher Penney

    Hmmm...  Just remembered the whole "Nouns are capitalized and other words are not" general rule for German, so this won't work without a dictionary to map nouns and non-nouns.

     

    So I guess it should generally be disabled for German documents.

     

    I'll still play with UTF-8 support though.

    0
  • Fletcher Penney

    I added support for UTF-8 case folding for non-ASCII letter characters.  This fixes the trailing "T"s problem mentioned above.

     

    I still don't recommend using this functionality with non English text at this point due to differences in title casing rules.

    0
  • Fletcher Penney

    (I also changed the title case function to default to off)

    0
  • Joachim Trinkwitz

    Thanks for this last one, the function was coming quite unexpected.

    0

Please sign in to leave a comment.

Powered by Zendesk