aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.142 - [scase] Built-In

Mnemonic aid: scase for Special CASE

Convert space-separated words, minding embedded and attached special characters, in content to specially cased words in a list. First you set up a list containing words exactly as you want them converted. The you use  [specialcase]  on the content. Words that match the list's words will be converted to the case of the word as it exists in the list.

If a word is hypenated or otherwise has a non-alpha, non-numeric character embedded in it, that word goes in the list without the special character:


[scase listName,content]

[list cvt,HTML,PHP,Internet]
[scase cvt,The internet uses Html, and php.]
[list cvt,PooBah,L00kyLoo]
[scase cvt,He's the grand poo-bah: Really!]
[scase cvt,She's just a l00ky-loo.]

The Internet uses HTML, and PHP.
He's the grand Poo-Bah: Really!
She's just a L00ky-Loo.
The Internet uses HTML, and PHP. He's the grand Poo-Bah: Really! She's just a L00ky-Loo.
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