The calculation of the emission line spectrum for simple ions is fairly straightforward and is discussed by, e.g., Osterbrock (1989) and Aller (1984). The discussion that follows draws upon those references, and upon the discussion in DDH, in order to make clear the methodologies used in the nebular source code.