Text this: Exact analysis of bi-periodic structures