emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add yank-media handler for LibreOffice Calc tables


From: Ihor Radchenko
Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables
Date: Mon, 23 Dec 2024 18:01:42 +0000

Visuwesh <visuweshm@gmail.com> writes:

> Sorry for the late reply.  I was busy with uni.

No worries. My reply is no less late. For similar reasons.

> I have now done this in the attached patch.  I use a temporary buffer to
> convert the table, and also decode it as per buffer-file-coding-system
> of the Org buffer as I could not tell whether LibreOffice always uses
> UTF-8 or not.  I believe buffer-file-coding-system should be utf-8 on
> most systems so it should be a safe choice.

utf-8 is not used everywhere. Quite far from that, AFAIK.
You can try 'undecided as coding system value (see 34.10.7 Explicit
Encoding and Decoding)

>  When yanking images from clipboard, Org saves the image on disk and
> @@ -21702,6 +21703,9 @@ of ~org-yank-dnd-method~.  Image files pasted this 
> way also respect
>  the value of ~org-yank-image-save-method~ when the action to perform
>  is =attach=.
>  
> +Yanking tables copied from LibreOffice Calc documents are inserted as
> +Org tables.

Looks like "yanking" is stray.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]