* recognize comma separated text as table?
@ 2007-09-25 18:31 Sivaram Neelakantan
2007-09-25 23:40 ` William Henney
2007-09-26 15:24 ` Carsten Dominik
0 siblings, 2 replies; 5+ messages in thread
From: Sivaram Neelakantan @ 2007-09-25 18:31 UTC (permalink / raw)
To: emacs-orgmode
I've been using org mode tables where possible and I frequently
receive data as csv, is there any any org-table function to transform
the csv function to org tables?
sivaram
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recognize comma separated text as table?
2007-09-25 18:31 recognize comma separated text as table? Sivaram Neelakantan
@ 2007-09-25 23:40 ` William Henney
2007-09-26 10:55 ` Bastien
2007-09-26 15:24 ` Carsten Dominik
1 sibling, 1 reply; 5+ messages in thread
From: William Henney @ 2007-09-25 23:40 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: emacs-orgmode
On 9/25/07, Sivaram Neelakantan <nsivaram.net@gmail.com> wrote:
>
> I've been using org mode tables where possible and I frequently
> receive data as csv, is there any any org-table function to transform
> the csv function to org tables?
>
You could use org-table-import after converting all commas to tabs
with query-replace (or sed, or whatever). Only problem would be if
there were commas in quoted strings....
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recognize comma separated text as table?
2007-09-25 23:40 ` William Henney
@ 2007-09-26 10:55 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2007-09-26 10:55 UTC (permalink / raw)
To: emacs-orgmode
"William Henney" <whenney@gmail.com> writes:
> You could use org-table-import after converting all commas to tabs
> with query-replace (or sed, or whatever). Only problem would be if
> there were commas in quoted strings....
Stupid heuristic would compute the average number of commas per line,
and the average number of characters per quoted string. But doesn't csv
exporters already escape commas when they are part of a cell? Maybe they
should.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recognize comma separated text as table?
2007-09-25 18:31 recognize comma separated text as table? Sivaram Neelakantan
2007-09-25 23:40 ` William Henney
@ 2007-09-26 15:24 ` Carsten Dominik
2007-09-26 16:57 ` Sivaram Neelakantan
1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2007-09-26 15:24 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: emacs-orgmode
On Sep 25, 2007, at 11:31, Sivaram Neelakantan wrote:
>
> I've been using org mode tables where possible and I frequently
> receive data as csv, is there any any org-table function to transform
> the csv function to org tables?
I guess I can generalize the import and conversion commands to handle
CSV
material. Should be easy, to it'll be in 5.10.
- Carsten
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recognize comma separated text as table?
2007-09-26 15:24 ` Carsten Dominik
@ 2007-09-26 16:57 ` Sivaram Neelakantan
0 siblings, 0 replies; 5+ messages in thread
From: Sivaram Neelakantan @ 2007-09-26 16:57 UTC (permalink / raw)
To: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> On Sep 25, 2007, at 11:31, Sivaram Neelakantan wrote:
>
>>
>> I've been using org mode tables where possible and I frequently
>> receive data as csv, is there any any org-table function to transform
>> the csv function to org tables?
>
> I guess I can generalize the import and conversion commands to handle
> CSV
> material. Should be easy, to it'll be in 5.10.
>
> - Carsten
While at that, is there a possibility of getting horizontal rules too,
please? To separate one row from another.
sivaram
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-26 17:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 18:31 recognize comma separated text as table? Sivaram Neelakantan
2007-09-25 23:40 ` William Henney
2007-09-26 10:55 ` Bastien
2007-09-26 15:24 ` Carsten Dominik
2007-09-26 16:57 ` Sivaram Neelakantan
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).