wxMaxima-developers / wxmaxima

A gui for the computer algebra system Maxima built with wxWidgets
https://wxMaxima-developers.github.io/wxmaxima/
Other
477 stars 98 forks source link

Problem of copying results to Word #1942

Closed idealkindom closed 1 month ago

idealkindom commented 2 months ago

The recent new version of WxMaxima has various problem hindering me from using it as normal Maxima interface.

Today I outlined some bug I confronted in copying the math results to a word docu.

No. 1 the subscript display problem, may be almostly sovled by @robert-dodier in Issue #1807; No.2 the loss of squre number; No.3 the intorcution of nonsense “”. No. 4 wrong display of centered dot multiplication operator. No.4 wrong display of “aqqrox” as a strange squre.

I attached the wxmx sheet(the archived zip file) and the word docu with pasted calculated results at the end so as to help with reproducing the problems I listed above. Though not be a developer, I have been doing Algebra and calculation with Maxima for more than 10 years. Until now, I think WxMaxima 19.05.7 is the last version with genearally most function stable.

Problem on Copying results to word.docx Diaohuan-GB 50010-2010.zip

idealkindom commented 2 months ago

The comparion of copying and pasting the same piece part of the calculation results could be viewd in the Word docu clearly.

robert-dodier commented 2 months ago

@idealkindom Thanks for the additional example. I have downloaded Diaohuan-GB 50010-2010.zip and opened the wxmx document in it. I think that the problems you are encountering are mostly not bugs in wxMaxima.

No. 1, subscript display problem: that is a bug, and I have submitted a bug fix as you know.

No. 2, loss of square number: the problem is that the font does not have the superscript 2 sign, it appears. Can you switch to another font and try it again?

No. 3, nonsense " ": I don't see extra quote marks; can you point out exactly where the extraneous quote marks are appearing?

No. 4, wrong display of centered dot: I see that multiplication is displayed as an asterisk instead of a centered dot. Can you go to Edit >> Configure >> Worksheet, and check the box labeled "Use centered dot character for multiplication" and try it again?

No. 5, wrong display of approximate equal sign: looks like the font lacks that symbol. Can you switch to another font and try again?

Hope this helps,

Robert

idealkindom commented 2 months ago

@idealkindom Thanks for the additional example. I have downloaded Diaohuan-GB 50010-2010.zip and opened the wxmx document in it. I think that the problems you are encountering are mostly not bugs in wxMaxima.

No. 1, subscript display problem: that is a bug, and I have submitted a bug fix as you know.

No. 2, loss of square number: the problem is that the font does not have the superscript 2 sign, it appears. Can you switch to another font and try it again?

No. 3, nonsense " ": I don't see extra quote marks; can you point out exactly where the extraneous quote marks are appearing?

No. 4, wrong display of centered dot: I see that multiplication is displayed as an asterisk instead of a centered dot. Can you go to Edit >> Configure >> Worksheet, and check the box labeled "Use centered dot character for multiplication" and try it again?

No. 5, wrong display of approximate equal sign: looks like the font lacks that symbol. Can you switch to another font and try again?

Hope this helps,

Robert

Hey, Robert, thks for your patience to review the file.

No. 2, loss of square number: I tried again by switch the font to some others, which turned out to some strange display effects, thus reporting more bugs for wxMaxima? I attched the screenshots.

No. 3, nonsense " ":the extra quotation marks could be viewed clearly the word file, which I attached agin for the convenience.

No. 4, wrong display of centered dot: Of course I checkd the box labeled "Use centered dot character for multiplication", I tried agin and the results, you know, remain the same like before.

No. 5, wrong display of approximate equal sign: I tried several fonts, with no success until now. Since some font switch causes serious display of the code block, I quit testing to test the results, either.

I rely on Maxima for nearly 10 years and evertime new version comes out I tried. To my viewpoint, the version of 19.05.7 is much more stable than the latter new version despite of new functions and interfaces provided by the newer updates.

Fig 1-switch default font to Euclid Math Fig 2-switch default font to Arial Unicode Fig 3-switch default font to Cambria Math

[Uploading Problem on Copying results to word.docx…]()

robert-dodier commented 2 months ago

I looked at the .docx file and now I see what you mean by unneeded quote marks. Something to check -- see what the value of stringdisp is. In order to suppress quote marks, it's necessary to say stringdisp: false.

About the different display problems, I can't reproduce the errors. I am working with wxMaxima 24.08.0 + Maxima 5.47.0 + Windows 10. I opened your document Diaohuan-GB 50010-2010.wxmx and made one change, to insert ratprint: false to reduce the verbosity of output messages but otherwise not changing the output, and then clicked "Remove All Output" and then "Evaluate All Cells".

I looked at the configuration settings and I see the font is set to "Segoe UI".

The output looks good to me. I don't see the unneeded quotes; the superscript 2 is visible; the approximate equal sign is correct; multiplication sign is centered dot as expected. (I do see the sigma_s[5] subscript problem but as you know already we are working on a bug fix for that.)

Please see the attached screenshot: wxmaxima-display-example-diaohuan

idealkindom commented 2 months ago

I looked at the .docx file and now I see what you mean by unneeded quote marks. Something to check -- see what the value of stringdisp is. In order to suppress quote marks, it's necessary to say stringdisp: false.

About the different display problems, I can't reproduce the errors. I am working with wxMaxima 24.08.0 + Maxima 5.47.0 + Windows 10. I opened your document Diaohuan-GB 50010-2010.wxmx and made one change, to insert ratprint: false to reduce the verbosity of output messages but otherwise not changing the output, and then clicked "Remove All Output" and then "Evaluate All Cells".

I looked at the configuration settings and I see the font is set to "Segoe UI".

The output looks good to me. I don't see the unneeded quotes; the superscript 2 is visible; the approximate equal sign is correct; multiplication sign is centered dot as expected. (I do see the sigma_s[5] subscript problem but as you know already we are working on a bug fix for that.)

Please see the attached screenshot: wxmaxima-display-example-diaohuan

Hey, Robert, thks a lot for informing me of the good use of "ratprint: false" to suppress the annoying strings.

I tried to transfer the font to Segoe UI, but found unsatifactory results.

  1. For the results in wxMaxima, the "approx" is still a big squre. BTW, among the last part of the results like"1φ16Q235B" that "φ" is also different from that rendered by wxMaxima 19.05.7, which is rendered as a small Φ, where the vertical line crosses through.
  2. As for the paste to the word, the dissapeared "approx" floated up. However the square numbers are still absent.

I attached the screenshots of results for reference.

I work also on Win 10 X64 with Maxima 5.47+ wxMaxima 24.08.0. So this may at least prove that wxMaxima 24.08.0 is dependant on much system variables, thus making ununified using experience from users to users from PCs to PCs, which is hard to imagine since Maxima setup file become much larger these years while the experience is not consistent. I seldom got in trouble with wxMaxima before Maxima 5.43.2 with wxMaxima 19.05.7.

wxMaxima results transfering font to Segoe UI word paste results transfering font to Segoe UI
idealkindom commented 2 months ago

I looked at the .docx file and now I see what you mean by unneeded quote marks. Something to check -- see what the value of stringdisp is. In order to suppress quote marks, it's necessary to say stringdisp: false.

About the different display problems, I can't reproduce the errors. I am working with wxMaxima 24.08.0 + Maxima 5.47.0 + Windows 10. I opened your document Diaohuan-GB 50010-2010.wxmx and made one change, to insert ratprint: false to reduce the verbosity of output messages but otherwise not changing the output, and then clicked "Remove All Output" and then "Evaluate All Cells".

I looked at the configuration settings and I see the font is set to "Segoe UI".

The output looks good to me. I don't see the unneeded quotes; the superscript 2 is visible; the approximate equal sign is correct; multiplication sign is centered dot as expected. (I do see the sigma_s[5] subscript problem but as you know already we are working on a bug fix for that.)

Please see the attached screenshot: wxmaxima-display-example-diaohuan

I also tried to trans-use Maxima.bat between these two verision of wxMaxima for fun many times before and just now, but the results remain the same. So I think it only relates to wxMaxima, instead of Maxima.

robert-dodier commented 2 months ago

I see the problem with the combined superscript and subscript (e.g. ds[3]^2) and opened #1945 about that.

I see the problem about the quote marks and opened #1946 about that.

I don't see the problem with the centered dot turning into asterisk for multiplication. How are you copying the equations from wxMaxima to Word? There are several options and I want to make sure I am trying the same option as you.

There aren't any approximately equal signs in the text you copied, so there isn't anything to see there. I don't see any approximately equal signs in the wxmx notebook attached to this message. In order to further investigate, can you please make a very small wxmx containing only one equation with approximately equal, and then show how that's copied into Word, and attach those two files to a new bug report.

idealkindom commented 2 months ago

I see the problem with the combined superscript and subscript (e.g. ds[3]^2) and opened #1945 about that.

I see the problem about the quote marks and opened #1946 about that.

I don't see the problem with the centered dot turning into asterisk for multiplication. How are you copying the equations from wxMaxima to Word? There are several options and I want to make sure I am trying the same option as you.

There aren't any approximately equal signs in the text you copied, so there isn't anything to see there. I don't see any approximately equal signs in the wxmx notebook attached to this message. In order to further investigate, can you please make a very small wxmx containing only one equation with approximately equal, and then show how that's copied into Word, and attach those two files to a new bug report.

Hey Robert, in order to make it clear I added some remarks as comment in the original code to show the possible dignostic loacations. Also I attached all the detailed screenshots with some necessary marks for attenstion of the full operation.

1-wxMaxima vesion   centered dot mult checked 2-Segoe UI font Choosen 3-Results concerning approc missing 4-Copy process 5-word 2016 paste operation and option

Diaohuan-GB 50010-2010.zip

6-word paste results
robert-dodier commented 2 months ago

Both problems (approximately equal sign replaced by empty square, and substitution of asterisk for centered dot in copied text) are caused by the wrong font being selected.

As you showed above, you selected Segoe UI for "Code Default (Maxima input)". However, you can see that the output is not Segoe UI, because Segoe UI is a sans serif font while the actual output is a serif font (i.e., serif font has the little "feet" on the ends of letters, and sans serif does not have the little feet). Looks like your output font is Times New Roman.

You must select a different font for "Math Default". Try that and post an update here to say how it turns out.

idealkindom commented 2 months ago

Both problems (approximately equal sign replaced by empty square, and substitution of asterisk for centered dot in copied text) are caused by the wrong font being selected.

As you showed above, you selected Segoe UI for "Code Default (Maxima input)". However, you can see that the output is not Segoe UI, because Segoe UI is a sans serif font while the actual output is a serif font (i.e., serif font has the little "feet" on the ends of letters, and sans serif does not have the little feet). Looks like your output font is Times New Roman.

You must select a different font for "Math Default". Try that and post an update here to say how it turns out.

Hey, Robert. I tried to find maybe I should accept the fact that Segoe UI font to be checked is the best way to avoid rendering bug. Because other fonts may inccurr strange and sometimes radiculous outcomes. Here I attached some test process and results' screenshot if you are interested.

Results with 20240901 nightly built Maxima Results with Ascii math font set to Cambria Math Results with Default math font set to Segoe UI Results with defaut math font set to Cambria Math Set Ascii math font to be Cambria Math set Default math font set to Segoe UI Set Default math font to Cambria Math

BTW, at last I installed the nightly built Maxima with the lates wxMaxima merged your fix of subscript bug, and I found in the setting console the fonts are generally pre-defined to be Segoe UI, alright.

Thanks a lot Robert for terminating the Marathon bug of subscripts hindering me from using latest wxMaxima as daily production gear.

idealkindom commented 2 months ago

Both problems (approximately equal sign replaced by empty square, and substitution of asterisk for centered dot in copied text) are caused by the wrong font being selected.

As you showed above, you selected Segoe UI for "Code Default (Maxima input)". However, you can see that the output is not Segoe UI, because Segoe UI is a sans serif font while the actual output is a serif font (i.e., serif font has the little "feet" on the ends of letters, and sans serif does not have the little feet). Looks like your output font is Times New Roman.

You must select a different font for "Math Default". Try that and post an update here to say how it turns out.

BTW, I set the background to be light green. Latest wxMaxima you see the herizontal lines like table, it appears when you scroll the working window, but disspears a while after you stop the scroll, a little bit ugly.

idealkindom commented 2 months ago

Both problems (approximately equal sign replaced by empty square, and substitution of asterisk for centered dot in copied text) are caused by the wrong font being selected.

As you showed above, you selected Segoe UI for "Code Default (Maxima input)". However, you can see that the output is not Segoe UI, because Segoe UI is a sans serif font while the actual output is a serif font (i.e., serif font has the little "feet" on the ends of letters, and sans serif does not have the little feet). Looks like your output font is Times New Roman.

You must select a different font for "Math Default". Try that and post an update here to say how it turns out.

Sorry, Forget to say, the centered-dot multiplication operator is still pasted as asterisk in word. Find the attached screenshots.

Resuls with All in Segoe UI font centered-dot operator copy and paste to word
robert-dodier commented 2 months ago

About the asterisk problem, I still can't reproduce it. Can you please output all the settings via Edit >> Configure >> Revert all to defaults >> Export all settings, and then attach that to this bug report.

I'm sorry for the bother, but it would probably help if you would try to copy and paste the multiplication expression again to verify that the problem exists in the same session when you export the settings.

idealkindom commented 2 months ago

About the asterisk problem, I still can't reproduce it. Can you please output all the settings via Edit >> Configure >> Revert all to defaults >> Export all settings, and then attach that to this bug report.

I'm sorry for the bother, but it would probably help if you would try to copy and paste the multiplication expression again to verify that the problem exists in the same session when you export the settings.

Hey,Robert,Never say sorry for that. It's me bothering you for all these problems. I tried before revert all settings to default to test it again, the asterisk still persist for sure. I export the full setting and style setting,though the console panel has two options for export I found they may be the same, same default file name and size. Anyway, I did both of them with respective name(the second received default name by wxMaxima itself).

Export screenshot

Later I revert all settings to default and test it again, nothing changed for asterisk though. I attched all the setting files in a zip here. Hope you could diagnose the problem and help to fix the annoying problem. wxMaxima problem 20240903.zip

robert-dodier commented 1 month ago

I'm closing this ticket because the several items mentioned here are all covered by other tickets.

(1) subscript display problem: Fixed; see #1807. (2) superscript combined with subscript goes missing in copied output. Fixed; see #1945. (3) spurious quote marks in copied output. Fixed; see #1946. (4) centered dot copied as asterisk. Fixed; see #1956. (5) approximately-equal sign appears as empty square. Open; see #1958.

If there are additional issues, please open a new ticket for each separate issue. Let's not combine different topics into the same ticket. Thanks to everybody for working on this stuff, I think we're making a lot of progress.