From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-mode versus Taskpaper - now for real Date: Fri, 4 Apr 2008 14:38:49 +0200 Message-ID: <601F20DB-71AF-4119-8D24-E1E62971091A@science.uva.nl> References: <0277B507-1486-4172-B1C6-1B73B84148DD@science.uva.nl> <47F4A997.4000109@calicojack.co.uk><47F4F442.7060104@calicojack.co.uk> <52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhlC9-00083O-MP for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:39:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhlC6-0007yI-Nd for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:39:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhlC6-0007y7-Ke for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:38:58 -0400 Received: from fk-out-0910.google.com ([209.85.128.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhlC6-0001Ps-CK for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:38:58 -0400 Received: by fk-out-0910.google.com with SMTP id 26so37699fkx.10 for ; Fri, 04 Apr 2008 05:38:53 -0700 (PDT) In-Reply-To: <52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net> 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: "Egli Christian (KIRO 433)" Cc: emacs-orgmode Mailinglist :-) Prety good, but it does have a minor flaw, the line with several tags is emitted as ** TODO Task 2 :@work: :@boss: But I am sure this can be fixes within the N=9 envelope. - Carsten On Apr 4, 2008, at 2:20 PM, Egli Christian (KIRO 433) wrote: > >> Anyone wants to take up the challenge? What N can be achieved? > > Haha, it's Friday afternoon and I decided to take the challenge. I > implemented a very simplistic and stupid translator which is quite > small > but just barely manages to pass the test. It does so with 480 bytes > which makes for N = 9 (2^9 = 512). > > Here's the script: > > #! /usr/bin/perl > > while(){ > print unless /[:-]/g; > print if s/^(.*):$/* $1/; > print if s/^- (.*)\s+(\@done)$/** DONE $1/; > print if s/^- (.*)\s+(@\w+)\s+(@\w+)$/** TODO $1 :$2: :$3:/; > print if s/^- (.*)\s+(@\w+)$/** TODO $1 :$2:/; > print if s/^- (.*)$/** TODO $1/; > print if s/^\s+- (.*)\s+(\@done)$/*** DONE $1/; > print if s/^\s+- (.*)\s+(@\w+)\s+(@\w+)$/*** TODO $1 :$2: :$3:/; > print if s/^\s+- (.*)\s+(@\w+)$/*** TODO $1 :$2:/; > print if s/^\s+- (.*)$/*** TODO $1/; > } > > Christian > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode