From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Egli Christian (KIRO 433)" Subject: RE: Org-mode versus Taskpaper - now for real Date: Fri, 4 Apr 2008 14:20:16 +0200 Message-ID: <52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net> References: <0277B507-1486-4172-B1C6-1B73B84148DD@science.uva.nl> <47F4A997.4000109@calicojack.co.uk><47F4F442.7060104@calicojack.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhkuP-0003O8-2L for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:20:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhkuO-0003Nd-GW for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:20:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhkuO-0003NV-5S for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:20:40 -0400 Received: from mail-gw12.credit-suisse.com ([198.240.213.21]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JhkuN-0004Or-S2 for emacs-orgmode@gnu.org; Fri, 04 Apr 2008 08:20:40 -0400 Content-class: urn:content-classes:message In-Reply-To: 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 Mailinglist > 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 =3D 9 (2^9 =3D 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/; }=20 Christian