Ja:Ubiquity 0.1.2 User Tutorial: Difference between revisions

Jump to navigation Jump to search
Finished about the map and the translate command.
(the email command was done.)
(Finished about the map and the translate command.)
Line 94: Line 94:
http://www.toolness.com/images/20080819152417.jpg
http://www.toolness.com/images/20080819152417.jpg


"wikipedia babel fish" とタイプし終わったら、 Babel Fish に関する様々な Wikipedia のページの概要を見てください。
"wikipedia babel fish" とタイプし終わったら、Wikipedia 内の Babel Fish に関する様々なページの概要を見る事が出来ます。
<!--
<!--
When you finish typing "wikipedia babel fish" you should see some summaries of various Wikipedia pages about Babel Fish, like so:
When you finish typing "wikipedia babel fish" you should see some summaries of various Wikipedia pages about Babel Fish, like so:
Line 192: Line 192:
= 更なるコマンドの例 =
= 更なるコマンドの例 =


== Email ==  
== Email コマンド ==


現在、 email コマンドは [http://mail.google.com Google Mail] を利用しています。この事は、次のパートのチュートリアルを進めるために、GMail のアカウントが必要になる事を意味します。もちろん、[http://www.mozilla.com/en-US/thunderbird/ Thunderbird] のように、このコマンドも最終的にはあらゆる Web ベースの email プロバイダに対応するべきです (もしもあなたがプログラマーなら、[http://groups.google.com/group/ubiquity-firefox これに関して手助けしていただけると幸いです])。GMail のアカウントをお持ちならば、ログインしている事を確認してください。お持ちでなければ、本パートはスキップしていただいても構いません。
現在、 email コマンドは [http://mail.google.com Google Mail] を利用しています。この事は、次のパートのチュートリアルを進めるために、GMail のアカウントが必要になる事を意味します。もちろん、[http://www.mozilla.com/en-US/thunderbird/ Thunderbird] のように、このコマンドも最終的にはあらゆる Web ベースの email プロバイダに対応するべきです (もしもあなたがプログラマーなら、[http://groups.google.com/group/ubiquity-firefox これに関して手助けしていただけると幸いです])。GMail のアカウントをお持ちならば、ログインしている事を確認してください。お持ちでなければ、本パートはスキップしていただいても構いません。
Line 239: Line 239:
-->
-->


== Map コマンド ==
'''訳注: map コマンドは単体で利用できますが、入力フォームへの地図画像の挿入 (この例では Gmail が使用されています) が出来ないサイトもあります。'''
友人とレストランで会う予定を立てていて、メールにその地図を添えたいとします (これは、筆者・Aza のお気に入りの例です)。
<!--
<!--
== 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.)
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.)
-->


メール本文 ('''訳注: Gmailの本文入力フォームの事です。''') に住所を入力したら、それを選択して "map" を発行します。すると、入力した場所の、サムネイルサイズの地図 (Google マップを利用しています) がプレビューに表示されます。
<!--
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).
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).
-->


[[Image:Map-preview-1.png]]
[[Image:Map-preview-1.png]]


コマンドを実行すれば、Google マップページにジャンプできます。また、プレビューの地図をクリックすれば画像が拡大され、より機能が豊富な状態で利用する事が出来ます。"insert map in page" をクリックすれば、スクロールやズームでお好みの状態にした地図の画像が、メールの本文に挿入されます。
<!--
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.
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.
-->


[[Image:Map-preview-2.png]]
[[Image:Map-preview-2.png]]


以下のアドレスを選択し、 "map" を発行してみてください。
<!--
You can give it a try by selecting the address below and issuing "map":
You can give it a try by selecting the address below and issuing "map":
-->


  Mozilla Corporation, 1981 Landings Drive, Mountain View, CA
  東京都渋谷区桜丘町26-1 セルリアンタワー


地図画像をクリックすると拡大されること、そして "insert map in page" のリンクをクリックすると起こることを確認して下さい。驚きましたか?
<!--
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?
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 ==
== 翻訳 command ==


ここまで読み進めて来られた方ならば、Ubiquity が Web ページの改変を可能にする事にお気付きかも知れません。分かりやすい例として、"translate" コマンドを紹介します。以下の文章を選択して、"translate" (または "tra" だけでも構いません) を発行し、実行してみてください。
<!--
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.
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.
-->


  21世紀に、国際化をよく考えなければなりません。
In the 21st century, globalization must be considered carefully.


機械翻訳ですので、結果は若干ぎこちないですが、大体の意味は掴めると思います。
<!--
It's translation-by-machine, so the results are bound to sound awkward, but at least you can get the gist of the meaning.
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
The full command is
-->


  translate (text) (from language) (to language)
  translate (text) (from language) (to language)


"from language" で翻訳対象の言語を指定し、"to language" でどの言語に翻訳するかを指定できるようになっています。どちらかを入力しなかった場合は、Ubiquity がテキトウに判断してやってくれます。
<!--
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.
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:
Here are some other examples you can try:
-->


* "tr good evening to spanish"
* "tr こんばんは! to spanish"
* "tr buenas tardes from spanish to french"
* "tr buenas tardes from spanish to french"
* Select some English text on this page and then: "translate this to german"
* 現在のページ中の英文を選択して: "translate this to german"


<!--
= Going Further =
= Going Further =


16

edits

Navigation menu