<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY legal SYSTEM "legal.xml">
<!ENTITY appversion "2.5.2">
<!ENTITY manrevision "2.5">
<!ENTITY date "March 2004">
<!ENTITY app "GHex">
]>
<!-- 
      (Do not remove this comment block.)
  Maintained by the GNOME Documentation Project
  http://developer.gnome.org/projects/gdp
  Template version: 2.0 beta
  Template last modified Feb 12, 2002
  
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="zh_CN">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
  <articleinfo> 
    <title>GHex</title>       

    <copyright> 
      <year>2002</year> 
      <year>2003</year> 
      <year>2004</year> 
      <holder>Sun Microsystems</holder> 
    </copyright> 
    <copyright> 
      <year>1998-2000</year>	 
      <holder>Jaka Mocnik</holder> 
    </copyright>
	<!-- translators: uncomment this:
  	<copyright>
   	  <year>2002</year>
      <holder>ME-THE-TRANSLATOR (Latin translation)</holder>
  	</copyright>
   	-->

    <publisher> 
      <publishername> GNOME Documentation Project </publishername> 
    </publisher> 

      <legalnotice id="legalnotice">
         <para>对于本文档的复制、分发和/或修改必须遵循自由软件基金会 (Free Software Foundation) 发布的 GNU 自由文档许可证 (GFDL) 版本 1.1 或更高版本， 该许可证没有固定的部分、没有封面和背页文本。您可以在此<ulink type="help" url="ghelp:fdl">链接</ulink>上或在随本手册一起分发的 COPYING-DOCS 文件中找到 GFDL 的副本。</para>
          <para>本手册是在 GFDL 许可之下分发的 GNOME 手册集合的一部分。如果想要 单独分发此手册，可以在手册中添加该许可证的一份副本然后分发，如该许可证的 第 6 部分所述。</para>
 
         <para>各个公司使用的许多用于区别它们产品和服务的名称都声明为商标。在所有的 GNOME 文档以及 GNOME Documentation Project 的成员中，这些名称都 是以全大写字母或首字母大写显示，从而表明它们是商标。</para>
 
         <para>本文档以及文档的修改版本都是在遵循 GNU 自由文档许可证的条款下提供，这表 示具有以下含义： <orderedlist>
                 <listitem>
                   <para>文档按“原样”提供，不提供任何明示或暗示的保证，包括但不 限于：文档或文档的修改版本没有适销性方面的缺陷、适合特定目的的适用 性，以及没有侵权行为。您将自行承担本文档以及文档修改版本的质量、准 确性以及性能方面的风险。如果任何文档或文档修改版本存在缺陷，您（而 不是最初的编写者、作者或撰写人）将承担所有必需的服务、维修或更正的 费用。此免责声明是本许可证的重要组成部分。如果不接受此免责声明， 那么您就没有权利使用任何文档或文档的修改版本；并且</para>
                 </listitem>
                 <listitem>
                   <para>无论在任何情况以及在任何法律理论下，本文档或文档修改版本的作 者、最初的编写者、任何撰写人或任何分发者，或者任意这些方的任何提供 者都不对任何人由于使用本文档或文档修改版本引起或带来的任何直接的、间接的、 特殊的、偶然的或继发的损失承担任何民事（包括疏忽）、合同或其它方面的 责任，这些损失包括但不限于信誉损失、工作停止、计算机失败或故障，或任 何以及所有其它损失或由此引发的或与之相关的损失，即使这些方已被告知存 在出现此类损失的可能性时也是如此。</para>
                 </listitem>
           </orderedlist></para>
   </legalnotice>
 
   <!-- This file  contains link to license for the documentation (GNU FDL), and 
        other legal stuff such as "NO WARRANTY" statement. Please do not change 
	any of this. -->

    <authorgroup> 
      <author> 
		<firstname>Sun</firstname> 
		<surname>GNOME Documentation Team</surname> 
		<affiliation> 
	  		<orgname>Sun Microsystems</orgname>
	  		<address/> 
		</affiliation> 
      </author> 
      <author> 
		<firstname>Jaka</firstname> 
		<surname>Mocnik</surname> 
		<affiliation> 
	  		<orgname>GNOME Documentation Project</orgname> 
	  		<address> <email>jaka@gnu.org</email> </address> 
		</affiliation> 
      </author> 
<!-- This is appropriate place for other contributors: translators,
      maintainers,  etc. Commented out by default.
      <othercredit role="translator">
		<firstname>Latin</firstname> 
		<surname>Translator 1</surname> 
		<affiliation> 
	 		<orgname>Latin Translation Team</orgname> 
	  		<address> <email>translator@gnome.org</email> </address> 
		</affiliation>
		<contrib>Latin translation</contrib>
      </othercredit>
-->
    </authorgroup>
 
    <revhistory>
      <revision> 
			<revnumber>GHex</revnumber> 
			<date>March 2004</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V2.4</revnumber> 
			<date>April 2003</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.3</revnumber> 
			<date>2002 年 8 月</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex 手册 V2.2</revnumber> 
			<date>2002 年 8 月</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex 手册 V2.1</revnumber> 
			<date>2002 年 7 月</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex 手册 V2.0</revnumber> 
			<date>2002 年 3 月</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex 手册 V1.0</revnumber> 
			<date>2000</date> 
			<revdescription> 
	  			<para role="author">Jaka Mocnik
	    		<email>jaka@gnu.org</email>
	  			</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
    </revhistory> 

    <releaseinfo>This manual describes version 2.5.2 of GHex.
    </releaseinfo> 
    <legalnotice> 
      <title>反馈</title> 
      <para>要报告关于 GHex 应用程序或本手册的错误或提出建议，请遵循 <ulink url="ghelp:gnome-feedback" type="help">GNOME 反馈页</ulink>中的指导。</para>
<!-- Translators may also add here feedback address for translations -->
    </legalnotice> 
  </articleinfo> 

  <indexterm> 
    <primary>GHex</primary> 
  </indexterm> 


<!-- ============= Document Body ============================= -->

<!-- ============= Introduction ============================== -->

<sect1 id="ghex-intro">
<title>简介</title>
<para><application>GHex</application> 应用程序使您可以执行以下操作：</para>
<itemizedlist>
<listitem><para>同时以 ASCII 或十六进制格式查看文件。</para>
</listitem>
<listitem><para>以 ASCII 或十六进制格式编辑文件。</para>
</listitem>
</itemizedlist>
</sect1>

<!-- ============= Getting Started ============================== -->

<sect1 id="ghex-getting-started">
<title>入门</title>

<!-- ============= To Start GHex ============================== -->

<sect2 id="ghex-to-start">
<title>启动 GHex</title>

<para>可以通过以下方式启动 <application>GHex</application>：</para>
<variablelist>
<varlistentry>
<term><guimenu>"应用程序"</guimenu>菜单</term>
<listitem>
<para>选择<menuchoice><guisubmenu>"附件"</guisubmenu><guimenuitem>"十六进制编辑器"</guimenuitem></menuchoice>。</para>
</listitem>
</varlistentry>
<varlistentry>
<term>命令行</term>
<listitem>
<para>Execute the following command: <command>ghex2</command></para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2 id="ghex-when-you-start">
<title>在启动 GHex 时</title>

<para>在启动 <application>GHex</application> 之后，系统会显示下面的窗口。</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-empty">
<title>打开文件之前的 GHex 窗口</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_empty.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>在您打开文件前会显示 GHex 主窗口。</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

</sect2>


<!-- ============= To Open a file ============================== -->

<sect2 id="ghex-open-file">
<title>打开文件</title>
<para>要打开文件，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"打开"</guimenuitem></menuchoice>。选择要打开的文件，然后单击<guibutton>"确定"</guibutton>。您可以在 <application>GHex</application> 中打开多个文件。<application>GHex</application> 在新窗口中显示每个文件。</para>
<para>在 <application>GHex</application> 中打开文件时，应用程序会在下面的窗口中显示该文件。</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-open">
<title>打开了文件的 GHex 窗口</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_open.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>显示打开了文件的 GHex 主窗口</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

<para><application>GHex</application> 窗口包含如下元素：</para>
<variablelist>
<varlistentry>
<term>菜单栏</term>
<listitem>
<para>菜单栏上的菜单包含您在 <application>GHex</application> 中处理文件所需的所有命令。</para>
</listitem>
</varlistentry>
<varlistentry>
<term>光标偏移柱</term>
<listitem>
<para>光标偏移量是文件的开始处和每行的第一个字节之间的距离。 在默认情况下，<application>GHex</application> 在十六进制视图的左侧显示光标偏移柱。</para>
</listitem>
</varlistentry>
<varlistentry>
<term>左侧的显示窗格</term>
<listitem>
<para>显示区域上左侧的显示窗格显示了文件的十六进制视图。</para>
</listitem>
</varlistentry>
<varlistentry>
<term>右侧的显示窗格</term>
<listitem>
<para>显示区域右侧的显示窗格显示了文件的 ASCII 视图。</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Type conversion dialog</term>
<listitem>
<para>The type conversion dialog below the display area displays the value of the selected character in several different numeric types.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

<!-- ============= Usage ============================== -->

<sect1 id="ghex-usage">
<title>用法</title>

<!-- ============= To Edit a File ============================== -->

<sect2 id="ghex-edit-file">
<title>编辑文件</title>
<para>要编辑文件，请执行以下步骤：</para>
<orderedlist>
<listitem><para>单击文件的十六进制或 ASCII 视图。光标处于活动状态的视图会显示完整的光标。光标处于不活动状态的视图会显示光标的轮廓。</para>
</listitem>
<listitem><para>使用以下任意方法可以在文件中移动光标：</para>
<itemizedlist>
<listitem><para>Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.</para>
</listitem>
<listitem><para>选择<menuchoice><guimenu>"编辑"</guimenu><guimenuitem>"转到字节"</guimenuitem></menuchoice>，以十进制或十六进制值的形式键入光标偏移量，然后单击<guibutton>"确定"</guibutton>。十六进制值的格式必须是 0x 后面跟着偏移量，例如 0x3。</para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.</para>
</listitem>
</orderedlist>
<para>To insert data and not overwrite existing data, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Mode</guimenuitem></menuchoice>.</para>
<para>To cut, copy, and paste data, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Cut</guimenuitem></menuchoice>, <menuchoice><guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>, and <menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice>.</para>
<para>To undo an edit, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem></menuchoice>. To redo an edit, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem></menuchoice>. The number of previous edits that you can undo is determined by the <guilabel>Maximum number of undo levels</guilabel> setting in the <xref linkend="ghex-prefs-editing"/> tabbed section of the <guilabel>Preferences</guilabel> dialog.  </para>
</sect2>

<!-- ============= To Save a File ============================== -->

<sect2 id="ghex-save-file">
<title>保存文件</title>
<para>您可以通过以下方式保存文件：</para>
<itemizedlist>
<listitem><para>要保存对当前文件的更改，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"保存"</guimenuitem></menuchoice>。</para>
</listitem>
<listitem><para>要以新文件名保存当前文件，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"另存为"</guimenuitem></menuchoice>。在<guilabel>"选择将缓冲保存为的文件"</guilabel>对话框中输入该文件的名称，然后单击<guibutton>"确定"</guibutton>。</para>
</listitem>
</itemizedlist>
</sect2>

<!-- ============= To Revert a File ===================== -->

<sect2 id="ghex-revert">
<title>To Revert to the Last Saved Version of a File</title>
<para>To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Revert</guimenuitem></menuchoice>, then click <guibutton>Yes</guibutton> in the <guilabel>Question</guilabel> dialog.</para>
</sect2>

<!-- ============= To Find Data in a File ============================== -->

<sect2 id="ghex-find-data">
<title>在文件中查找数据</title>
<para>要在文件中搜索十六进制或 ASCII 字符串，请执行以下步骤：</para>
<orderedlist>
<listitem><para>选择<menuchoice><guimenu>"编辑"</guimenu><guimenuitem>"查找"</guimenuitem></menuchoice>。</para>
</listitem>
<listitem><para>在<guilabel>"查找数据"</guilabel>对话框中，选择以下选项之一：</para>
<itemizedlist>
<listitem><para><guilabel>搜索十六进制数据</guilabel></para>
</listitem>
<listitem><para><guilabel>搜索 ASCII 数据</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>键入要查找的字符串。</para>
</listitem>
<listitem><para>单击<guibutton>"查找下一个"</guibutton>以查找下一个出现的该字符串。</para>
</listitem>
<listitem><para>单击<guibutton>"查找上一个"</guibutton>以查找前一个出现的该字符串。</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Perform an Advanced Find ============================== -->

<sect2 id="ghex-find-data-adv">
<title>To Perform an Advanced Find</title>
<para>To perform an advanced find, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, select the required search criteria. For information about how to add new search criteria, see <xref linkend="ghex-search-criteria-add"/>.
</para>
</listitem>
<listitem><para>单击<guibutton>"查找下一个"</guibutton>以查找下一个出现的该字符串。</para>
</listitem>
<listitem><para>单击<guibutton>"查找上一个"</guibutton>以查找前一个出现的该字符串。</para>
</listitem>
<listitem><para>Click <guibutton>Close</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Add Search Criteria  ============================== -->

<sect2 id="ghex-search-criteria-add">
<title>To Add Search Criteria</title>
<para>To add search criteria, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, click <guibutton>Add New</guibutton>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data: Add Search</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>搜索十六进制数据</guilabel></para>
</listitem>
<listitem><para><guilabel>搜索 ASCII 数据</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>键入要查找的字符串。</para>
</listitem>
<listitem><para>Use the color wheel or the spin boxes to select a color to highlight the search criteria.
</para>
</listitem>
<listitem><para>Click <guibutton>Add</guibutton>. </para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<sect2 id="ghex-search-criteria-remove">
<title>To Remove Search Criteria</title>
<para>To remove search criteria, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, select the search criteria that you want to remove.  </para>
</listitem>
<listitem><para>Click <guibutton>Remove Selected</guibutton>.</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Find and Replace Data in a File ====================== -->

<sect2 id="ghex-find-replace-data">
<title>在文件中查找和替换数据</title>
<para>要在文件中搜索十六进制或 ASCII 字符串并替换该字符串，请执行以下步骤：</para>
<orderedlist>
<listitem><para>选择<menuchoice><guimenu>"编辑"</guimenu><guimenuitem>"替换"</guimenuitem></menuchoice>。</para>
</listitem>
<listitem><para>在<guilabel>"查找并替换数据"</guilabel>对话框中，选择以下选项之一：</para>
<itemizedlist>
<listitem><para><guilabel>替换十六进制数据</guilabel></para>
</listitem>
<listitem><para><guilabel>替换 ASCII 数据</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>在第一个文本框中，键入要查找的字符串。</para>
</listitem>
<listitem><para>在第二个文本框中，键入用于替换所查找字符串的字符串。</para>
</listitem>
<listitem><para>单击<guibutton>"查找下一个"</guibutton>。</para>
</listitem>
<listitem><para>单击<guibutton>"替换"</guibutton>会替换当前找到的字符串，或单击<guibutton>"全部替换"</guibutton>来替换找到的所有字符串。</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find &amp; Replace Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ========== To Add or Remove Additional Views of a File ================ -->

<sect2 id="ghex-add-remove-views">
<title>添加或删除文件的附加视图</title>
<para>To add another view of the current file to your <application>GHex</application> window, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Add View</guimenuitem></menuchoice>. </para>
<para>要删除当前文件的视图，请选择<menuchoice><guimenu>"视图"</guimenu><guimenuitem>"删除视图"</guimenuitem></menuchoice>。 如果您删除了最后一个打开的视图，应用程序将会退出。</para>
</sect2>

<!-- ========== To Change the Data Grouping ================ -->

<sect2 id="ghex-data-group">
<title>To Change the Data Group Type</title>
<para>To change how <application>GHex</application> displays the hexadecimal content of a file in the <application>GHex</application> window, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Group Data As</guimenuitem></menuchoice>, then select one of the following menu items: </para>
<itemizedlist>
<listitem><para><guilabel>Bytes</guilabel> - single bytes</para>
</listitem>
<listitem><para><guilabel>Words</guilabel> - groups of two bytes</para>
</listitem>
<listitem><para><guilabel>Longwords</guilabel> - groups of four bytes</para>
</listitem>
</itemizedlist>
</sect2>

<!-- ============= To Export the GHex Display to HTML =================== -->

<sect2 id="ghex-export-to-html">
<title>将 GHex 显示导出为 HTML</title>
<para>要将包含在 <application>GHex</application> 窗口中的数据导出为 HTML，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"另存为 HTML"</guimenuitem></menuchoice>。选择一个目录并为该 HTML 文件指定一个文件名，然后单击<guibutton>"确定"</guibutton>。<application>GHex</application> 会执行以下操作： <itemizedlist>
<listitem><para>为 <application>GHex</application> 窗口中显示的每个数据页面创建一个单独的 HTML 文件。</para>
</listitem>
<listitem><para>使用您指定的 HTML 文件名作为文件名的基础。</para>
</listitem>
<listitem><para>在文件名后附加一个页码以区分这些文件。</para>
</listitem>
</itemizedlist>例如，如果您指定文件名 <filename>log.html</filename>，<application>GHex</application> 会创建一系列名为 <filename>log00000000.html</filename>、<filename>log00000001.html</filename>、<filename>log00000002.html</filename> 等等的 HTML 文件。</para>
</sect2>

<!-- ============= To View a Character Table ================ -->

<sect2 id="ghex-view-character-table">
<title>查看字符表</title>
<para>要查看包含值 0 到 255 的 ASCII、十六进制、十进制、八进制和二进制表示的表，请选择<menuchoice><guimenu>"窗口"</guimenu><guimenuitem>"字符表"</guimenuitem></menuchoice>。</para>
</sect2>

<!-- ============= To View Data Conversions ===================== -->

<sect2 id="ghex-view-data-conversions">
<title>查看数据转换</title>
<para>要显示二进制、十进制、十六进制和 ASCII 转换（最多四个字节的数据），可执行以下步骤：</para>
<orderedlist>
<listitem><para>选择<menuchoice><guimenu>"窗口"</guimenu><guimenuitem>"基本转换器"</guimenuitem></menuchoice>。</para>
</listitem>
<listitem><para>执行以下一种操作：</para>
	<itemizedlist>
	<listitem><para>在<guilabel>"基本转换器"</guilabel>对话框的其中一个字段中键入要转换的数据，然后按下<keycap>回车</keycap>键。</para> 
	</listitem>
	<listitem><para>要在当前文件的光标位置处显示该数据的转换值，请单击<guibutton>"获取光标值"</guibutton>按钮。</para>
	</listitem>
	</itemizedlist>
	<para><application>GHex</application> 会更新其它字段的值，以显示数据转换的结果。</para>
</listitem>
<listitem><para>Click <guibutton>Close</guibutton> to close the <guilabel>Base Converter</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To View the Type Conversion Dialog ================ -->

<sect2 id="ghex-view-type-conversion">
<title>To Show or Hide the Type Conversion Dialog</title>
<para>To show or hide the type conversion dialog, choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Type Conversion Dialog</guimenuitem></menuchoice>.</para>
<para>The type conversion dialog displays the value of the selected character in the following representations: </para>
<itemizedlist>
<listitem>
<para><guilabel>Signed 8 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 8 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Signed 16 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 16 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Signed 32 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 32 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>32 bit float</guilabel></para>
</listitem>
<listitem>
<para><guilabel>64 bit float</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Hexadecimal</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Octal</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Binary</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Stream Length</guilabel></para>
</listitem>
</itemizedlist>
<para>The type conversion dialog also contains the following options: </para>
<variablelist>
<varlistentry>
<term><guilabel>Show little endian decoding</guilabel></term>
<listitem>
<para>Select this option to show little endian decoding.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Show unsigned and float as hexadecimal</guilabel></term>
<listitem>
<para>Select this option to show unsigned and float numbers as hexadecimal numbers.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= To Print a File ===================== -->

<sect2 id="ghex-print-file">
<title>打印文件</title>
<para>要打印文件，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"打印"</guimenuitem></menuchoice>。在<guilabel>"打印"</guilabel>对话框中选择所需的打印选项，然后单击<guibutton>"确定"</guibutton>。</para>
<para>要预览文件的打印副本，请选择<menuchoice><guimenu>"文件"</guimenu><guimenuitem>"打印预览"</guimenuitem></menuchoice>。</para>
</sect2>

</sect1>

<!-- ============= Customization ============================== -->

<sect1 id="ghex-prefs">
<title>首选项</title>
<para>要配置 <application>GHex</application>，请选择<menuchoice><guimenu>"编辑"</guimenu><guimenuitem>"首选项"</guimenuitem></menuchoice>。<guilabel>"首选项"</guilabel>对话框包含以下选项卡式部分：</para>
<itemizedlist>
<listitem><para><xref linkend="ghex-prefs-editing"/></para>
</listitem>
<listitem><para><xref linkend="ghex-prefs-display"/></para>
</listitem>
<listitem><para><xref linkend="ghex-prefs-printing"/></para>
</listitem>
</itemizedlist>

<!-- ============= Editing Tabbed Section ============================== -->

<sect2 id="ghex-prefs-editing">
<title>编辑</title>
<variablelist>
<varlistentry>
<term><guilabel>最大取消层次数</guilabel> </term>
<listitem>
<para>Use this spin box to specify the maximum number of edits that you can undo. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>将状态栏中的光标偏移显示为</guilabel> </term>
<listitem>
<para>Use this drop-down list to select the format in which the cursor offset is displayed. The format can be decimal, hexadecimal, or a custom print style string that only contains the format specifiers x, o, and s. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>显示偏移柱</guilabel> </term>
<listitem>
<para>选择此选项会在 <application>GHex</application> 窗口的十六进制视图左侧的柱中显示光标偏移。</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= Display Tabbed Section ======================== -->

<sect2 id="ghex-prefs-display">
<title>显示</title>
<variablelist>
<varlistentry>
<term><guilabel>字体</guilabel> </term>
<listitem>
<para>Use the font selector list boxes to edit the existing font information or type new font information. Specify a font type, style, and size to display the contents of files in <application>GHex</application>.  </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>默认组类型</guilabel> </term>
<listitem>
<para>Select one of the following options to specify how <application>GHex</application> displays the hexadecimal content of a file in the <application>GHex</application> window: </para>
<itemizedlist>
<listitem><para><guilabel>Bytes</guilabel> - single bytes</para>
</listitem>
<listitem><para><guilabel>Words</guilabel> - groups of two bytes</para>
</listitem>
<listitem><para><guilabel>Longwords</guilabel> - groups of four bytes</para>
</listitem>
</itemizedlist>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= Printing Tabbed Section ============================== -->

<sect2 id="ghex-prefs-printing">
<title>打印</title>
<variablelist>
<varlistentry>
<term><guilabel>数据字体</guilabel> </term>
<listitem>
<para>Click on the <guibutton>Data font</guibutton> button to specify the font type, style, and size to use to print the data contained in a file. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>页眉字体</guilabel> </term>
<listitem>
<para>Click on the <guibutton>Header font</guibutton> button to specify the font type, style, and size to use to print the header information that is contained in the file. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>打印阴影框的行数</guilabel> </term>
<listitem>
<para>Use this spin box to specify the number of lines that <application>GHex</application> alternately prints with a surrounding shaded box. If the value of the spin box is 10, <application>GHex</application> prints the first 10 lines of the file without a shaded box, the next 10 lines with a shaded box, and so on. If the value of the spin box is 0, <application>GHex</application> does not print any shaded box.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

</article>
