-
Notifications
You must be signed in to change notification settings - Fork 109
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
#2748 Substituents are displayed backwards if appearing on the left of the molecule #2753
base: master
Are you sure you want to change the base?
#2748 Substituents are displayed backwards if appearing on the left of the molecule #2753
Conversation
I have a problem with the regression tests: On my machine, my new test passes even when the output and the reference pngs are different. I have uploaded the old (incorrect) png to the ref directory - so the cd/ci tests should fail. If they don't fail, then there may be a problem when comparing the rendered pngs for my test. |
@@ -3477,6 +3482,42 @@ void MoleculeRenderInternal::_prepareLabelText(int aid) | |||
} | |||
} | |||
|
|||
void MoleculeRenderInternal::_reverseLabelText(const int aid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this function - it is too simple and will corrupt correct names.
e.g. N,N-dimethylaniline
will be changed to N-dimethylanilineN,
, tBu
to But
, DIPEA
to AEPID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out, you are correct. Looking at chemdraw, it does reasonably well but gets DIPEA and N,N-dimethylaniline wrong
I guess they have a library of common names and they break the substituent string into these fragments. So we would have to do something similar and implement a larger library. I'm checking on our side if we want to push forward with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chemdraw: File -> List Nicknames
Generic request
#1234 – issue name