scripts/dictionary: better output formatting