More Tasks Magic

I finally got around to working on magic date parsing in Tasks, thanks to Mallum porting a JavaScript library to C last year. I rewrote it again this week, and landed it in Subversion a few days ago. I'd love any brave Tasks users to give it a go, especially people who don't use English. They'd need to translate the new strings, but I want to check that the technique I'm using is portable between languages.

Feedback on what magic strings should be detected would be great too. Currently it detects "today", "tomorrow", "yesterday", "this [weekday]" and "next [weekday]". Next up is "by|due|on [local date representation]", but what else would be useful?

19:30 Thursday, 13 Mar 2008 [#] [computers] (8 comments)

Posted by Ryan Graham at Thu Mar 13 21:26:40 2008:
since you have "yesterday", how about "last [weekday]". There's also "month", [month], "week", and "year":

last|this|next week|month|year|[weekday]|[monthname]

of course, "last" is only about as useful as "yesterday"..
Posted by Ross at Thu Mar 13 21:38:11 2008:
I was about to add "last" but then thought who really would add a task due "last monday".  Yesterday is also debatable.

I'm implementing "day/month" now.

I guess next week/month would be the next monday and the 1st of the month.
Posted by Ryan Graham at Thu Mar 13 21:58:18 2008:
next week/month could also be the last day, depending on context... ugh, English.
Posted by Stéphane Raimbault at Fri Mar 14 09:40:04 2008:
I updated the French translation but I don't know how to test this new parser.

Other comment:
#: ../libkoto/koto-meta-group.c:48
msgid "New Group..."

I think New Category will be more appropriate in this context
Posted by Jonathan Lange at Sat Mar 15 01:54:23 2008:
One for each day of the week would also be good. e.g. "Monday" should mean the closest Monday that is not today.
Posted by Jonathan Lange at Sat Mar 15 02:19:20 2008:
... that is, without having to say "This".
Posted by Stéphane Raimbault at Sat Mar 15 12:35:42 2008:
Jonathan,

You are right I remove the equivalent of the word "This" in the French translation.
Posted by Dan at Sat Mar 15 22:46:22 2008:
'I've love' ?  Seems you qualify ;-)

Off to grab it now. Should be a larf on Hardy.  I believe my English is suitably poor, 'aving liv'd in da-eaf.

Name:


E-mail:


URL:


Add 3 and 7 (required):


Comment: