Generate a table-driven version of TRI::composeSubRegIndices().