Gary,
My apologies—as Heather and Brandon noticed, the "in" delimiter was
missing from the list of possible delimiters for "location", but
Brandon has added that in. One thing you've noticed, though, was that
the command says "view-tasks near list"... this is due to the fact
that, even though multiple delimiters ("near", "at", etc.) are defined
for that role, only one can be displayed in that display of missing
arguments, so the first one defined is used. In the case of
"location", I believe it is currently "near"... letting commands
choose a custom delimiter label (preposition) to display from one of
the options for that role is a good idea which we could implement in
the future.
As for the "localizing commands" and "making commands localizable"
links, the links were simply wrong, but they are written:
https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.5_Command_Localization_Tutorial
https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.5_Making_Commands_Localizable
mitcho
> Thanks for the really quick reply Mitcho! It's much appreciated!
>
> I changed the argument to use the 'location' role, and now it reads:
> "view-tasks near list". As per my original question, how do I go
> about changing the preposition used to be "in" rather than "near"?
> Is it a localising action? Sadly the links "localizing commands" and
> "making commands localizable" on the Semantic Roles page are yet to
> be written.
>
> Thanks again for the help!
>
>
>
> On Sun, Jun 28, 2009 at 4:46 PM, "mitcho (Michael 芳貴 Erlewine)"
> <mit...@mitcho
> .com> wrote:
>
> Hi Gary,
>
> I think the role you're looking for is "location", which in English
> maps to the delimiters "in" and "at", as well as "near" which wouldn't
> be applicable in your situation. The use of semantic roles in
> identifying arguments has tremendous advantages for the localization
> process which we've begun, as the logic of commands is no longer tied
> to a specific language. This also allows for synonymous delimiters as
> well, like "to" and "toward" or "using" and "with" acting the same
> way.
>
> More information on the use of semantic roles and a master list of
> semantic roles can be found here:
>
> https://wiki.mozilla.org/Labs/Ubiquity/Parser_2/Semantic_Roles
>
> mitcho
>
> >
> > Hi guys,
> >
> > In parser 2 is it possible to define the names of prepositions that
> > are used in argument roles?
> >
> > E.g. Previously there was a modifier called "in", and this meant the
> > user could enter "view-tasks in list". In Parser2 world the best
> role
> > I have found is "source" and this results in "view-tasks from list".
> > Discussions about which preposition is more suitable aside, I would
> > prefer the user experience not to be forced to change because of an
> > API change. Therefore is there a way of customizing the preposition
> > used?
> >
> > Would be great if there could be some feedback before the 0.5
> release
> > to the general public.
> >
> > Thanks in advance,
> > Gary
> > >
>
> --
> mitcho (Michael 芳貴 Erlewine)
> [email protected]
> http://mitcho.com/
> linguist, coder, teacher
>
>
>
>
>
> >
--
mitcho (Michael 芳貴 Erlewine)
[email protected]
http://mitcho.com/
linguist, coder, teacher
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---