Here is a small example that allows to create a SVG fro a smiles code. In this SVG we add a custom property that contains a diastereotopic atom ID. This will allow to know easy which protons in a molecule are enantiotopic, diastereotopic or homotopic.