From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks) Date: Thu, 29 Dec 2011 11:36:27 +0530 Message-ID: <81boqrud24.fsf@gmail.com> References: <4EFA208B.6040905@gmail.com> <87zkedkaz5.fsf@gmx.com> <4EFA34C0.3000200@christianmoe.com> <4EFB2CFE.9030207@gmail.com> <81k45gt0pg.fsf@gmail.com> <81fwg4sz9z.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg98Z-0006Pz-SL for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 01:06:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rg98Y-0001HU-M9 for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 01:06:47 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:49833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg98Y-0001HQ-Hj for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 01:06:46 -0500 Received: by iacb35 with SMTP id b35so25094184iac.0 for ; Wed, 28 Dec 2011 22:06:46 -0800 (PST) In-Reply-To: <81fwg4sz9z.fsf_-_@gmail.com> (Jambunathan K.'s message of "Thu, 29 Dec 2011 11:19:28 +0530") 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: emacs-orgmode@gnu.org > I think the colcookie lines could be enhnaced to also support "t" and > "/" characters. IMNSHO, using #+ATTR_ODT: lines for commenting out > columns will not only be cumbersome but also error-prone. A random thought: I think there will be more flexibility if the colcookies characters - "l" and "r" - were actually style strings (of length > 1). The backend can use their own discretion on how they "apply" these styles. There was some interest to mark certain columns specially - for example, mark automatically computed derived columns specially (both in Org and may be in the different backends). The colcookie could line could be put to some use here. (Question: Is there a way to fontify a rectangle in Emacs?) On a related note: >From ODT perspective and taking a cue from the way LibreOffice does autoformatting of tables, I was thinking of introducing "template tables" whose only job is to specify the styles to be associated with each of the different categories of table cells. OpenDocument talks of following types of columns and LibreOffice's autoformatting is much richer and recognizes, I believe, as much as 16 categories of table cells. ,---- C-h v org-export-odt-table-styles | TABLE-CELL-TYPE := "FirstRow" | "LastColumn" | | "FirstRow" | "LastRow" | | "EvenRow" | "OddRow" | | "EvenColumn" | "OddColumn" | "" | `---- #+ATTR_ODT: template-table | red | green | yellow | |-----+-------+--------| | | | | ps: I don't have time to implement the above features. I am just capturing my thoughts so that it is archived. --