Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

Word export or copy - arrows #256

Open berkdemir opened 5 months ago

berkdemir commented 5 months ago

Hi, Weird arrows appear when I copy the results to word. For me, Calcpad is perfect, but I still need to use screenshot to include the calculations in my report. The copy and paste with "merge formatting" works almost good, but there are additional shapes coming up which is not seen in Calcpad.

image image

Proektsoftbg commented 5 months ago

Hi!

What version do you use? It does not happen with version 6.2.0. At least I cannot reproduce it.

ExiMentor commented 5 months ago

That happens to me, too. I just updated to 6.2.0 and opend a file to test.

I think these are the arrows that appear on the left, when you hover over with the mouse. grafik

The result in word if you paste it with "keep the original format" grafik

Proektsoftbg commented 5 months ago

Hmm. Maybe it depends on the version of Word. I use Office 365.

Yes, these are exactly those arrows. This option was requested previously to find the respective lines in the source code from the output. For this purpose, they are present in the Html and when when you select and copy, they are copied too.

In general avoid copying the Html output directly to Word. Use the built-in export instead. The export function filters out all the unnecessary stuff and convert formulas to MathtType.

If you prefer coping, first go to input form mode (code on the left not visible). Arrows are not present in this mode. Finally, you can use find-replace command in Word to clear these symbols in the whole document at once.

ExiMentor commented 5 months ago

I have Office 365, too. Maybe you are not pasting with this option: grafik

I prefer the export, too. Anyway, it is sometimes faster to just copy what you need.

Maybe you can find another solution for the arrows in the future.

Proektsoftbg commented 5 months ago

No, I just paste it. Do you select and copy or use the copy button above?

Arrows work so fine and beautiful and I do not want to remove them. Maybe in the future we will even need to add some more items to make the output more interactive.

I think it is possible to detect when you copy the output and do some cleanup in the clipboard. But until then, please use the above instructions.

ExiMentor commented 5 months ago

I was using ctrl + c. To be honest, I never saw the button before.

The result is even worst since there is another symbol coming (you can see that at berkdemirs screenshot as well): grafik

I like the arrows, too. But they are also a bit fishy to catch. If it would be possible, that those are indipendtly from the output box. I don't know how you programmed that, but if there would be an extra row with those arrows, It might be possible to prevent copying them. Like one row with the actual output and another row with controlles or indicators like the arrows.

Proektsoftbg commented 5 months ago

OK, thank you. I see.

We will add some cleanup that will trigger on the copy command to remove the arrows and other stuff. This will be the best solution.