orthonym.rules.isotope_slots#
Note
Internal API. Names and behaviour may change between releases.
Slots of a name where an isotope descriptor can be inserted that rules.isotopes._insertion_offsets offers
besides the start of every alphabetic run (IUPAC 2013,.
(the Blue Book): the descriptor “is inserted before the part of the compound that is
isotopically substituted”, and “when the name, or a part of a name, includes a preceding locant, a hyphen is inserted”. Every candidate built from a slot is read back by OPSIN before it is used, so a slot that offers too much costs a parse and nothing else.
- orthonym.rules.isotope_slots.BRACKET_HW_LOCANT_RE = re.compile('[(\\[{](?=\\d+(?:,\\d+)*-(?!(?:thi|ox|selen|tellur)anthren|(?:phosph|ars|stib|bism)in(?:ol|dol)|(?:di|tri|tetra)?(?:az|phosph|ars|stib|bism|sil|germ|stann|plumb|bor)ane$)(?:(?:di|tri|tetra|penta|hexa)#
The heteroatom locants of a Hantzsch-Widman ring opening a SUBSTITUENT’s name inside its enclosing marks, the
1,3-of(1,3-dioxolan-2-yl)or of(1,3-thiazol-2-yl): as for the benzo-fused rings (rules.isotopes._BRACKET_BENZO_LOCANT_RE) the locant set belongs to the ring, and a nuclide on it takes the slot right after the mark, hyphen-joined:{2-[(2-13C)-1,3-dioxolan-2-yl]ethenyl}. The index after the mark is the slot.
- orthonym.rules.isotope_slots.COMPONENT_LOCANT_START_RE = re.compile('(?<=[—\\s])(?=\\d)')#
the
1H-ofethanol—1H-imidazole (1/1)adducts, salts). The alphabetic slots ofrules.isotopes._insertion_offsetsstart inside the stem and the indicated-hydrogen slot needs a hyphen before it, so a nuclide on such a component had no slot:ethanol—(2-2H)-1H-imidazole (1/1)named nothing although(2-2H)-1H-imidazolealone was named.: the name is formed by “inserting the nuclide symbol(s)… before the part of the compound that is isotopically substituted” (the Blue Book); the hyphen before the locant is added afterwards, as for the whole-name front slot (‘(15N)-1H-indole (PIN)’,:43790). The index of the digit is the slot.- Type:
The start of a later component of a multi-part name that opens with a locant
- orthonym.rules.isotope_slots.unlabelled_components_kept(name, skeleton, original)#
name(re-rendered with every locant cited, with each component that carries no nuclide spelled as in the unmodifiedskeleton: (the Blue Book) “if isotopic modification requires a locant to specify its position, then all locants must be specified” concerns the compound that is modified, and the other components of an adduct keep their names (‘ethanol—(4-2H)-1H-imidazole (1/1)’, not ‘ethan-1-ol—‘). Kept only when the two names have the same components in the same order and OPSIN reads the result back tooriginal; otherwisenameis returned and recorded as no PIN.