orthonym.rules.mixed_ester_locants#

Note

Internal API. Names and behaviour may change between releases.

The organyl words of a diester whose two organyl groups differ and whose two acid positions are not equivalent.

“Fully esterified acids derived from a single acid” (the Blue Book): the organyl groups are cited

as separate words before the anion, in alphanumerical order, with locants where needed: ‘1,1-diethyl 3-methyl butane-1,1,3-tricarboxylate (PIN)’ (:31783). Where the two acid positions are equivalent no locant is needed: ‘ethyl methyl benzene-1,3-dicarboxylate (PIN)’ (:5068), ‘ethyl methyl butanedioate (PIN)’ (:31779). Without the locants ‘ethyl methyl 4-methylbenzene-1,3-dicarboxylate’ names two molecules.

The anion’s own name gives the two acid locants; which organyl group takes which locant is read back: both assignments are built and OPSIN keeps the one whose structure is the input (the other names the other isomer). With no reading (no jar) the diester is declined.

orthonym.rules.mixed_ester_locants.positions_equivalent(diacid, carbonyls)#

True when the two acid carbons carbonyls of diacid are one symmetry class.

orthonym.rules.mixed_ester_locants.located_organyl_words(mol, organyls, ate, sort_key, read, chain_length=0)#

‘1-ethyl 3-methyl 4-methylbenzene-1,3-dicarboxylate’, ‘1,1-diethyl 3-methyl butane-1,1,3-tricarboxylate’ for the organyl groups organyls (one per ester) of mol, or None when the anion ate gives no locant per ester or not exactly one assignment of the locants reads back to mol. A chain ‘-dioate’ cites no terminal locant , the Blue Book): its acid positions are 1 and chain_length.