Chem4Word / Version3-2

Version 2022 (3.2) of Chem4Word - A Chemistry Add-In for Microsoft Word
https://www.chem4word.co.uk
Other
21 stars 2 forks source link

Placement of ionic charge #31

Open tomyan112 opened 2 years ago

tomyan112 commented 2 years ago

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.

MikeWilliams-UK commented 2 years ago

Over to you on this one @deadlyvices, however the image @tomyan112 is quoting from does not cover the scenario where implicit H are shown.

MikeWilliams-UK commented 2 years ago

@deadlyvices please confirm that you agree that this is by design.

Wydna commented 2 years ago

I agree with Tom. The change is correct.

MikeWilliams-UK commented 2 years ago

@Wydna if you agree with @tomyan112, then the charge as drawn in Chem4word is wrong. (Not correct as you have said above)

Wydna commented 2 years ago

Read the comment again. The CHANGE is correct. If IUPAC places the charge where Tom has indicated, then Chem4Word is incorrect.

deadlyvices commented 2 years ago

There's a couple of things mixed up here: placement of charge and handling of text representations of compounds. At the moment, a compound which is appears as if it is text is is simply drawn out by Chem4Word. Hence, the - in OH- appears above the charged atom, in this case an O, and then the H is drawn. This is because Chem4Word requires that the O is drawn out separately.

We will need to address this when we attack semantic entities in text representations. For this reason , I suggest we park this issue for now.

deadlyvices commented 9 months ago

Hi @tomyan112 : would you like to help us beta-test the next version of Chem4Word? Please respond to this thread if you would like to help.