aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 

4.136 - [capt] Built-In

Mnemonic aid: caps for CAPitalize Title

See also:  [caps]  and  [capw] 


This built-in uses a list of the USG standard lower-cased words to create sentence-cased output. You can alter the lower cased word list by changing the class variable .notcase similar to this:

mod = macro() mod.notcase = ['an','a','the','test']

After doing that,  [capt]  will only lower case those four words, while every other word will be capitalized.

Convert content to title case:

[capt content]

[capt thIs Is a test]

This Is a Test
This Is a Test
Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7