Text this: A generalized Hirzebruch Riemann–Roch theorem