Use when instead of cond in -main
Use 'characters' instead of 'text' in -main to keep the WordPress code plug-in happy