Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange rendering of Functional Groups #35

Closed
MikeWilliams-UK opened this issue Feb 11, 2020 · 3 comments
Closed

Strange rendering of Functional Groups #35

MikeWilliams-UK opened this issue Feb 11, 2020 · 3 comments
Labels
Bug Something isn't working Fixed Fixed, but may not be released yet

Comments

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Feb 11, 2020

I tried to draw this
image
But I get this
image
A video has been made for your reference. https://youtu.be/jNpb6hgyZFI

<cml:cml xmlns:conventions="http://www.xml-cml.org/convention/" xmlns:cml="http://www.xml-cml.org/schema" xmlns:cmlDict="http://www.xml-cml.org/dictionary/cml/" xmlns:nameDict="http://www.xml-cml.org/dictionary/cml/name/" xmlns:c4w="http://www.chem4word.com/cml" conventions="convention:molecular">
    <cml:atomArray>
      <cml:atom id="a1" elementType="C" x2="482.6795" y2="395" />
      <cml:atom id="a2" elementType="C" x2="482.6795" y2="375" />
      <cml:atom id="a3" elementType="C" x2="500" y2="365" />
      <cml:atom id="a4" elementType="C" x2="517.3205" y2="375" />
      <cml:atom id="a5" elementType="C" x2="517.3205" y2="395" />
      <cml:atom id="a6" elementType="C" x2="500" y2="405" />
      <cml:atom id="a7" elementType="O" x2="500" y2="345" />
      <cml:atom id="a8" elementType="C" x2="527.3205" y2="357.6795" />
      <cml:atom id="a9" elementType="CO2H" x2="537.3205" y2="375" />
      <cml:atom id="a10" elementType="C" x2="577.3205" y2="375" />
      <cml:atom id="a11" elementType="C" x2="617.3205" y2="375" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a1 a2" order="S" />
      <cml:bond id="b2" atomRefs2="a2 a3" order="S" />
      <cml:bond id="b3" atomRefs2="a3 a4" order="S" />
      <cml:bond id="b4" atomRefs2="a4 a5" order="S" />
      <cml:bond id="b5" atomRefs2="a5 a6" order="S" />
      <cml:bond id="b6" atomRefs2="a6 a1" order="S" />
      <cml:bond id="b7" atomRefs2="a3 a7" order="D" />
      <cml:bond id="b8" atomRefs2="a4 a8" order="S" />
      <cml:bond id="b9" atomRefs2="a9 a4" order="S" />
      <cml:bond id="b10" atomRefs2="a9 a10" order="S" />
      <cml:bond id="b11" atomRefs2="a10 a11" order="S" />
    </cml:bondArray>
  </cml:molecule>
</cml:cml>

Originally posted by @tomyan112 in #33 (comment)

@MikeWilliams-UK
Copy link
Contributor Author

@tomyan112 I have created a new issue as this has nothing to do with the terminal double bond placement

@MikeWilliams-UK MikeWilliams-UK changed the title I tried to draw this Functional Group rendering when not at edge of structure Feb 11, 2020
@MikeWilliams-UK MikeWilliams-UK changed the title Functional Group rendering when not at edge of structure Strange rendering of Functional Group CO2H Feb 12, 2020
@MikeWilliams-UK MikeWilliams-UK added Bug Something isn't working Fixed Fixed, but may not be released yet labels Feb 12, 2020
@MikeWilliams-UK
Copy link
Contributor Author

Copied from another issue #38

It does not connect with the carbon
image

See the CO₂H
image

@MikeWilliams-UK MikeWilliams-UK changed the title Strange rendering of Functional Group CO2H Strange rendering of Functional Groups Feb 18, 2020
MikeWilliams-UK added a commit that referenced this issue Mar 5, 2020
…groups

Implement new settings and Fix flipping of functional groups

New Options
- ShowAtomsInColour
- ShowImplicitHydrogens
- ShowAllCarbonAtoms

#11
#17

Functional Group Issues
#35

**Please be sure to try both Test Harness and Add-In**

Related work items: #677, #678, #681
MikeWilliams-UK added a commit that referenced this issue Mar 5, 2020
* ACME displays warning circles when valence violations occur #31
* ACME keyboard focus now returns to the editor #30
* Add ACME Option to render in Monochrome #11
* Add ACME Option to show/hide Implicit Hydrogens #17
* Fix flipping of functional groups #35
* Fix crash when using Create PDF button on Adobe Acrobat Word Add-In #40
* Correct rendering of double bond of norbornene #34
* Correct rendering of terminal double bonds #25
* Silently handle COMException in OnDocumentBeforeSave #42

Related work items: #677, #678, #681, #690, #697, #698, #700, #701
@MikeWilliams-UK
Copy link
Contributor Author

Fixed by beta-6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Fixed Fixed, but may not be released yet
Development

No branches or pull requests

1 participant