Text this: Principles of plasma diagnostics