Text this: Gauge theory on compact surfaces