aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.141 - [expand] Built-In

Mnemonic aid: expand for EXPAND keywords in content

Convert whitespace-separated strings, stripped of any leading and/or trailing non-alpha characters, by extracted lowercase alpha keywords against the supplied dictionary.

Whitespace is collapsed by this built in.

If a keyword has its first letter capitalized, then the first letter of the expansion will also be capitalized. The keyword is determined as follows:

Leading and trailing non-alpha characters are not used as part of the keyword but will remain present around any expansion; non-alpha characters between the first and last alpha characters, whether inside leading and trailing non-alpha characters or not, are not part of the keyword.

The expansion can be more than one word and may contain any character simply based on what is in the dictionary entry.

Keywords are converted to lower case before they are used to determine which dictionary entry to use, so only lower-case keys will enable expansion.


[expand dictName,content]

[dict tonedown,befunked:bewildered,clueless:confused,afraid:nervous]
[expand tonedown,Befunked, afraid and *clueless*.]
[dict dbldown,silly:a flaming-idiot]
[expand dbldown,This person is silly!]

Bewildered, nervous and *confused*.
This person is a flaming-idiot!
Bewildered, nervous and *confused*. This person is a flaming-idiot!
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