From: Gottfried <gottfried@posteo.de>
To: oub@mat.ucm.es, "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: get text from LibreOffice Calc to Emacs Org-Mode
Date: Fri, 28 Apr 2023 15:57:10 +0000 [thread overview]
Message-ID: <2e695ff5-0954-3f1b-a889-b36b51e3fc38@posteo.de> (raw)
[-- 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 --]
next reply other threads:[~2023-04-28 15:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-28 15:57 Gottfried [this message]
2023-04-28 19:14 ` get text from LibreOffice Calc to Emacs Org-Mode Uwe Brauer
2023-04-30 11:33 ` Gottfried
2023-04-30 13:05 ` Uwe Brauer
-- strict thread matches above, loose matches on Subject: below --
2023-04-22 10:11 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e695ff5-0954-3f1b-a889-b36b51e3fc38@posteo.de \
--to=gottfried@posteo.de \
--cc=help-gnu-emacs@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.