orthonym.assembly.halogen_ring_ions#

Note

Internal API. Names and behaviour may change between releases.

The parent name of a hetero monocycle that holds a ring halogen ion, for the general engine.

A ring iodanuide [I-] or iodonium [I+] centre (lambda_convention.ring_halogen_ion) is named from the lambda hydride whose ring atom has one hydrogen more than the ion has bonds: the anion is that hydride less a hydron (‘ide’, method (2)), the cation that hydride less a hydride ion (‘ylium’, “Application of the lambda-convention with the suffix ‘ylium’”, the Blue Book). ring_ion_parent_name is the name of that hydride, which the caller’s charge suffix then takes the hydron or the hydride ion off.

orthonym.assembly.halogen_ring_ions.ring_halogen_hydride_view(mol, ring_set)#

mol with each ring iodanuide and iodonium centre of ring_set given its hydrogen back and its charge taken off: the lambda hydride the ion is named from, so the ring name is the hydride’s (‘1H-1lambda3-iodepine’) and the caller’s ending takes the hydron or the hydride ion off again. mol itself when the ring holds no such centre; atom indices are the same in the copy.

orthonym.assembly.halogen_ring_ions.ring_ion_parent_name(mol, ring_set, parent_ring, atom_to_locant)#

The ring name name_heterocycle gives the hydride view of mol’s ring, less the indicated hydrogen that stands on the iodonium centre itself: the ‘ylium’ takes that very hydrogen (with its hydride ion), so the book names the cation of ‘1H-1lambda3-benziodole’ ‘1lambda3-benziodol-1-ylium (PIN)’, the Blue Book), as ‘5lambda5-quinolizin-5-ylium’ (:41700) carries none. An indicated hydrogen on another ring atom stays (‘3H-1lambda4-thiophen-1-ylium’,:41692).

orthonym.assembly.halogen_ring_ions.fused_ring_ion_view(mol, ring_set)#

The lambda hydride view of mol when its only charge is ONE ring iodanuide or iodonium centre of the fusable ring system ring_set (ring_halogen_ion) and nothing else is ionic, else None.

orthonym.assembly.halogen_ring_ions.fused_ring_ion_parent(parent, mol, ring_set, atom_to_locant, append_charge_suffix)#

(name, charge_atom_ids) of the fusion parent of the hydride view with the charge ending of the ion (append_charge_suffix is the general engine’s), less the indicated hydrogen the ‘ylium’ takes (ring_ion_parent_name); None when the ending cannot be built.