<?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="oc">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
  <articleinfo> 
    <title>GHex Manual V2.5</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>Projècte de documentacion de GNOME</publishername> 
    </publisher> 

      <legalnotice id="legalnotice">
         <para>
           Permission is granted to copy, distribute and/or modify this
           document under the terms of the GNU Free Documentation
           License (GFDL), Version 1.1 or any later version published
           by the Free Software Foundation with no Invariant Sections,
           no Front-Cover Texts, and no Back-Cover Texts.  You can find
           a copy of the GFDL at this <ulink type="help" url="ghelp:fdl">link</ulink> or in the file COPYING-DOCS
           distributed with this manual.
          </para>
          <para> This manual is part of a collection of GNOME manuals
           distributed under the GFDL.  If you want to distribute this
           manual separately from the collection, you can do so by
           adding a copy of the license to the manual, as described in
           section 6 of the license.
         </para>
 
         <para>
           Many of the names used by companies to distinguish their
           products and services are claimed as trademarks. Where those
           names appear in any GNOME documentation, and the members of
           the GNOME Documentation Project are made aware of those
           trademarks, then the names are in capital letters or initial
           capital letters.
         </para>
 
         <para>
           DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
           UNDER  THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
           WITH THE FURTHER UNDERSTANDING THAT:
 
           <orderedlist>
                 <listitem>
                   <para>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS,
                     WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
                     IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
                     THAT THE DOCUMENT OR MODIFIED VERSION OF THE
                     DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR
                     A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
                     RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE
                     OF THE DOCUMENT OR MODIFIED VERSION OF THE
                     DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR
                     MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT,
                     YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY
                     CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
                     SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
                     OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
                     LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED
                     VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER
                     EXCEPT UNDER THIS DISCLAIMER; AND
                   </para>
                 </listitem>
                 <listitem>
                   <para>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
                        THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE),
                        CONTRACT, OR OTHERWISE, SHALL THE AUTHOR,
                        INITIAL WRITER, ANY CONTRIBUTOR, OR ANY
                        DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION
                        OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH
                        PARTIES, BE LIABLE TO ANY PERSON FOR ANY
                        DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
                        CONSEQUENTIAL DAMAGES OF ANY CHARACTER
                        INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
                        OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
                        MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR
                        LOSSES ARISING OUT OF OR RELATING TO USE OF THE
                        DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT,
                        EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF
                        THE POSSIBILITY OF SUCH DAMAGES.
                   </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>Còla de documentacion de GNOME</surname> 
		<affiliation> 
	  		<orgname>Sun Microsystems</orgname>
	  		<address/> 
		</affiliation> 
      </author> 
      <author> 
		<firstname>Jaka</firstname> 
		<surname>Mocnik</surname> 
		<affiliation> 
	  		<orgname>Projècte de documentacion de GNOME</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 Manual V2.5</revnumber> 
			<date>March 2004</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V2.4</revnumber> 
			<date>Abril de 2003</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.3</revnumber> 
			<date>Agost de 2002</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.2</revnumber> 
			<date>Agost de 2002</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.1</revnumber> 
			<date>Julhet de 2002</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V2.0</revnumber> 
			<date>Març de 2002</date> 
			<revdescription> 
	  			<para role="author">Còla Sun de documentacion de GNOME</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V1.0</revnumber> 
			<date>2000</date> 
			<revdescription> 
	  			<para role="author">Jaka Mocnik
	    		<email>jaka@gnu.org</email>
	  			</para>
	  			<para role="publisher">Projècte de documentacion de GNOME</para>
			</revdescription> 
      </revision> 
    </revhistory> 

    <releaseinfo>This manual describes version 2.5.2 of GHex.
    </releaseinfo> 
    <legalnotice> 
      <title>Feedback</title> 
      <para>To report a bug or make a suggestion regarding the GHex application or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</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>Introduccion</title>
<para>The <application>GHex</application> application enables you to perform the following actions:</para>
<itemizedlist>
<listitem><para>View a file in ASCII or hexadecimal format simultaneously. </para>
</listitem>
<listitem><para>Edit a file in either ASCII or hexadecimal format.</para>
</listitem>
</itemizedlist>
</sect1>

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

<sect1 id="ghex-getting-started">
<title>Per començar</title>

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

<sect2 id="ghex-to-start">
<title>To Start GHex</title>

<para>You can start <application>GHex</application> in the following ways:</para>
<variablelist>
<varlistentry>
<term>Menut <guimenu>Applications</guimenu></term>
<listitem>
<para>Choose <menuchoice><guisubmenu>Accessories</guisubmenu><guimenuitem>Hex Editor</guimenuitem></menuchoice>. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>Linha de comanda</term>
<listitem>
<para>Execute the following command: <command>ghex2</command></para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2 id="ghex-when-you-start">
<title>When You Start GHex</title>

<para>When you start <application>GHex</application>, the following window is displayed.</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-empty">
<title>GHex Window Before You Open a File</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_empty.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>Shows GHex main window before you open a file.</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

</sect2>


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

<sect2 id="ghex-open-file">
<title>To Open a File</title>
<para>To open a file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open</guimenuitem></menuchoice>. Select the file that you want to open, then click <guibutton>OK</guibutton>. You can open multiple files in <application>GHex</application>. <application>GHex</application> displays each file in a new window.</para>
<para>When you open a file in <application>GHex</application>, the application displays the file in the following window.</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-open">
<title>GHex Window with an Open File</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_open.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>Shows GHex main window with an open file</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

<para>The <application>GHex</application> window contains the following elements: </para>
<variablelist>
<varlistentry>
<term>Barra de menuts</term>
<listitem>
<para>The menus on the menubar contain all the commands that you need to work with files in <application>GHex</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Cursor offsets column</term>
<listitem>
<para>The cursor offset is the distance between the beginning of the file and the first byte in each line. By default, <application>GHex</application> displays the cursor offsets column to the left of the hexadecimal view.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Display pane on left side</term>
<listitem>
<para>The display pane on the left side of the display area displays a hexadecimal view of the file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Display pane on right side</term>
<listitem>
<para>The display pane on the right side of the display area displays an ASCII view of the file.</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>Utilizacion</title>

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

<sect2 id="ghex-edit-file">
<title>To Edit a File</title>
<para>To edit a file, perform the following steps: </para>
<orderedlist>
<listitem><para>Click in the hexadecimal or ASCII view of the file. The view in which the cursor is active displays a full cursor. The view in which the cursor is not active displays an outline of the cursor. </para>
</listitem>
<listitem><para>Use any of the following methods to move the cursor around the file:</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>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Goto Byte</guimenuitem></menuchoice>, type the cursor offset as a decimal or hexadecimal value, then click <guibutton>OK</guibutton>. The format of the hexadecimal value must be 0x followed by the offset, for example 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>To Save a File</title>
<para>You can save a file in the following ways:</para>
<itemizedlist>
<listitem><para>To save changes to the current file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>To save the current file under a new filename, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save As</guimenuitem></menuchoice>. Enter a name for the file in the <guilabel>Select a file to save buffer as</guilabel> dialog, then click <guibutton>OK</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>To Find Data in a File</title>
<para>To search a file for a hexadecimal or ASCII string, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>Search for hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Search for ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Type the string that you want to find.</para>
</listitem>
<listitem><para>Click <guibutton>Find Next</guibutton> to find the next occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Find Previous</guibutton> to find the previous occurrence of the string.</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>Click <guibutton>Find Next</guibutton> to find the next occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Find Previous</guibutton> to find the previous occurrence of the string.</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>Search for hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Search for ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Type the string that you want to find.</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>To Find and Replace Data in a File</title>
<para>To search a file for a hexadecimal or ASCII string and then replace the string, perform the following steps:</para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Replace</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find &amp; Replace Data</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>Replace hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Replace ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>In the first text box, type the string that you want to find. </para>
</listitem>
<listitem><para>In the second text box, type the string that you want to use to replace the string that you find.</para>
</listitem>
<listitem><para>Click <guibutton>Find Next</guibutton>.</para>
</listitem>
<listitem><para>Click <guibutton>Replace</guibutton> to replace the current occurrence of the string or click <guibutton>Replace All</guibutton> to replace all occurrences of the string.</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>To Add or Remove Additional Views of a File</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>To remove a view of the current file, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Remove View</guimenuitem></menuchoice>. If you remove the last view that is open, the application exits.</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>To Export the GHex Display to HTML</title>
<para>To export the data contained in the <application>GHex</application> window to HTML, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save As HTML</guimenuitem></menuchoice>. Choose a directory and specify a filename for the HTML file, then click <guibutton>OK</guibutton>. <application>GHex</application> implements the following actions: <itemizedlist>
<listitem><para>Creates a separate HTML file for each page of data that is displayed in the <application>GHex</application> window.</para>
</listitem>
<listitem><para>Uses the HTML filename that you specify as the basis for the filename. </para>
</listitem>
<listitem><para>Appends a page number to the filename to differentiate the files.</para>
</listitem>
</itemizedlist> For example, if you specify the filename <filename>log.html</filename>, <application>GHex</application> creates a series of HTML files named <filename>log00000000.html</filename>, <filename>log00000001.html</filename>, <filename>log00000002.html</filename>, and so on.</para>
</sect2>

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

<sect2 id="ghex-view-character-table">
<title>To View a Character Table</title>
<para>To view a table that contains the ASCII, hexadecimal, decimal, octal, and binary representations for the values 0 to 255, choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Character Table</guimenuitem></menuchoice>.</para>
</sect2>

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

<sect2 id="ghex-view-data-conversions">
<title>To View Data Conversions</title>
<para>To display the binary, decimal, hexadecimal, and ASCII conversions for up to four bytes of data, perform the following steps:</para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Base Converter</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>Perform one of the following actions:</para>
	<itemizedlist>
	<listitem><para>Type the data that you want to convert in one of the fields in the <guilabel>Base Converter</guilabel> dialog, then press <keycap>Return</keycap>.</para> 
	</listitem>
	<listitem><para>To display the conversions for the data at the cursor position in the current file, click on the <guibutton>Get cursor value</guibutton> button.</para>
	</listitem>
	</itemizedlist>
	<para><application>GHex</application> updates the values of the other fields to display the data conversions. </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>Binari</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>To Print a File</title>
<para>To print a file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Print</guimenuitem></menuchoice>. Select the print options that you require in the <guilabel>Print</guilabel> dialog, then click <guibutton>OK</guibutton>. </para>
<para>To preview a printed copy of the file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Print Preview</guimenuitem></menuchoice>.</para>
</sect2>

</sect1>

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

<sect1 id="ghex-prefs">
<title>Preferéncias</title>
<para>To configure <application>GHex</application>, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Preferences</guimenuitem></menuchoice>. The <guilabel>Preferences</guilabel> dialog contains the following tabbed sections:</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>Editing</title>
<variablelist>
<varlistentry>
<term><guilabel>Maximum number of undo levels</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>Show cursor offset in statusbar as</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>Show offsets column</guilabel> </term>
<listitem>
<para>Select this option to display the cursor offsets in a column to the left of the hexadecimal view of the <application>GHex</application> window. </para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

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

<sect2 id="ghex-prefs-display">
<title>Afichar</title>
<variablelist>
<varlistentry>
<term><guilabel>Poliça</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>Default Group Type</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>Estampatge...</title>
<variablelist>
<varlistentry>
<term><guilabel>Data font</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>Header font</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>Print shaded box over</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>
