I'm building a really basic "todo" command, here is the code:
CmdUtils.CreateCommand({
names: ["todo"],
arguments: [{role: 'object', nountype: noun_arb_text}, {role:
'time', nountype: noun_type_date}],
execute: function execute(args) {
Utils.tabs.get("ToDoSo")
[0].document.defaultView.wrappedJSObject.postMessage(Utils.encodeJson
(args.object), "*");
}
});
The date is only parsed if I prepend "on".
On Sep 27, 5:42 pm, Fernando Takai <[email protected]> wrote:
> Which noun are you using?
> We're supposed to parse those things - specially because check google
> calendar uses that feature.
>
> 2009/9/27 Louis-Rémi Babé <[email protected]>
>
>
>
> > It seems that the parser doesn't recognize dates in sentences such as
> > "write a mail to Paul tomorrow" or "visit Prague next week"
>
> > What can be done to improve that ? I'm thinking about using date.js
> > directly in my preview code but it is more of a hack than a
> > sustainable solution...
>
> --
> Fernando
> "Takai"http://flickr.com/photos/supeertakaihttp://twitter.com/fernando_takai
>
> Get Ubiquity:https://ubiquity.mozilla.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---