emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Samuel Wales <samologist@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: [OT] CSV to Org
Date: Wed, 23 Nov 2011 00:37:20 -0500	[thread overview]
Message-ID: <8244.1322026640@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Samuel Wales <samologist@gmail.com> of "Tue, 22 Nov 2011 18:16:21 MST." <CAJcAo8umwX_tt1FRwB1Fni1=_otHk4U6FYNi7FqxSie-h5_6TA@mail.gmail.com>

Samuel Wales <samologist@gmail.com> wrote:

> Hmm, thanks for your comments.  I can see the appeal of a Python-ish
> solution, but I was thinking maybe some elisp (or even a package or a
> part of Org) instead.  Then it could grow to a generally useful
> importer.
> 

The trouble is that CSV is a very loosely defined format, with many
variations and dialects. The nice thing about the python solution is
that it takes care of many of these variations.

If somebody does take up your challenge, I would strongly advise that
they should consult the csv python module (or equivalent modules in
other languages, depending on their preferred language) and the design
document for it (PEP 305 - at http://www.python.org/dev/peps/pep-0305/ )
and try to translate it into elisp, rather than striking off on their
own.

Nick

  parent reply	other threads:[~2011-11-23  5:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-22 22:56 [OT] CSV to Org Samuel Wales
2011-11-22 23:31 ` Nick Dokos
2011-11-23  1:16   ` Samuel Wales
2011-11-23  1:19     ` Samuel Wales
2011-11-23  5:37     ` Nick Dokos [this message]
2011-11-30 12:13 ` Eric S Fraga
2011-11-30 16:30   ` Eric Schulte

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8244.1322026640@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /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 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).