Text this: Band gap engineering of carbon allotropes