orthonym.rules.isotope_phane_locants#
Note
Internal API. Names and behaviour may change between releases.
The locants of an isotope descriptor that cite an atom of a phane amplificant are composite locants.
Numbering, Numbering of phane parent hydrides, (the Blue Book): “locants for
amplificant atoms are constructed by citing the actual locants of the amplificant as superscripts to the locant
of the superatom that represents the amplificant in the simplified skeleton” (1^4: atom 4 of the amplificant
at superatom 1). (:15115): “The seniority of a composite locant is determined first on the basis of its
primary locants,… and, if these locants are identical, on the basis of the complete composite locant itself”.
Letter and/or numeral locants (:44208): “Specific positions of nuclides must be indicated in the isotopic
descriptor by appropriate locants”.
The placement search of rules.isotopes writes every locant as an integer (1… the number of heavy atoms) and lets
OPSIN say which one reads back as the labelled atom. OPSIN reads 14 as 1^4 in a phane name, so the integer
spelling reads back, but only where no node of the simplified skeleton has that number: in a skeleton of 12 or more
nodes 12 and 13 are nodes, the search never reaches 1^2 and 1^3, and the lowest composite locant
is skipped. So the search is offered the composite locants of the amplificants of the skeleton name
(composite_tokens(), the superatom locants of its amplification blocks, 1,7(1),3,5(1,4)-tetrabenzena,
,, with the amplificant locants 1… n), before the integers, in the order of: the
strategies that cite one locant, or one locant per distinct position, take them (_find_best_placement,
_decorate_distinct_multi_locant), and every candidate is read back like any other.
The strategy of mixed nuclides and the others still write integers, so the spelling is also settled on the name the
passes return (rules.isotope_passes.decorate_passes): an integer locant of two or more digits in a descriptor of
a name with amplification blocks is split into a superatom locant of the name and the amplificant locant, and the
composite spelling replaces it where OPSIN reads the name back as the labelled molecule. A locant that no split reads
back as stays as it is: it is the number of a node of the simplified skeleton. A name made that way in a skeleton of
11 or more nodes (or of a node count the name does not give) is recorded below the PIN: the integer search could not
reach a composite locant whose integer is a node, so the set it found is not proven the lowest.
- class orthonym.rules.isotope_phane_locants.CompositeLocant(primary, number, letter='')#
Bases:
intA composite locant of an atom of a phane amplificant (
1^4) as the placement search carries it: an integer that orders as (:15115) orders composite locants (the primary locant first, then the superscript, a letter after its number) and is written as the composite locant. It is above every integer locant of a molecule.
- orthonym.rules.isotope_phane_locants.composite_sort_key(token)#
The key of a composite locant text (
1^4,2^4a) among the keys ofisotopes._locant_sort_key((number, has_letter, letter, primes)): its primary locant, then the superscript; None for a token that is no composite locant.
- orthonym.rules.isotope_phane_locants.composite_tokens(skel, original)#
The composite locants of the atoms of the amplificants of the phane skeleton name
skel, in the order of: for each superatom locant of its amplification blocks the amplificant locants 1… the atoms of the largest ring system oforiginal, with the lettered locants of a fusion atom when a ring system is fused. Empty for a name that is no phane name.
- orthonym.rules.isotope_phane_locants.skeleton_node_count(name)#
The number of nodes of the simplified skeleton of the phane name
name:tridecaphane13), the largest when the name has several; None when no skeleton word is found.
- orthonym.rules.isotope_phane_locants.superatom_locants(name)#
The superatom locants the amplification blocks of
namecite, ascending (empty for a name with none).
- orthonym.rules.isotope_phane_locants.composite_locants(name, reads_back)#
namewith every integer locant of its isotope descriptors that cites an atom of an amplificant spelt as a composite locant;reads_back(candidate)says whether OPSIN readscandidateas the labelled molecule.nameitself when it has no amplification block, no such locant, or no spelling reads back.
- orthonym.rules.isotope_phane_locants.decorated_with_composite_locants(name, original)#
The name the decorator found, its descriptor locants spelt as composite locants where they cite an atom of a phane amplificant (
composite_locants()), checked by the read-back ofrules.isotopes. A non-PIN record of the name (metrics.provenance) goes to the spelling that replaces it.