emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Egli Christian (KIRO 433)" <christian.egli@credit-suisse.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: RE: Org-mode versus Taskpaper - now for real
Date: Fri, 4 Apr 2008 14:20:16 +0200	[thread overview]
Message-ID: <52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net> (raw)
In-Reply-To: <DE71611A-88FA-4631-9C04-CDFB1ADD9C06@science.uva.nl>


> 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(<STDIN>){
    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

  reply	other threads:[~2008-04-04 12:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 10:28 Org-mode versus Taskpaper - now for real Carsten Dominik
2008-04-01 11:39 ` Rainer Stengele
2008-04-01 14:30 ` Russell Adams
2008-04-01 15:52 ` Eddward DeVilla
2008-04-01 19:11   ` Carsten Dominik
2008-04-03  9:55   ` Rick Moynihan
2008-04-03 14:26     ` Manish
2008-04-03 15:14       ` Rick Moynihan
2008-04-03 16:59         ` Bastien
2008-04-03 17:27           ` Rick Moynihan
2008-04-04  9:26             ` Bastien
2008-04-04  9:12         ` Carsten Dominik
2008-04-04 12:20           ` Egli Christian (KIRO 433) [this message]
2008-04-04 12:38             ` Carsten Dominik
2008-04-07 15:14           ` Carsten Dominik
2008-04-03 16:26       ` Joel J. Adamson
2008-04-03 17:39         ` Rick Moynihan
2008-04-04  7:49       ` Carsten Dominik
2008-04-03 23:28     ` Jason F. McBrayer
2008-04-01 23:05 ` Sven Bretfeld
2008-04-02  2:54   ` Clint Laskowski
2008-04-03 16:22 ` Tim O'Callaghan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net \
    --to=christian.egli@credit-suisse.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).