GNU TeXmacs - Bugs: bug #59611, Copy to image/PDF does not work in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #59611: Copy to image/PDF does not work in macOS
Submitter: | Basile <baudoly> | ||
Submitted: | Thu 03 Dec 2020 01:11:29 PM UTC | ||
Category: | MacOS port | Priority: | 5 - Normal |
Item Group: | Error | Status: | Fixed |
Privacy: | Public | Assigned to: | mgubi |
Originator Name: | Open/Closed: | Closed | |
Release: | None | Release: | 1.99.16 |
Fixed Release: | None | Fixed Release: | |
Keywords: |
Jump to the original submission
Sat 13 Mar 2021 09:57:09 AM UTC, comment #12: |
Massimiliano Gubinelli <mgubi> |
Fri 12 Mar 2021 10:56:00 PM UTC, comment #11: Good job Basile and Max!
|
Philippe Joyez <pjoyez> |
Fri 12 Mar 2021 06:14:51 PM UTC, comment #10: This is fixed now in revision 13392. However there seems to be still a bug since when selecting inside an equation the math environment is not propagated correctly and the content is rendered incorrectly in text mode. It seems somehow that the related scheme code in the scheme function 'export-selection-as-graphics' in 'tmimage.scm' does not work properly for some reason I do not understand.
|
Massimiliano Gubinelli <mgubi> |
Fri 12 Mar 2021 08:09:15 AM UTC, comment #9: What that we need can be found here:
|
Basile <baudoly> |
Thu 11 Mar 2021 02:35:08 PM UTC, comment #8: I did some further investigation using Clipboard\ Viewer.app (it is an app that shows the available data types in the current clipboard). My understanding is as follows. TeXmacs correctly calls Qt4 with "application/pdf" type. However, this mime type does not seem to be recognized by Qt by default (probably because Qt4 goes back to 2004?) As a result, Qt prepends "com.trolltech.anytime" to the mime type, i.e., changes it to "com.trolltech.anytime.image--pdf", which is not recognized by macOS.
|
Basile <baudoly> |
Sat 06 Mar 2021 06:55:12 PM UTC, comment #7: I have no idea why the texmacs places on the MacOs clipboard data of type com.trolltech.anytime.application--pdf. In the code, we declate a mimetype application/pdf (see qt_gui.cpp line ~ 1029). However, it's notorious that mimetypes are deficient and it's probably no wonder Apple replaced them by something else. So one needs to understand what they use instead of mimetypes and how one can implement that in Texmacs for MacOS, but I cannot help on that, sorry. |
Philippe Joyez <pjoyez> |
Wed 03 Mar 2021 10:49:18 AM UTC, comment #6: After copying from mathematica in PDF format, two "content types" are present in the clipboard:
Both content types are linked to the same PDF file containing the actual data.
|
Basile <baudoly> |
Tue 02 Mar 2021 04:11:14 PM UTC, comment #5: Basile: could you show us what information Mathematica provides (and which is lacking when we paste to the clipboard)?
|
Joris van der Hoeven <vdhoeven> |
Mon 11 Jan 2021 09:40:33 PM UTC, comment #4: two additional observations, in macOS:
|
Basile <baudoly> |
Thu 10 Dec 2020 12:13:33 PM UTC, comment #3: Sure, in macOS you can 'copy to PDF' from Wolfram Mathematica and paste into Preview.app, it works. Apologies for messing up in my previous reply. |
Basile <baudoly> |
Thu 10 Dec 2020 12:11:40 PM UTC, comment #2:
|
Basile <baudoly> |
Thu 10 Dec 2020 11:01:12 AM UTC, comment #1: Do you know of a situation where a macOS application B receives pdf data that was put on the Clipboard by an application A (not TeXmacs)?
|
Philippe Joyez <pjoyez> |
Thu 03 Dec 2020 01:11:29 PM UTC, original submission:
With the default image format set to PDF in Preferences > Convert > Image > TeXmacs->Image, if I select <math|a+b>, choose Edit > Copy to… > Image and then try to paste in Preview.app or Inkscape.app, then nothing happens: it looks like the clipboard is empty.
|
Basile <baudoly> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-03-12 | mgubi | Status | Need Info | Fixed | |
Assigned to | pjoyez | mgubi | |||
Open/Closed | Open | Closed | |||
2021-03-02 | vdhoeven | Status | None | Need Info | |
Assigned to | None | pjoyez | |||
2021-01-11 | baudoly | Attached File | - | Added ClipboardAterCopyToPDF.png, #50702 |
Powered by Savane 3.13-4448.
Corresponding source code
Philippe, do you mind share the code? I wanted to run another of these coding sessions and could be interesting to look at some scheme hacking.
Also, in the LyX code we used as inspiration there were some additional tweaks for Windows. Do we know if mime types works already ok in Windows or if we have problems on that platform?
It was also suggested that we can encode some information in the PDF snippet to be able to "reimport" it and edit again in TeXMacs (as LaTeXIt seems to be able to do). What do you think?