orthonym.rules.benzene_polyamide#

Note

Internal API. Names and behaviour may change between releases.

Benzene di- and polyamides whose nitrogens carry groups: each group cited with the N-locant of its own nitrogen.

‘N-Substitution’, (the Blue Book): “In di- and polyamides, except for geminal

diamides, N locants with superscripted arabic numbers, which are the locants of the parent structure, are used to differentiate the nitrogen atoms”; ‘N1-methylbutanediamide (PIN)’, ‘N3-ethyl-N1-methylnaphthalene-1,3-disulfonamide (PIN)’; ‘benzene-1,4-dicarboxamide (PIN)’ (:32718). Kept apart from rules.benzene (a module at its size budget), whose benzene polyamine writer, the same superscript convention) builds the name with the amide suffix. The prefix part of those names (n_locant_prefix_part) is also the one of the polycyclic polyamides (‘N2,N6-dimethylnaphthalene-2,6-dicarboxamide’, polycyclic_polyamide_prefixes).

orthonym.rules.benzene_polyamide.note_n_substituents(n_substituents_map, sub_info, locant)#

Record the N-groups of a suffix group: under the suffix name (the one-group writers read it) and per locant.

orthonym.rules.benzene_polyamide.name_benzene_polyamide(chosen_suffix, chosen_locants, prefix_groups, n_substituents_map)#

‘N1-methylbenzene-1,4-dicarboxamide’ for two or more ring amides of which at least one nitrogen carries a group; None for any other case (one amide: the ‘benzamide’ writer; no N-group: the plain multiplied suffix).

orthonym.rules.benzene_polyamide.n_locant_prefix_part(ring_groups, n_by_locant)#

The prefix part of a poly-amine or polyamide name: every N group with the N-locant of its own nitrogen , the Blue Book;,:32774), one name over the ring and the nitrogens multiplied together, the italic N locants first,:7027;,:3195: ‘N1,N4,2-trimethyl’), all prefixes in one alphanumerical series: ‘4-chloro-N1-methyl’. ‘’ when there is no prefix.

orthonym.rules.benzene_polyamide.polycyclic_polyamide_prefixes(mol, substituents, atom_to_locant, ring_groups, fixed)#

The prefix part of a polycyclic hydrocarbon with two or more ring carboxamides of which at least one nitrogen carries a group (‘N2,N6-dimethyl’ of ‘N2,N6-dimethylnaphthalene-2,6-dicarboxamide’), or None for any other case.

The numbering of the ring system is fixed up to its symmetry; of the symmetry images that keep every suffix locant and the locants of every ring prefix, the one chosen gives the substituted nitrogens the lowest locants after the ring locants: ‘N4,2-dimethylpentane-2,4-diamine (PIN)’, the Blue Book; ‘N1-methylbutanediamide (PIN)’,:32774), then the N group cited first the lowest (g)). fixed: keep the given numbering (the name cites stereodescriptors with its locants).