To do this, Ubiquity lets you define your own Noun types. There's a 
bunch of documentation on Noun types here:

https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial#Introduction_to_Noun_Types

and here:

https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Nountypes_Reference


Hope that helps.

- Blair




On 30/01/2009 12:28 AM, Henrik Marstrander wrote:
> I have a command where the keyword is various countries. (so there is
> a fixed set of possible keywords) The url uses numbers to identify the
> countries so I use the switch function.
>
> switch (keywords.text) {
> case "england":
>      strDag = 4;
>      break;
> }
>
> Is there any way to define that it should recognize the word england
> even if I have written only the first 2-3 letters. "en" or "eng" or
> any amount of letters matching the first letters of the word. It would
> also be nice if it wouldnt be case sensitive, so that it would
> recognize both England and england. In many search programs libraries
> this is often done by using an asterix "eng*"
> >

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to