Skip to content

Comments

mglyph -> mtext broke some images#1208

Merged
rocky merged 1 commit intomasterfrom
graphics-breakage
Mar 29, 2021
Merged

mglyph -> mtext broke some images#1208
rocky merged 1 commit intomasterfrom
graphics-breakage

Conversation

@rocky
Copy link
Member

@rocky rocky commented Mar 29, 2021

@mmatera I used git bisect and tracked the graphics misbehaving to 616dbba and specificlly the one-line change here.

What does this change make possible? If we can't figure out something that accomodates both concerns, maybe we can add a setting so both ways are possible.

BTW This PR is the kind of thing I was mentioning about large PR's that are hard to follow.

The title of #1173 is "adds FileNames, a symbol required in the FeynCalc package" and I don't see how this change which is about graphics has anything to do with ByteArray or FileNames. Even the commit message "fix write" isn't suggestive.

@rocky rocky requested a review from mmatera March 29, 2021 09:33
@mmatera
Copy link
Contributor

mmatera commented Mar 29, 2021

The problem here is that both ways are broken: mglyph does not work anymore because MathML standard changed. The mtext way does not work because the way in which we produce the svg images is also based on this outdated mglyph behaviour. However, the mtext version allows us to patch this with the pymathics modules we are developing, while the mglyph doesn't.

I overwrite this method in such classes, so I think that this change does not harm the pymathics mechanism to fix this. Go ahead.

Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave the line as a comment.

@rocky rocky force-pushed the graphics-breakage branch from 5effca2 to 1ff00b1 Compare March 29, 2021 12:05
@rocky rocky merged commit a7a7e08 into master Mar 29, 2021
rocky added a commit that referenced this pull request Mar 29, 2021
mglyph -> mtext broke some images
@rocky rocky deleted the graphics-breakage branch April 3, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants