unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* get text from LibreOffice Calc to Emacs Org-Mode
@ 2023-04-22 10:11 Gottfried
  2023-04-22 10:23 ` Ruijie Yu via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 18+ messages in thread
From: Gottfried @ 2023-04-22 10:11 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 590 bytes --]

Hi,

I am learning Emacs Org-mode

and would like to copy text from LibreOffice Calc to Emacs Org-mode.
So that I don’t need to copy every single part from here to there,
I would prefer, time saving, to get the whole text (quite much) in one 
go to Emacs org-mode and than adjust the text in org-mode.

What are the possibilities?
I tried to save the text in different formats, and open it in org-mode,
but mostly the text couldn’t be read or was not useable.

Does somebody know what are good possibilities to get the text into 
org-mode?

Kind regards

Gottfried


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: get text from LibreOffice Calc to Emacs Org-Mode
@ 2023-04-28 15:57 Gottfried
  2023-04-28 19:14 ` Uwe Brauer
  0 siblings, 1 reply; 18+ messages in thread
From: Gottfried @ 2023-04-28 15:57 UTC (permalink / raw)
  To: oub, help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1409 bytes --]

Hi,

> (defun org-table-import-xlsx-to-csv-org () 
>   (interactive)
>   (let* ((source-file  (file-name-sans-extension (buffer-file-name (current-buffer))))
>          (xlsx-file (concat source-file ".xlsx"))
>          (csv-file (concat source-file ".csv"))
>          (org-odt-convert-processes '(("gnumeric" "~/.local/bin/xlsx2csv %i %o"))))
>     (org-odt-convert xlsx-file "csv")
>     (org-table-import csv-file  nil)))
> 
> 
> (defun org-table-import-xls-to-csv-org () 
>   (interactive)
>   (let* ((source-file  (file-name-sans-extension (buffer-file-name (current-buffer))))
>          (xlsx-file (concat source-file ".xls"))
>          (csv-file (concat source-file ".csv")))
>     (org-odt-convert xlsx-file "csv")
>     (org-table-import csv-file  nil)))
> 
> (defun org-table-import-ods-to-csv-org () 
>   (interactive)
>   (let* ((source-file  (file-name-sans-extension (buffer-file-name (current-buffer))))
>          (xlsx-file (concat source-file ".ods"))
>          (csv-file (concat source-file ".csv")))
>     (org-odt-convert xlsx-file "csv")
>     (org-table-import csv-file  nil)))


I copied your suggestions into my init.el file

and tried to export a libreoffice calc file in xml format.

and then I opened this libreoffice calc file in emacs org-mode.
there were unreadably stuff
So may be I misunderstood you.
-- 
Kind regards

Gottfried


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-04-30 13:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-22 10:11 get text from LibreOffice Calc to Emacs Org-Mode Gottfried
2023-04-22 10:23 ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-23 12:44   ` Gottfried
2023-04-23 12:55     ` Platon Pronko
2023-04-23 13:22       ` Gottfried
2023-04-24  5:46         ` Platon Pronko
2023-04-24  6:53           ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-24  7:35             ` Platon Pronko
2023-04-24  7:45               ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-24  8:24                 ` Platon Pronko
2023-04-24  8:38                   ` Gottfried
2023-04-24  8:24               ` Gottfried
2023-04-24  8:45                 ` Platon Pronko
2023-04-25 10:07   ` Uwe Brauer
  -- strict thread matches above, loose matches on Subject: below --
2023-04-28 15:57 Gottfried
2023-04-28 19:14 ` Uwe Brauer
2023-04-30 11:33   ` Gottfried
2023-04-30 13:05     ` Uwe Brauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).