Et:Ubiquity 0.1.2 User Tutorial
Tagasi Labs/Ubiquity juurde.
- 1 Teistes keeltes
- 2 Sissejuhatus
- 3 The Basics
- 4 More Command Examples
- 5 Going Further
Kui eesti keel ei ole sinu emakeel, võid lugeda seda juhendit mõnes teises keeles. Kui sinu emakeelset juhendit ei eksisteeri, võid selle tõlkimise enda peale võtta.
Ubiquity on eksperimentaalne Firefoxi laiendus, mis pakub veebiga suhtlemiseks uut ja võimsamat suhtlusviisi.
Kui sa oled seni harjunud ütlema Firefoxile kuhu sa tahad minna trükkides aadressiribale soovitud lehe veebiaadressi:
Siis paigaldades omale Ubiquity laienduse saad sa Firefoxile öelda mida sa teha tahad trükkides Ubiquity sisendkasti korraldusi.
Ubiquity korraldused võivad teha mida iganes. Ubiquity'ga tuleb vaikimisi kaasa palju korraldusi mis teevad tüüpilised veebis kasutatavad tegevused palju kiiremaks ja lihtsamaks. Selles juhendis õpetame Sind kasutama osasid nendest korraldustest. Juhendi lõpuks peaksid sa oskama teha kiireid päringuid Wikipeediasse, Google otsingumootorisse, küsima (inglisekeelsete) sõnade definitsioone, lisada kaarte oma e-posti sõnumitele, tõlkida veebilehel asuvat võõrkeelset teksti, esile tõsta lehel asuvaid sõnu ning seejärel postitada neid oma sõbrale.
Korraldused, mis on ehitatud otse Ubiquity sisse on alles algus: igaüks võib luua uusi korraldusi ning neid teistega jagada. Uute korralduste lisamine — ja interneti laiendamine — peaksid olema sama lihtsad kui uue veebilehe loomine. Kui soovid teada, kuidas luua uusi korraldusi, loe Arendajate juhendit.
Ubiquity ei ole veel lõpuni valmis tarkvara ja me loodame et sa ühined meie virtuaalse meeskonnaga ja aitad seda eksperimenti edasi viia. Kui sa avastad seda juhenditlugedes et Ubiquity kasutamist saaks veelgi lihtsamaks ja mugavamaks teha, või tuleb sul mingi hea idee mida Ubiquity'ga veel teha saaks, loodame me, et võtad omale hetke aega ning jagad oma mõtteid ka meiega. Osaledes Ubiquity arenduse varases staadiumis on sul suurepärane võimalus suuresti mõjutada selle laienduse edasise arengu kiirust ja suunda.
Kui sa kasutad Mac'i...
Pead paigaldama omale Growl'i. Growl on laiendus Mac OS X operatsioonisüsteemile mis võimaldab rakendustel näidata kasutajatele tagasihoidlikke informatiivseid teateid, segamata kasutaja normaalset töövoogu. Ubiquity kasutab Growl'i teavitusi et näidata korralduste väljundit ja teavitada sind vigadest.
Windowsi kasutajad (XP ja hilisemad) ei pea paigaldama midagi, kuna Ubiquity kasutab operatsioonisüsteemi "toaster" stiilis hüpikteavitusi.
Linuxi kasutajad ei pea tegema midagi erilist: lihtsalt kasutage Firefoxi viimast versiooni.
--- Siit lõppeb eestikeelne tõlge ---
Tähelepanu: Siit lõppeb eestikeelne tõlge. Kui tunned, et sul on selle jaoks aega ja oskusi, aita selle juhendi tõlkimisel - paranda juba tõlgitud teksti või tõlgi uusi peatükke.
If you haven't already done so, install Ubiquity. Once you've done that, you can summon Ubiquity by tapping option-space on the Mac, or control-space if you're on Windows. On Linux, try alt-space
Once you hit the appropriate key-combo, you'll be presented with a transparent black box, with a blinking white cursor, in the upper-left of your browser.
You give Ubiquity a command by typing something in here and then hitting the Enter key. For the sake of brevity, we'll call this "issuing" a command. For the rest of this tutorial, when we say to "issue 'XYZ'", we mean "hit alt-space (or ctrl-space) to bring up the Ubiquity box, then type XYZ".
First Command: Searching Wikipedia
Let's start with Wikipedia. Say you want to know what a "babel fish" is. You simply issue "wikipedia babel fish".
While you're typing your command, you'll see two things underneath the input box: A suggestion list and a preview of the current command. In the picture below, the suggestion list consists of "wikipedia" and "weather", while the preview says "Searches Wikipedia".
When you finish typing "wikipedia babel fish" you should see some summaries of various Wikipedia pages about Babel Fish, like so:
It will take a moment for the above information to be gleaned from Wikipedia, but Ubiquity stays fully responsive during this time.
Next, you can:
- Hit Enter (or Return) to execute the command. Executing the Wikipedia command has the effect of taking you to the Wikipedia page.
- Hit Escape to cancel the command. Ubiquity disappears with no effect.
- Click on one of the links in the preview. In the case of the Wikipedia preview, clicking a link will take you directly to the article you're interested in.
Abbreviating Commands and Using the Suggestion List
"Wikipedia babel fish" is quite a lot to type. You can save some wear and tear on your fingers by letting Ubiquity's suggestion list do the work for you. As you saw in the last section, bringing up Ubiquity and typing only "w" presents you with suggestions of all the commands that start with that letter: namely, Wikipedia and Weather.
When you add the letter "i", the suggestion list narrows down to just the one command that starts with "wi"—"Wikipedia". At this point, you can hit the space bar and type the rest of your sentence, and Ubiquity will know that the verb you want to use is "wikipedia". So issuing "wi babel fish" is the exact same thing as issuing "wikipedia babel fish".
Let's try another example. Suppose you want to know what the weather is like in Chicago. Try issuing "w chicago".
You'll see that the top suggestion is "wikipedia chicago". If you hit the Return key now, this is the command that will be executed. But that's not what we want right now, so hit the down arrow key instead, to highlight the second suggestion: "weather chicago"
You can now see a preview of the weather forecast for Chicago. Hit return to go to the full weather report page on Wunderground.com.
Of course, you could have just issued "we chicago", or even "we 60601" (that's a Chicago zip code) to get the same results.
Doing Commands on Selections
Often, the thing you're interested in searching for is right in front of you, on the web page you're looking at. Why go to the trouble of re-typing it when you can use what you've already got?
Select the words "Mountain View, California" below by dragging your mouse across them:
Mountain View, California
Now summon Ubiquity, and just type the first few letters of the command name:
Or, let's say you're reading a web page and you find an unfamiliar word:
Just select the word and issue "define".
You could have achieved the same thing by typing "define aglet"—or just "def aglet", or even "def this". (Ubiquity understands "this" to refer to the selection.)
More Command Examples
Right now, the email command uses Google Mail. That means you'll only be able to follow along with the next part of the tutorial if you have a GMail account. Eventually, of course, the command should work with all major web-based email providers, as well as applications like Thunderbird. (If you're a programmer, we'd love some help with that.) For now, if you have a GMail account, please make sure you're logged in. If you don't, you might want to skip ahead to the next part of the tutorial.
Assuming you're logged into your GMail account, issue "email". In the suggestion list, you'll see a suggestion that says "Email (message) (to contact)".
This is a clue that the Email command expects two pieces of information: the message is what you're emailing, and the contact is who you want to send it to. However, you can leave out one of these things — or both of them — and the Email command will still work. So I can issue any of these commands:
- "email hello"
- "email to chris"
- "email hello to chris"
- "email to chris hello"
I'm using "chris" because that's the name of someone in my GMail contacts list. If you don't have a "chris" in your contacts list, just substitute the name of any of your friends in these examples.
Let's say I've found an interesting fact on a web page and I want to send it to Chris. I can select part of the page, including links, pictures, and anything else, and then issue "email this to chris". Ubiquity understands "this" to refer to my selection. (I could also have said "email it to chris" or "email selection to chris" -- all of these are equivalent.) The selected part of the page shows up in my preview:
(Actual email addresses blurred out to protect the innocent.) Since I know several people named Chris, there are several lines in the suggestion list -- one each Chris in my GMail contacts list. I can arrow-key down to the Chris I want and then hit the Enter key.
I'm taken to the GMail "compose new email" page. The chunk of the page that I selected is reproduced in the body of my email, the "to" field is filled with the email address I selected, and the "subect" field contains the title of the web page I was on. I can now edit this email to add anything else I want to say, before clicking "Send".
The Map command
Let's say you're arranging to meet up with a friend at a restaurant, and you want to include a map in the email. (Yes, it's Aza's favorite example.)
Type out the address you want to map, then select it and issue "map". In the preview, you'll see a thumbnail-size map of the area (from Google Maps).
If you execute the command, you'll be taken to the Google Maps page. Or, you can click on the image in the preview to get a larger, interactive version. After scrolling and zooming this map to your liking, you can click the "insert map in page" link to insert the map into your email.
You can give it a try by selecting the address below and issuing "map":
Mozilla Corporation, 1981 Landings Drive, Mountain View, CA
Then click the image in the preview to get the larger map, then click the "insert map in page" link and watch what happens. Surprised?
The Translate command
That's right, Ubiquity commands can alter the contents of a page, even if the page wouldn't normally be editable. A command that makes good use of this ability is the "Translate" command. To try it, select the text below and issue "translate" (or just "tra") and execute.
It's translation-by-machine, so the results are bound to sound awkward, but at least you can get the gist of the meaning.
The full command is
translate (text) (from language) (to language)
So you can specify what language you want to translate from, and what language you want to translate to. If you leave either of these out, Ubiquity will just make a guess about what you want.
Here are some other examples you can try:
- "tr good evening to spanish"
- "tr buenas tardes from spanish to french"
- Select some English text on this page and then: "translate this to german"
Getting Help and Discovering Commands
By now you're probably wondering, "How many commands are there? What are they all called? How am I supposed to know what a command could be unless I memorize them all?"
These are good questions! To start getting some answers, issue the "command-list" command, and hit Return to execute it. You'll be taken to a special page listing every command you have installed, and describing what each one does.
For more general help, you can execute the "help" command. Here, you can change the hotkey that you use to activate Ubiquity, un-subscribe from command feeds, and so on.
The general help page and the command-list page link to each other, so whichever one you open, you can get to the other with a single click.
You can also get to the main help page by typing about:ubiquity into the Firefox URL bar.
Teaching Ubiquity New Commands
We've mentioned that anyone can create Ubiquity commands. Once created, these commands can be embedded in any web page. If you have Ubiquity installed and you visit a page with an embedded command, Firefox will present you with the option of subscribing to the command.
To see this in action, you can visit this example page on Atul's personal site. You should see a bar coming down from the top of the browser window asking you whether you want to subscribe to the command or not.
If you choose to subscribe, you'll see a rather scary-looking warning page:
It's important to understand the dangers of subscribing to Ubiquity commands from sites that you don't trust. Since a Ubiquity command can do anything, and it has full access to your web browser, a bad person could write a Ubiquity command to steal your personal information or do malicious things to your computer. You should not install Ubiquity commands unless you are confident that the source is trustworthy.
In the future, we'll be creating something called a "trust network" that Ubiquity users can use to share knowledge about which commands are trustworthy. When you visit a page with an embedded command, you'll be able to see what your friends with Ubiquity have said about this command -- whether they've given it a thumbs-up or left you a warning to let you know it could be dangerous. This system doesn't exist yet, but once it does we will modify this section of the tutorial to let you know how to use it.