# 工具

此节描述了 GNOME 桌面中的工具。

## 运行应用程序

运行应用程序对话框可让您访问命令行。当您在运行应用程序对话框中运行命令时，您无法收到命令的输出。

要从命令行运行命令，请执行如下步骤：

1. Display the Run Application dialog. You can display the Run Application dialog in any of the following ways:

   从面板

     您可以将运行应用程序对象添加到任何面板。请参见。单击运行按钮可打开运行应用程序对话框。

   使用快捷键

     Press AltF2. You can change the shortcut keys that display the Run Application dialog in the Keyboard Shortcuts preference tool.

   The Run Application dialog is displayed.

2. Enter the command that you want to run in the blank field.

   Alternatively, to choose a command that you ran previously, click the down arrow button beside the command field, then choose the command to run.

   Alternatively, select the Show list of known applications option to display a list of available applications.

   You can also use the Run with file button to choose a file to append to the command line. For example, you can enter emacs as the command, then choose a file to edit.

   Select the Run in terminal option to run the application or command in a terminal window. Choose this option for an application or command that does not create a window in which to run.

3. Click on the Run button on the Run Application dialog.

## 屏幕抓图

您可以通过以下方式对屏幕抓图：

- 从任何面板

  You can add a Take Screenshot button to any panel. For instructions on how to do this, see . Click on the Take Screenshot button to take a screenshot of the entire screen.

- 使用快捷键

  要对屏幕抓图，请使用下列快捷键：

  默认快捷键 | 功能
  --- | ---
  Print Screen | 获得整个屏幕的抓图
  AltPrint Screen | 获得鼠标所指向窗口的抓图。

  You can use the Keyboard Shortcuts preference tool to modify the default shortcut keys.

- 从菜单栏

  Choose Applications Accessories Take Screenshot.

- 从终端

  You can use the `gnome-screenshot` command to take a screenshot. The `gnome-screenshot` command takes a screenshot of the entire screen, and displays the Save Screenshot dialog. Use the Save Screenshot dialog to save the screenshot.

  You can also use options on the `gnome-screenshot` command as follows:

  选项 | 功能
  --- | ---
  `--window` | Takes a screenshot of the window that has focus.
  `--delay=秒` | Takes a screenshot after the specified number of seconds, and displays the Save Screenshot dialog. Use the Save Screenshot dialog to save the screenshot.
  `--include-border` | Takes a screenshot including the border of the screen.
  `--border-effect=shadow` | Takes a screenshot and adds a shadow bevel effect arround it.
  `--border-effect=border` | Takes a screenshot and adds a border effect arround it.
  `--help` | 显示命令的选项。

When you take a screenshot, the Save Screenshot dialog opens. To save the screenshot as an image file, enter the filename for the screenshot and choose a location from the drop-down list.

## Setting up a Printer

To set up a printer to use with GNOME, choose System Administration Printing in the panel menubar. The Printers window opens.

Choose Printer Add Printer. The Add a Printer assistant opens. This guides you through the process of setting up the printer.

You can also use the Printers window to check the status of print jobs, and remove or alter the properties of printers that are already set up.

## Yelp 帮助浏览器

### 简介

The Yelp Help Browser application allows you to view documentation regarding GNOME and other components through a variety of formats. These formats include docbook files, HTML help pages, man pages and info pages (support for man pages and info pages may optionally be compiled in). Despite the different formats supported, Yelp does its best to provide a unified look and feel regardless of the original document format.

Yelp Help Browser is internationalised, meaning that it has support to view documents in different languages. The documents must be localised or translated for each language and installed properly for Yelp Help Browser to be able to view them.

### 启动 Yelp

#### 要启动 Yelp 帮助浏览器

您可以通过以下方式启动 Yelp 帮助浏览器：

系统菜单

  选择帮助

命令行

  执行下列命令：`yelp`

#### 界面

当您启动 Yelp 帮助浏览器时，您将看到下列窗口。

##### Yelp 帮助浏览器窗口

Yelp 帮助浏览器包含下列元素，如所示

菜单栏

  文件

    Use this menu to Open a New Window, view the About this Document page, Print the current document, or Close the window.

  编辑

    Use this menu to Copy, Select all, Find..., or to set your Preferences.

  转到

    Use this menu to navigate Back, Forward, to the Help Topics page. When viewing a DocBook document, use this menu to navigate to the Next Section, Previous Section or to the Contents.

  书签

    使用此菜单添加书签或编辑书签。

  帮助

    View information about Yelp Help Browser and contributors to the project through the About menuitem. Open this document with the Contents menuitem or by pressing F1.

工具栏

  后退

    使用此按钮在您的文档历史中后退。

  前进

    Use this button to navigate forward in your document history.

  帮助主题

    Use this button to return to the main table of contents (shown in )

浏览器面板

  The browser pane is where you will be presented with the table of contents or the documentation. Use the table of contents to navigate to the documentation you need.

### 使用 Yelp

#### 打开文档

To open a document in Yelp Help Browser, use the Table of Contents to navigate to the desired document

Alternatively, you may view a particular document by invoking Yelp Help Browser from the command line. Please see .

#### 打开新窗口

要打开新窗口：

- Click File New Window

- Use the key combination CtrlN

#### 关于此文档

To view information about the currently open document:

- Click File About This Document

This option is only available for DocBook documentation. Legal notices and documentation contributors are usually listed in this section.

#### 打印页面

To print any page that you are able to view in Yelp Help Browser:

- Click File Print this Page

#### 打印文档

要打印整个文档：

- Click File Print this Document

This option is only available for DocBook documentation.

#### 关闭窗口

To close a window in Yelp Help Browser, do the following:

- Click File Close Window

- Use the key combination CtrlW

#### 设定首选项

To set your preferences in Yelp Help Browser:

- Click Edit Preferences

将会出现如所示的窗口：

##### Yelp Help Browser Preferences Window

The options that are available in this dialog have the following functions:

Use system fonts

  Check this option to display documentation using the default fonts used by the GNOME Desktop.

  To choose your own fonts to display documentation, uncheck this option and click on the buttons next to the text Variable Width or Fixed Width.

  Variable Width

    This is the font to use when a static or fixed width font is not required. The majority of text will be of this type.

  Fixed Width

    This is the font to use when all text characters need to be of the same size. This font is usually used to indicate commands, program blocks, or other text that falls under these categories.

Browse with caret

  Click this option if you would like see a caret or cursor in the . This allows you to browse the document more easily by showing where the cursor is located in the document.

#### Go Back in Document History

To go back in the document history:

- Click Go Back

- Use the key combination AltLeft

- Use the Back button in the Toolbar

#### Go Forward in Document History

To go forward in the document history:

- Click Go Forward

- Use the key combination AltRight

- Use the Forward button in the Toolbar

#### Go to Help Topics

To go to the Help Topics:

- Click Go Help Topics

- Use the key combination AltHome

- Use the Help Topics button in the Toolbar

#### Go to Previous Section

To go to the previous section:

- Click Go Previous Section

- Use the key combination AltUp

This option is only available in DocBook formatted documents.

#### Go to Next Section

To go to the next section:

- Click Go Next Section

- Use the key combination AltDown

This option is only available in DocBook formatted documents.

#### Go to Contents

To go to the contents for a document:

- Click Go Contents

This option is only available in DocBook formatted documents.

#### Add a Bookmark

To add a bookmark for a particular document:

- Click Bookmarks Add Bookmark

- Use the key combination CtrlD

A window will appear that looks like .

##### Add Bookmark Window

Enter your desired bookmark title in to the Title text entry field. Then click Add to add the bookmark, or click Cancel to cancel the request.

#### Edit Bookmarks

To edit your collection of bookmarks:

- Click Bookmarks Edit Bookmarks...

- Use the key combination CtrlB

A window will appear that looks like .

##### Edit Bookmarks Window

You can manage your bookmarks using this window in the following ways:

Open

  Use this button to open the selected bookmark in a new window.

Rename

  Use this button to rename the title of your bookmark.

Remove

  Use this button to delete the bookmark from your collection.

Once you are finished managing your bookmarks, click the Close button to exit the Edit Bookmarks Window.

#### Get Help

To get help using Yelp Help Browser (and see this document):

- Click Help Contents

### Advanced Features

#### Using the Command Line to Open Documents

Yelp Help Browser supports opening documents from the command line. There are a number of URIs (Uniform Resource Identifiers) that can be used. These include:

`file:`

  Use this URI when you want to access a file with yelp, for example:

      yelp file:///usr/share/gnome/help/gcalctool/C/gcalctool.xml

`ghelp:` or `gnome-help:`

  Use this URI when you want to access GNOME help documents, which are typically written in DocBook format.

      yelp ghelp:gcalctool

  If you want to open the help document at a particular section, append a question mark to the end of the URI, followed by the section id.

      yelp ghelp:user-guide?yelp-advanced-cmdline

`man:`

  Use this URI when you want to access a particular man page. You can append the section of the man page you would like to view if there are multiple man pages with the same name. The section number should be enclosed in parenthesis and therefore it may be necessary to escape the argument so that the shell does not interpret the parenthesis.

      yelp man:gcalctool

  or

      yelp 'man:intro(1)'
      yelp 'man:intro(2)'

`info:`

  Use this URI when you want to access a particular GNU info page.

      yelp info:make

#### Refreshing Content on Demand

Yelp Help Browser supports the CtrlR shortcut keys, which will reload the DocBook document that is currently open. This allows developers to view changes to documents as they are made.

### More Information

This section details some of the helper applications which Yelp Help Browser uses, and provides resources where you can get more information about Yelp Help Browser.

#### Scrollkeeper

Yelp Help Browser uses scrollkeeper to generate the table of contents for DocBook and HTML documentation, and also keep track of translations for each document.

#### GNOME Documentation Utilites

The documentation distributed with GNOME uses this set of utilities for a variety of things:

- Ease translation of documents to different languages.

- Provide a set of tools to help package and install documentation into the correct location and register the documentation with scrollkeeper.

- Perform conversion from DocBook format to a format suitable for display.

Yelp Help Browser relies on GNOME XSLT Stylesheets to perform conversion from DocBook to HTML. GNOME Documentation Build Utilities are relied upon by application authors to install and register documentation within the help system.

#### Homepage and Mailing List

For further information on Yelp Help Browser, please visit the Documentation Project homepage, http://live.gnome.org/Yelp, or subscribe to the mailing list, gnome-doc-devel-list@gnome.org.

### Joining the GNOME Documentation Project

If you are interesting in helping produce and update documentation for the GNOME project, please visit the Documentation Project homepage: http://live.gnome.org/DocumentationProject