From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Org-Babel and Ledger Date: Thu, 29 Jul 2010 09:33:51 -0700 Message-ID: <87fwz2b634.fsf@pellet.net> References: <87eiemsk0m.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=37728 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeW38-00041f-DQ for emacs-orgmode@gnu.org; Thu, 29 Jul 2010 12:33:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeW37-0002iD-FJ for emacs-orgmode@gnu.org; Thu, 29 Jul 2010 12:33:38 -0400 Received: from lo.gmane.org ([80.91.229.12]:36363) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeW37-0002i0-9f for emacs-orgmode@gnu.org; Thu, 29 Jul 2010 12:33:37 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeW34-0001Ql-Dd for emacs-orgmode@gnu.org; Thu, 29 Jul 2010 18:33:34 +0200 Received: from c-76-104-189-227.hsd1.wa.comcast.net ([76.104.189.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 18:33:34 +0200 Received: from eric by c-76-104-189-227.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 18:33:34 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Jul 29 2010, Sébastien Vauban wrote: [...] > > As you can see, the tables are completely wrongly made, because they're based > on spaces ("à la Awk") and not on fixed position of fields ("à la Cut"). > > What can I do about this? > > - Post-process every ledger command with some awk or cut command that will do > whatever is needed > > - Exploit the CSV export format (never tried, don't have Ledger 3 installed > yet -- and I'm also using hledger...) > > - Other ideas? Couldn't you use ledger's format strings for fine-tuned control of the command output? I don't know how you're snarfing the output, but it seems like you could using formatting to produce something that already looks very much like an org table, or perhaps CSV. Eric > > Do you have suggestions about the best way to go? > > Best regards, > Seb