gbranden pushed a commit to branch master
in repository groff.

commit a149c1b0f4950b402e7782f130003774d31ef5ed
Author: Norwid Behrnd <[email protected]>
AuthorDate: Mon Jan 19 18:12:44 2026 -0600

    [chem]: Fix Savannah #67922 (2/3).
    
    * contrib/chem/examples/mepacrine.chem: Update to describe mepacrine.
      Now the visual representation of the structure matches the
      expectations set by the file name.  The visuals obtained by a
      compilation meet the rules compiled by Brecher.[1]
    
    [1] Brecher, J. Graphical Representation Standards for Chemical
        Structure Diagrams (IUPAC Recommendations 2008). Pure Appl.  Chem
        2008, 80 (2), 277–410. https://doi.org/10.1351/pac200880020277.
    
    Continues fixing <https://savannah.gnu.org/bugs/?67922>.
---
 contrib/chem/ChangeLog               | 14 +++++++++++
 contrib/chem/examples/mepacrine.chem | 45 ++++++++++++++++++++----------------
 2 files changed, 39 insertions(+), 20 deletions(-)

diff --git a/contrib/chem/ChangeLog b/contrib/chem/ChangeLog
index 836ea9412..5eeb1d598 100644
--- a/contrib/chem/ChangeLog
+++ b/contrib/chem/ChangeLog
@@ -1,3 +1,17 @@
+2026-01-18  Norwid Behrnd <[email protected]>
+
+       * examples/mepacrine.chem: Update to describe mepacrine.  Now
+       the visual representation of the structure matches the
+       expectations set by the file name.  The visuals obtained by a
+       compilation meet the rules compiled by Brecher.[1]
+
+       [1] Brecher, J. Graphical Representation Standards for Chemical
+           Structure Diagrams (IUPAC Recommendations 2008). Pure Appl.
+           Chem 2008, 80 (2), 277–410.
+           https://doi.org/10.1351/pac200880020277.
+
+       Continues fixing <https://savannah.gnu.org/bugs/?67922>.
+
 2026-01-18  Norwid Behrnd <[email protected]>
 
        * examples/morphine.chem: Rename this...
diff --git a/contrib/chem/examples/mepacrine.chem 
b/contrib/chem/examples/mepacrine.chem
index 52e92fd03..611b88aca 100644
--- a/contrib/chem/examples/mepacrine.chem
+++ b/contrib/chem/examples/mepacrine.chem
@@ -1,31 +1,36 @@
-morphine.chem:
+mepacrine.chem:
 .cstart
 
 # Example file for chem:
-#    Morphine or C23_H31_N3O or
-#    N,N-diethyl-N'-(2-methoxyacridin-9-yl)-pentane-1,4-diamine
+#    mepacrine or atabrine or quinacrine or C_23H30_ClN_3O (CAS-RN: 83-89-6)
 #
-# Found at http://www.chemindustry.com/apps/chemicals.
+# Found at https://en.wikipedia.org/wiki/Mepacrine
 #
-# Prepared by Bernd Warken <[email protected]>.
+# Prepared by Bernd Warken <[email protected]>,
+# reorganized by Norwid Behrnd <[email protected]>.
+
+R1:    ring6 double 1,2 3,4 5,6
+R2:    ring6 with .V5 at R1.V3 put N at 4 double 1,2 3,4
+R3:    ring6 with .V5 at R2.V3 double 1,2 3,4
+
+       bond -120 at R1.V5 ; Cl
 
-R1:    benzene
-R2:    benzene with .V6 at R1.V2 with .V5 at R1.V3 put N at 4
-R3:    benzene with .V6 at R2.V2 with .V5 at R2.V3
-       bond 60 at R3.V2 ; O
-       bond 120
        bond up at R2.V1 ; N
-       bond 60 ; H
-       bond -60 at N
-B1:    backbond -120
-       bond up at B1.start
-       bond -60
-       bond up
-       bond -60 ; N
+       H left of N
+       bond  60 from N
+BP:    bond 120
+       bond up from BP.start
+       bond 120 from BP.start
+       bond  60
+       bond 120
+       bond  60 ; N
        bond up
-       bond -60
-       bond -120 at N
-       bond -60
+       bond  60
+       bond 120 from N
+       bond  60
+
+       bond 60 at R3.V2 ; O
+       bond 120
 
 # Local Variables:
 # mode: Nroff

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to