:-) 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+([EMAIL PROTECTED])$/** 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+([EMAIL PROTECTED])$/*** 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
_______________________________________________
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