From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Python code for producing Org tables Date: Mon, 24 Dec 2012 01:35:29 +0100 Message-ID: <87wqw8walq.fsf@bzg.ath.cx> References: <8638z2yaer.fsf@mercure.progiciels-bpi.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tmw11-0005L1-GY for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 19:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tmw0w-00027V-QS for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 19:35:35 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:36763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tmw0w-00027J-Ju for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 19:35:30 -0500 Received: by mail-we0-f174.google.com with SMTP id x10so3068251wey.19 for ; Sun, 23 Dec 2012 16:35:29 -0800 (PST) In-Reply-To: <8638z2yaer.fsf@mercure.progiciels-bpi.ca> (=?iso-8859-1?Q?=22Fran=E7ois?= Pinard"'s message of "Tue, 18 Dec 2012 22:43:08 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?iso-8859-1?Q?Fran=E7ois?= Pinard Cc: emacs-orgmode@gnu.org Hi François, François Pinard writes: > I recently needed to produce Org tables from within Python, splitting > them as needed to fit within a preset width. I append the code after my > signature, in case it would be useful to others (or even, if you have > ideas to improve it). Thanks for the code, if some can test it and put it on worg, all the better (if you agree of course.) > One thing I only realized after writing this, however, is that I wrongly > thought Org mode was aligning floating numbers on the decimal period, > while it merely right align floating numbers regardless of the position > of the period. So, I turn my mistake into a suggestion, as I think it > would be more convenient if Org mode was aligning floating numbers more > appropriately. Is it a standard practise when displaying float numbers in spreadsheets/tables? If so, this is a nice Elisp challenge for anyone willing to implement it :) I won't try it myself for now. -- Bastien