Note: the TWCore "toc" macros use the "caption" field (not "description") to define the text to display for each toc entry.
<$button> set captions
<$list filter="...">
<$action-setfield caption={{{ [[Railroad]] [{!!title}split[]first[]] [{!!title}split[]first[3]join[]] [{!!title}] +[join[-]] }}} />
</$list>
</$button>
Notes:
* The $list filter is whatever you want to use to select your desired "set of tiddlers".
* For each matching tiddler, the caption field value is constructed using 5 filter "runs" within a "filtered transclusion" syntax: {{{ ... }}}
* [[Railroad]] is literal text
* [{!!title}split[]first[]] extracts the first character from the title
* [{!!title}split[]first[3]join[]] extracts the first 3 characters from the title
* [{!!title}] is the full title text
* +[join[-]] combines the previous 4 parts with "-" in between each part
The result is a single text value, e.g., "Railroad-A-Atc-Atchison, Topeka & Santa Fe Railway"
which is then stored in the "caption" field of the current tiddler.
enjoy,
-e