Code Monkey home page Code Monkey logo

version3-2's People

Contributors

deadlyvices avatar mikewilliams-uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

version3-2's Issues

Proposed extra shortcut keys

When this feature is adopted, 3 conditions should be considered.
1: nothing is selected (tool switching hotkeys)
2: when a bond is selected (bond hotkeys)
3: when an atom is selected (atom hotkeys)

Key action
Esc Switching between the Lasso/Rectangle Selection tools
0 Draw any bond image

1 Single / Single Up / Single Down / Single Up/Down bond. Consecutive pressing
switches between these types.
image
image
image
image
2 Double / Double Cis/Trans bond
image
image
3 Draw a triple bond
4 Draw an aromatic bond.
image

m Me
e Et
h Draw a hydrogen
d Draw a deuterium
c Draw a carbon
n Draw a nitrogen
o Draw an oxygen
shift+o COOH
shift+n NO₂
k Draw a potassium
s Draw a sulphur
f Draw a fluorine
p Draw a phosphorus
Shift+p Ph
shift+s Draw a silicon
shift+c Draw a chlorine
b Draw a bromine
i Draw an iodine
shift+b Draw a boron
v cyclopropane
u cyclobutane
Ctrl+N Clear canvas
Ctrl+D Deselect
Ctrl+J join selected objects
"+" increase charge
"-" decrease charge

Arrow keys for navigation
|image|right arrow|
image|right arrow|
image|down arrow|
image

Holding Shift while pressing arrow keys for atom to atom or bond to bond jump
|image|shift+right arrow|image|

image|shift+right arrow|image|

Carbon shows up with "show all carbon atom labels" disabled

Describe the bug
I searched Butylamine
image
After import, carbon shows up
image
image
image

Desktop (please complete the following information):
Chem4Word 2020 Beta 9 - [3.1.9.7439]
Operating System: Microsoft Windows 10 Pro for Workstations 64bit [10.0.19041.0] en-GB
Word Product: Microsoft Office 365 Professional Plus 64bit [16.0.12827.20160]

Cannot install the program

Description
The program fails to install.

Screenshots
installation_windows
error_message
installation_error_window

Desktop

  • OS: Windows 11 Pro
  • Word Version: Microsoft 365 (Version 2301 Build 16.0.16026.20002 64-bit)

Avoid clipping of multiple bond

Is your feature request related to a problem? Please describe.
Currently, the bond would just overlap each other which would mean there is an ambiguity to interpret as another compound.
Compound in this example is cyclooctatetraene in its native "tub-shaped" conformation
image
image

Describe the solution you'd like
A little gap would appear to avoid overlap
1280px-All-Z-Cyclooctatetraene_3D_skeletal_formula svg

Drawing of Markush Bond

Describe the solution you'd like
A functional group can be attached to middle position of a ring
Describe alternatives you've considered
This (spaces generated between the ring and the appendage)
image
instead of
image

"Cannot edit Range" Error

Describe the bug
"Cannot edit Range" Error

To Reproduce
Steps to reproduce the behaviour:

  1. Draw something on 2 different word document

  2. While it is calculating
    image

  3. Click a Chem4Word equation in another document

  4. See error

Screenshot
image

Desktop (please complete the following information):
Chem4Word beta 2

It doesn´t work on my system

After installing the full one, the Chem4word tab does not appear.

An attempt is made to force the tab to appear by clicking on "COM Add-ons" and activating the tab corresponding to the add-on.

The add-on is not activated and if you go back to the same "COM Add-ons" window it looks like it is still not activated.

  • OS: Windows 11
  • Word Office 365

Template Library

Is your feature request related to a problem? Please describe.
A template library implemented in the editor
Library includes both standard and custom user templates

Describe the solution you'd like
After double click the template, the structure is save to clipboard. The user then can click the space in the editor to paste it.

image

Additional arrow types

Describe the solution you'd like

Retrosynthetic arrow: Shows precursors for a given molecule
image

Dashed reaction arrow: shows a theoretical step(s)
image

Connecting arrow, allow a new arrow to be drawn from existing arrow
image

image
With a beginning- , mid-, ending- point anchor shows when pointer hovering on it
image

when another arrow is near the anchor point, it will attach to it
example: straight arrow attach to curve arrow at mid-point
image

Example
image
Different kind of curve arrow, fishhook arrow
image

Allow bond orders other than single bond order have stereo option too

Is your feature request related to a problem? Please describe.
Currently, only full bond order has stereo option.
In case of μ-amido-μ-hydroxobis(tetramminecobalt)(4+), if we want to draw NH₃, then we need to choose half bond order and not having stereo option.
image
image

μ-amido-μ-hydroxobis(tetramminecobalt)(4+),
image

Add the pi electron structure for benzene.

Hi,
I'm a student in the UK. For the vast majority of cases, the skeletal formula of benzene that showcases the pi bonding structure (the hexagon with the circle in the middle) is the only relevant skeletal model. The alternating double bonds represent the Kekulé model which is considered "wrong" in most syllabi at my level of education.

I would appreciate it if the pi bonding model could be added.

Thanks.

Not able to access molecules properties with [CH₄]

First draw this structure
image
then delete one of the CH₃
image
I notice there is no count n option in molecules properties

<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:molecule id="m1" c4w:showBrackets="true">
    <cml:atomArray>
      <cml:atom id="a1" elementType="C" x2="819" y2="649.5" />
    </cml:atomArray>
  </cml:molecule>
</cml:cml>

Edited to format as xml and remove non esental data

Charge is not included when rendering in concise formula

Describe the bug

image

Expected behavior
Render as [PtCl₄]²⁻ instead of PtCl₄

Edit: Put back xml in markdown
CML Data

<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">
  <c4w:customXmlPartGuid>a7c4511adb8842e5b6f8739db1caf8d3</c4w:customXmlPartGuid>
  <cml:molecule id="m1" formalCharge="-2">
    <cml:formula id="m1.f0" concise="Pt 1 Cl 4" />
    <cml:formula id="m1.f1" convention="chem4word:ResolvedFormula" inline="Cl4Pt" concise="Pt 1 Cl 4" />
    <cml:formula id="m1.f2" convention="chem4word:ResolvedSmiles" inline="Cl[Pt](Cl)(Cl)Cl" concise="Pt 1 Cl 4" />
    <cml:name id="m1.n1" dictRef="chem4word:CalculatedInchi">1S/4ClH.Pt/h4*1H;/q;;;;+4/p-4</cml:name>
    <cml:name id="m1.n2" dictRef="chem4word:CalculatedInchikey">FBEIPJNQGITEBL-UHFFFAOYSA-J</cml:name>
    <cml:name id="m1.n3" dictRef="chem4word:ResolvedIupacname">tetrachloroplatinum</cml:name>
    <cml:atomArray>
      <cml:atom id="a1" elementType="Pt" x2="634.7596" y2="610.0" />
      <cml:atom id="a2" elementType="Cl" x2="613.5464" y2="588.7868" />
      <cml:atom id="a3" elementType="Cl" x2="655.9728" y2="588.7868" />
      <cml:atom id="a4" elementType="Cl" x2="608.7788" y2="625.0" />
      <cml:atom id="a5" elementType="Cl" x2="660.7404" y2="625.0" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a1 a2" order="S">
        <cml:bondStereo atomRefs2="a1 a2">H</cml:bondStereo>
      </cml:bond>
      <cml:bond id="b2" atomRefs2="a1 a3" order="S">
        <cml:bondStereo atomRefs2="a1 a3">H</cml:bondStereo>
      </cml:bond>
      <cml:bond id="b3" atomRefs2="a4 a1" order="S">
        <cml:bondStereo atomRefs2="a4 a1">W</cml:bondStereo>
      </cml:bond>
      <cml:bond id="b4" atomRefs2="a1 a5" order="S">
        <cml:bondStereo atomRefs2="a1 a5">W</cml:bondStereo>
      </cml:bond>
    </cml:bondArray>
  </cml:molecule>
</cml:cml>

Problem of calculating the valence electrons

Describe the bug

The editor keeps adding hydrogen when the −ve charge is increasing in order to keep the valence electron the same.

Current behavior
image

Expected behavior
image
with the red circle indicating there is an error in valence count
image

The alignment of the render does not match the drawing in the editor

image
image

Edit: Added markdown to format cml nicely.
CML Data

<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">
  <c4w:customXmlPartGuid>8e99280b3d5a4652acd6330132e516dc</c4w:customXmlPartGuid>
  <cml:molecule id="m1">
    <cml:formula id="m1.f0" concise="C 2 H 2 R 2" />
    <cml:formula id="m1.f1" convention="chem4word:ResolvedFormula" inline="Not requested" concise="C 2 H 2 R 2" />
    <cml:formula id="m1.f2" convention="chem4word:ResolvedSmiles" inline="Not requested" concise="C 2 H 2 R 2" />
    <cml:name id="m1.n1" dictRef="chem4word:CalculatedInchi">Unable to calculate</cml:name>
    <cml:name id="m1.n2" dictRef="chem4word:CalculatedInchikey">Unable to calculate</cml:name>
    <cml:name id="m1.n3" dictRef="chem4word:ResolvedIupacname">Not requested</cml:name>
    <cml:atomArray>
      <cml:atom id="a1" elementType="C" x2="539.7258" y2="607.5" />
      <cml:atom id="a2" elementType="R1" x2="513.7451" y2="622.5" />
      <cml:atom id="a3" elementType="R2" x2="565.7066" y2="622.5" />
      <cml:atom id="a4" elementType="C" x2="539.7258" y2="577.5" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a1 a2" order="S" />
      <cml:bond id="b2" atomRefs2="a1 a3" order="S" />
      <cml:bond id="b3" atomRefs2="a1 a4" order="D" />
    </cml:bondArray>
  </cml:molecule>
  <cml:molecule id="m2">
    <cml:formula id="m2.f0" concise="R 1" />
    <cml:formula id="m2.f1" convention="chem4word:ResolvedFormula" inline="Not requested" concise="R 1" />
    <cml:formula id="m2.f2" convention="chem4word:ResolvedSmiles" inline="Not requested" concise="R 1" />
    <cml:name id="m2.n1" dictRef="chem4word:CalculatedInchi">Unable to calculate</cml:name>
    <cml:name id="m2.n2" dictRef="chem4word:CalculatedInchikey">Unable to calculate</cml:name>
    <cml:name id="m2.n3" dictRef="chem4word:ResolvedIupacname">Not requested</cml:name>
    <cml:atomArray>
      <cml:atom id="a5" elementType="R2" x2="671.2549" y2="600.0" />
    </cml:atomArray>
  </cml:molecule>
  <cml:molecule id="m3">
    <cml:formula id="m3.f0" concise="Mg 1" />
    <cml:formula id="m3.f1" convention="chem4word:ResolvedFormula" inline="H2Mg" concise="Mg 1" />
    <cml:formula id="m3.f2" convention="chem4word:ResolvedSmiles" inline="[MgH2]" concise="Mg 1" />
    <cml:name id="m3.n1" dictRef="chem4word:CalculatedInchi">1S/Mg.2H</cml:name>
    <cml:name id="m3.n2" dictRef="chem4word:CalculatedInchikey">RSHAOIXHUHAZPM-UHFFFAOYSA-N</cml:name>
    <cml:name id="m3.n3" dictRef="chem4word:ResolvedIupacname">magnesium dihydride</cml:name>
    <cml:atomArray>
      <cml:atom id="a6" elementType="Mg" x2="692.7549" y2="599.5" />
    </cml:atomArray>
  </cml:molecule>
  <cml:reactionScheme id="rs1">
    <cml:reaction id="r1" c4w:head="646.265,600.0" c4w:tail="595.2258,600.0">
      <c4w:reagents>
        <FlowDocument mc:Ignorable="c4w" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c4w="http://www.chem4word.com/cml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <Paragraph>
            <Run xml:lang="zh-tw">FGl</Run>
          </Paragraph>
        </FlowDocument>
      </c4w:reagents>
    </cml:reaction>
  </cml:reactionScheme>
</cml:cml>

Add cyclopentane(house) for quick access

I think this would be useful as the rectangular shape would be difficult to draw.
image


  Mrv2003 02162016172D          

  5  5  0  0  0  0            999 V2000
   -0.9598   -0.8386    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -1.6743   -0.4261    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -1.6743    0.3989    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -0.2454    0.3989    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -0.2454   -0.4261    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0  0  0  0
  2  3  1  0  0  0  0
  4  5  1  0  0  0  0
  1  5  1  0  0  0  0
  3  4  1  0  0  0  0
M  END

Can't see the bond after changing the hydrogen placement

Describe the bug
Can't see the bond after changing the hydrogen placement

To Reproduce
1.
image
2.
image
3.
image

Expected behavior
image

Edit: Add markdown to format cml properly
CML Data

<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">
  <c4w:customXmlPartGuid>3f0f6e68835b4b109cd05b2a60633116</c4w:customXmlPartGuid>
  <cml:molecule id="m1">
    <cml:formula id="m1.f0" concise="C 2 H 4" />
    <cml:formula id="m1.f1" convention="chem4word:ResolvedFormula" inline="C2H4" concise="C 2 H 4" />
    <cml:formula id="m1.f2" convention="chem4word:ResolvedSmiles" inline="C=C" concise="C 2 H 4" />
    <cml:name id="m1.n1" dictRef="chem4word:CalculatedInchi">1S/C2H4/c1-2/h1-2H2</cml:name>
    <cml:name id="m1.n2" dictRef="chem4word:CalculatedInchikey">VGGSQFUCUMXWEO-UHFFFAOYSA-N</cml:name>
    <cml:name id="m1.n3" dictRef="chem4word:ResolvedIupacname">ethene</cml:name>
    <cml:atomArray>
      <cml:atom id="a1" elementType="C" x2="429.25" y2="563.5" c4w:hydrogenPlacement="East" />
      <cml:atom id="a2" elementType="C" x2="459.25" y2="563.5" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a1 a2" order="D" />
    </cml:bondArray>
  </cml:molecule>
</cml:cml>

Highlight part of the structure

Is your feature request related to a problem? Please describe.

A clear and concise description [in English] of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

Be able to change colour of part of the structure

Describe alternatives you've considered

A clear and concise description [in English] of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Drawing of Haworth projection

Is your feature request related to a problem? Please describe.

A clear and concise description [in English] of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
image

Here is a 10s video for your reference.
https://youtu.be/YfRoXc-xpjQ

Describe alternatives you've considered

A clear and concise description [in English] of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Add-on causes Word not to be able to scroll to selected Comment in Reviewing Pane

To Reproduce
Steps to reproduce the behaviour:

  1. Add a comment to a block of text
  2. Go to a different page
  3. In the Reviewing Pane, select the comment
  4. Word does not scroll to the document page where comment was added, furthermore the Reviewing Pane comments are showing in document area

Expected behavior
Word should work as previously which is scroll to the location in the document where comments were created

CML Data
NA

Screenshots
If applicable, add screenshots to help explain your problem.
image
Fig 1 - After installed - selecting Comment [t3] does nothing
image
Fig 2 - After uninstalled - - selecting Comment [t3] goes to page 3

Desktop (please complete the following information):

  • OS: Windows10 Professional
  • Word Version 2010
    Chem4Word 2022 Beta 3 - [3.2.3.8118]

Installation Id: debd4c08-a94c-4f02-910b-00fe3431203a
Operating System: Microsoft Windows 10 Enterprise 64bit [6.2.9200.0] en-MY
Word Version: 2010
Word Product: Microsoft Office Professional Plus 2010 32bit [14.0.4734.1000]
Internet Explorer Version: 11.0.19041.207
.Net Framework Runtime: .NET 4.8 (W10 2004) [528372]

Settings Folder: C:\Users\triyae\AppData\Local\Chem4Word.V3
Library Folder: C:\ProgramData\Chem4Word.V3

PlugIns Folder: C:\Program Files (x86)\Chem4Word V3\PlugIns
Chem4Word.Editor.ACME.dll - [3.2.3.8118]
Chem4Word.Renderer.OoXmlV4.dll - [3.2.3.8118]
Chem4Word.Searcher.ChEBIPlugin.dll - [3.2.3.8118]
Chem4Word.Searcher.OpsinPlugIn.dll - [3.2.3.8118]
Chem4Word.Searcher.PubChemPlugIn.dll - [3.2.3.8118]

.Net Assemblies loaded in memory
Accessibility, Version=4.0.0.0
Chem4Word.Core, Version=3.2.3.8118
Chem4Word.Editor.ACME, Version=3.2.3.8118
Chem4Word.Libraries, Version=3.2.3.8118
Chem4Word.Renderer.OoXmlV4, Version=3.2.3.8118
Chem4Word.Searcher.ChEBIPlugin, Version=3.2.3.8118
Chem4Word.Searcher.OpsinPlugIn, Version=3.2.3.8118
Chem4Word.Searcher.PubChemPlugIn, Version=3.2.3.8118
Chem4Word.Telemetry, Version=3.2.3.8118
Chem4Word.V3, Version=3.2.3.8118
CustomMarshalers, Version=4.0.0.0
IChem4Word.Contracts, Version=3.2.3.8118
Microsoft.CSharp, Version=4.0.0.0
Microsoft.IdentityModel.Tokens, Version=6.15.1.0
Microsoft.Office.Interop.Word, Version=15.0.0.0
Microsoft.Office.Tools, Version=10.0.0.0
Microsoft.Office.Tools.Common, Version=10.0.0.0
Microsoft.Office.Tools.Common.Implementation, Version=10.0.0.0
Microsoft.Office.Tools.Common.v4.0.Utilities, Version=10.0.0.0
Microsoft.Office.Tools.Word, Version=10.0.0.0
Microsoft.Office.Tools.Word.Implementation, Version=10.0.0.0
Microsoft.ServiceBus, Version=3.0.0.0
Microsoft.VisualStudio.Tools.Applications.Runtime, Version=10.0.0.0
Microsoft.VisualStudio.Tools.Applications.ServerDocument, Version=10.0.0.0
Microsoft.VisualStudio.Tools.Office.Runtime, Version=10.0.0.0
mscorlib, Version=4.0.0.0
Newtonsoft.Json, Version=13.0.0.0
office, Version=15.0.0.0
SMDiagnostics, Version=4.0.0.0
System, Version=4.0.0.0
System.Configuration, Version=4.0.0.0
System.Core, Version=4.0.0.0
System.Data, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.EnterpriseServices, Version=4.0.0.0
System.IdentityModel, Version=4.0.0.0
System.IdentityModel.Tokens.Jwt, Version=6.15.1.0
System.Management, Version=4.0.0.0
System.Numerics, Version=4.0.0.0
System.Runtime.Caching, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
System.ServiceModel, Version=4.0.0.0
System.ServiceModel.Internals, Version=4.0.0.0
System.Transactions, Version=4.0.0.0
System.Web, Version=4.0.0.0
System.Web.Services, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
System.Xml, Version=4.0.0.0
System.Xml.Linq, Version=4.0.0.0
WindowsBase, Version=4.0.0.0

Additional context
tested with:
3.1.20
3.0.40
3.2.3.Beta

Allow the creation of multiple libraries in addition to 'Library.db'

Chem4Word /library/open has only one choice for the library to open - library.db.

In order to separate various structures from one type to another, it would be advantageous to have the ability to choose one or other library to open rather than the 'pre-set' 'library.db'.
For instance, the ability to create new database files and give them their own names:
organic_acids.db
organic_bases.db
etc.
The databases could all be kept in the same folder as the 'library. db' database, so there's no real need to go to special lengths to make other folders 'selectable' - just a simple 'drop-down', as per the existing program, but with additional choices of databases.

Length of reaction arrow mismatch and empty line

Describe the bug
Length of reaction arrow after rendering does not match with the editor
There is an empty line under 1.O₃. I only typed one line.

To Reproduce
image

Edit: Put back markdown removed by reportee
CML Data

<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">
  <c4w:customXmlPartGuid>493ceaca9d9947ae9a567fa1ad920fb4</c4w:customXmlPartGuid>
  <cml:reactionScheme id="rs1">
    <cml:reaction id="r1" c4w:head="1291.0135,1200.0" c4w:tail="1108.9865,1200.0">
      <c4w:reagents>
        <FlowDocument mc:Ignorable="c4w" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c4w="http://www.chem4word.com/cml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <Paragraph>
            <Run>1. O</Run>
            <Run FontSize="18" BaselineAlignment="Subscript">3</Run>
            <LineBreak />
          </Paragraph>
        </FlowDocument>
      </c4w:reagents>
      <c4w:conditions>
        <FlowDocument mc:Ignorable="c4w" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c4w="http://www.chem4word.com/cml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <Paragraph>
            <Run>2. Zn, H</Run>
            <Run FontSize="18" BaselineAlignment="Subscript">2</Run>
            <Run>O</Run>
            <LineBreak />
          </Paragraph>
        </FlowDocument>
      </c4w:conditions>
    </cml:reaction>
  </cml:reactionScheme>
</cml:cml>

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Chem4Word 2022 Beta 2

Charge on bracket mismatch (in the editor only)

Describe the bug
There is a -ve charge on the upper right when it shouldn't
The compound is Vinylcyclopentane
To Reproduce
Steps to reproduce the behaviour:
It shows a -ve charge on the upper right.
image

Expected behavior
no charge on the upper right

Edit: Add markdown to display cml correctly
CML Data

<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">
  <c4w:customXmlPartGuid>214865839cf7427a9766365f41799896</c4w:customXmlPartGuid>
  <cml:molecule id="m1" c4w:showBrackets="true">
    <cml:formula id="m1.f0" concise="C 7 H 12" />
    <cml:formula id="m1.f1" convention="chem4word:ResolvedFormula" inline="C7H12" concise="C 7 H 12" />
    <cml:formula id="m1.f2" convention="chem4word:ResolvedSmiles" inline="C=CC1CCCC1" concise="C 7 H 12" />
    <cml:name id="m1.n1" dictRef="chem4word:CalculatedInchi">1S/C7H12/c1-2-7-5-3-4-6-7/h2,7H,1,3-6H2</cml:name>
    <cml:name id="m1.n2" dictRef="chem4word:CalculatedAuxInfo">1/0/N:7,6,4,5,2,3,1/E:(3,4)(5,6)/rA:7nCCCCCCC/rB:s1;s1;s2;s3s4;s1;d6;/rC:32.7496,-24.3496,0;33.9955,-23.4444,0;33.2255,-25.8143,0;35.2414,-24.3496,0;34.7655,-25.8143,0;31.416,-23.5796,0;30.0823,-24.3496,0;</cml:name>
    <cml:name id="m1.n3" dictRef="chem4word:CalculatedInchikey">BEFDCLMNVWHSGT-UHFFFAOYSA-N</cml:name>
    <cml:name id="m1.n4" dictRef="chem4word:ResolvedIupacname">ethenylcyclopentane</cml:name>
    <cml:atomArray>
      <cml:atom id="a1" elementType="C" x2="601.7104" y2="600.8009" />
      <cml:atom id="a2" elementType="C" x2="625.9808" y2="583.1674" />
      <cml:atom id="a3" elementType="C" x2="610.9808" y2="629.3326" />
      <cml:atom id="a4" elementType="C" x2="650.2513" y2="600.8009" />
      <cml:atom id="a5" elementType="C" x2="640.9808" y2="629.3326" />
      <cml:atom id="a6" elementType="C" x2="575.7296" y2="585.8009" />
      <cml:atom id="a7" elementType="C" x2="549.7487" y2="600.8009" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a2 a1" order="S" />
      <cml:bond id="b2" atomRefs2="a1 a3" order="S" />
      <cml:bond id="b3" atomRefs2="a4 a2" order="S" />
      <cml:bond id="b4" atomRefs2="a3 a5" order="S" />
      <cml:bond id="b5" atomRefs2="a5 a4" order="S" />
      <cml:bond id="b6" atomRefs2="a1 a6" order="S" />
      <cml:bond id="b7" atomRefs2="a6 a7" order="D" c4w:placement="Clockwise" />
    </cml:bondArray>
  </cml:molecule>
</cml:cml>

Placement of ionic charge

Describe the bug
Currently the charge is place on the upper right of the atom rather than upper right of the polymeric ion
image

Describe the solution you'd like
image

Screenshots
From IUPAC Red book
image

Describe alternatives you've considered
Place charge on the upper right by default and allow other position.

Bond type: dative, connector

Is your feature request related to a problem? Please describe.

A clear and concise description [in English] of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Dative
image
Connector
image

Describe alternatives you've considered

A clear and concise description [in English] of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Unable to display minus symbol (−)

Describe the bug
image

image

CML Data

<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">
  <c4w:customXmlPartGuid>7e097b01d1704d2095d7ffe82fbd2d70</c4w:customXmlPartGuid>
  <cml:molecule id="m1">
    <cml:formula id="m1.f0" concise="C 2 H 2 R 2 O 1" />
    <cml:formula id="m1.f1" convention="chem4word:ResolvedFormula" inline="Not requested" concise="C 2 H 2 R 2 O 1" />
    <cml:formula id="m1.f2" convention="chem4word:ResolvedSmiles" inline="Not requested" concise="C 2 H 2 R 2 O 1" />
    <cml:name id="m1.n1" dictRef="chem4word:CalculatedInchi">Unable to calculate</cml:name>
    <cml:name id="m1.n2" dictRef="chem4word:CalculatedAuxInfo">Unable to calculate</cml:name>
    <cml:name id="m1.n3" dictRef="chem4word:CalculatedInchikey">Unable to calculate</cml:name>
    <cml:name id="m1.n4" dictRef="chem4word:ResolvedIupacname">Not requested</cml:name>
    <cml:atomArray>
      <cml:atom id="a1" elementType="R2" x2="485.2792" y2="602.5837" />
      <cml:atom id="a2" elementType="C" x2="467.9586" y2="612.5837" />
      <cml:atom id="a3" elementType="C" x2="450.6382" y2="602.5837" />
      <cml:atom id="a4" elementType="R3" x2="433.3177" y2="612.5837" />
      <cml:atom id="a5" elementType="O" x2="450.6382" y2="582.5837" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b1" atomRefs2="a2 a1" order="S" />
      <cml:bond id="b2" atomRefs2="a3 a2" order="S" />
      <cml:bond id="b3" atomRefs2="a3 a5" order="D" />
      <cml:bond id="b4" atomRefs2="a4 a3" order="S" />
    </cml:bondArray>
  </cml:molecule>
  <cml:molecule id="m2">
    <cml:formula id="m2.f0" concise="C 3 H 3 R 3 O 2" />
    <cml:formula id="m2.f1" convention="chem4word:ResolvedFormula" inline="Not requested" concise="C 3 H 3 R 3 O 2" />
    <cml:formula id="m2.f2" convention="chem4word:ResolvedSmiles" inline="Not requested" concise="C 3 H 3 R 3 O 2" />
    <cml:name id="m2.n1" dictRef="chem4word:CalculatedInchi">Unable to calculate</cml:name>
    <cml:name id="m2.n2" dictRef="chem4word:CalculatedInchikey">Unable to calculate</cml:name>
    <cml:name id="m2.n3" dictRef="chem4word:ResolvedIupacname">Not requested</cml:name>
    <cml:atomArray>
      <cml:atom id="a6" elementType="R3" x2="566.2955" y2="605.2497" />
      <cml:atom id="a7" elementType="C" x2="583.616" y2="595.2497" />
      <cml:atom id="a8" elementType="C" x2="600.9365" y2="605.2497" />
      <cml:atom id="a9" elementType="R2" x2="600.9365" y2="625.2497" />
      <cml:atom id="a10" elementType="C" x2="618.2569" y2="595.2497" />
      <cml:atom id="a11" elementType="R1" x2="635.5776" y2="605.2497" />
      <cml:atom id="a12" elementType="O" x2="618.2569" y2="575.2497" />
      <cml:atom id="a13" elementType="O" x2="583.616" y2="575.2497" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b5" atomRefs2="a6 a7" order="S" />
      <cml:bond id="b6" atomRefs2="a7 a8" order="S" />
      <cml:bond id="b7" atomRefs2="a8 a9" order="S" />
      <cml:bond id="b8" atomRefs2="a8 a10" order="S" />
      <cml:bond id="b9" atomRefs2="a10 a11" order="S" />
      <cml:bond id="b10" atomRefs2="a7 a13" order="D" />
      <cml:bond id="b11" atomRefs2="a10 a12" order="S" />
    </cml:bondArray>
  </cml:molecule>
  <cml:molecule id="m3">
    <cml:formula id="m3.f0" concise="C 3 H 1 R 3 O 1" />
    <cml:formula id="m3.f1" convention="chem4word:ResolvedFormula" inline="Not requested" concise="C 3 H 1 R 3 O 1" />
    <cml:formula id="m3.f2" convention="chem4word:ResolvedSmiles" inline="Not requested" concise="C 3 H 1 R 3 O 1" />
    <cml:name id="m3.n1" dictRef="chem4word:CalculatedInchi">Unable to calculate</cml:name>
    <cml:name id="m3.n2" dictRef="chem4word:CalculatedInchikey">Unable to calculate</cml:name>
    <cml:name id="m3.n3" dictRef="chem4word:ResolvedIupacname">Not requested</cml:name>
    <cml:atomArray>
      <cml:atom id="a14" elementType="R3" x2="697.4004" y2="604.7503" />
      <cml:atom id="a15" elementType="C" x2="714.7208" y2="594.7503" />
      <cml:atom id="a16" elementType="C" x2="732.0414" y2="604.7503" />
      <cml:atom id="a17" elementType="R2" x2="732.0414" y2="624.7503" />
      <cml:atom id="a18" elementType="C" x2="749.3618" y2="594.7503" />
      <cml:atom id="a19" elementType="R1" x2="766.6823" y2="604.7503" />
      <cml:atom id="a20" elementType="O" x2="714.7208" y2="574.7503" />
    </cml:atomArray>
    <cml:bondArray>
      <cml:bond id="b12" atomRefs2="a14 a15" order="S" />
      <cml:bond id="b13" atomRefs2="a15 a16" order="S" />
      <cml:bond id="b14" atomRefs2="a16 a17" order="S" />
      <cml:bond id="b15" atomRefs2="a16 a18" order="D" c4w:placement="Anticlockwise" />
      <cml:bond id="b16" atomRefs2="a18 a19" order="S" />
      <cml:bond id="b17" atomRefs2="a15 a20" order="D" />
    </cml:bondArray>
  </cml:molecule>
  <cml:reactionScheme id="rs1">
    <cml:reaction id="r1" c4w:head="555.7898,603.4157" c4w:tail="495.7899,603.4157">
      <c4w:reagents>
        <FlowDocument mc:Ignorable="c4w" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:c4w="http://www.chem4word.com/cml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
          <Paragraph>
            <Run>[1] LDA</Run>
          </Paragraph>
        </FlowDocument>
      </c4w:reagents>
      <c4w:conditions>
        <FlowDocument mc:Ignorable="c4w" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:c4w="http://www.chem4word.com/cml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
          <Paragraph>
            <Run>[2] RCHO</Run>
            <LineBreak />
            <Run>[3] H</Run>
            <Run FontSize="18" BaselineAlignment="Subscript">2</Run>
            <Run>O    </Run>
          </Paragraph>
        </FlowDocument>
      </c4w:conditions>
    </cml:reaction>
    <cml:reaction id="r2" c4w:head="683.8011,601.5821" c4w:tail="648.6009,601.5821">
      <c4w:reagents>
        <FlowDocument mc:Ignorable="c4w" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c4w="http://www.chem4word.com/cml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <Paragraph>
            <Run>−OH</Run>
          </Paragraph>
        </FlowDocument>
      </c4w:reagents>
      <c4w:conditions>
        <FlowDocument mc:Ignorable="c4w" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c4w="http://www.chem4word.com/cml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <Paragraph>
            <Run>or</Run>
            <LineBreak />
            <Run>H</Run>
            <Run FontSize="18.000022797386425" BaselineAlignment="Subscript">3</Run>
            <Run>O</Run>
            <Run FontSize="18.000022797386425" BaselineAlignment="Superscript">+</Run>
          </Paragraph>
        </FlowDocument>
      </c4w:conditions>
    </cml:reaction>
  </cml:reactionScheme>
</cml:cml>

Atom label editor

A label editor which allow us to type different text instead of only able to select from the periodic table.
In chemdoodle 10
image

Allow change of length in bond properties

Describe the solution you'd like

image

Describe alternatives you've considered

I understand that we can drag the bond, we can't do it very precisely.


Edited to put this irrelevant information to the bottom.

In current version, Chem4Word 2020 Beta 8, the default bond length for 1 letter elements (e.g. C,O,N) and 2 letter elements are different (e.g. Ru)
image
image

Chem4Word ribbon greyed out (except Options and Help) when opeing word document in compatability mode.

Having added some downloaded structures to a word document, via chem4word, when I reopened the document a few days later, when I open the Chem4word ribbon all the features are 'greyed out' except for the "Options and "Help" buttons.

If I open a new, blank, Word Document then the Chem4Word ribbon is active.

To Reproduce
Open saved document with Chem4Word structures embedded and the chemistry tab ribbon is inactive.

Expected behavior
Chemistry ribbon should be active

Screenshots
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.