Super hacky and needs considerable refinement but, managing to produce glyphs and smart tags.