From: Carsten Dominik <dominik@science.uva.nl>
To: "Egli Christian (KIRO 433)" <christian.egli@credit-suisse.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Org-mode versus Taskpaper - now for real
Date: Fri, 4 Apr 2008 14:38:49 +0200 [thread overview]
Message-ID: <601F20DB-71AF-4119-8D24-E1E62971091A@science.uva.nl> (raw)
In-Reply-To: <52D89C75FEE9444E8D9C016E3730098301177939@chsa1036.share.beluni.net>
:-) 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(<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
>
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2008-04-04 12:39 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)
2008-04-04 12:38 ` Carsten Dominik [this message]
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=601F20DB-71AF-4119-8D24-E1E62971091A@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=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).