H2 Project Editor

Getting Started | Menu |
Pages: H2 Project | General | Project Files | Navigation | Appearance | Compile | RegisterView |

The "H2 Project Editor" window is available from the Authoring menu  (main window), and from Windows Explorer when you right-click a .HxC project file and select "Open with FAR".

The H2 Project Editor allows you to create and edit MS Help 2 collection (.HxC) files, as well as other associated (.Hx?) project files. There are two types of HxC files. (1) HxC Project files used to compile a HxS help file. And the (2) "collection-level" HxC file, which defines how multi-help file collections hang together. Note that MS Help SDK Application (workshop), does not support the latter except in providing documentation.

New to MS Help 2? Read the MS Help Primer.

About Green Links:

Throughout this help, and throughout the FAR Help 2 dialogs you will observer several green links. Usually found at the bottom of the page. These links open an MS SDK help page in your browser. Although the FAR User Interface is slightly different to MS Help 2 Workshop, you may find it helpful to read the MS documentation. To view the entire SDK help, open the Namespace MS.VSHIK in your H2 Help Viewer.

Getting Started

MS Help 2 (.HxC) project files differ from the older MS HTML Help (.HHP) project files. MS Help 2 project files keep their list of content files in a separate  (.HxF) Include file.  Also, with MS Help 2 you must specify every file you want included in the final .HxS Help file (with HH 1.x the compiler would auto-included files for you). The TOC and Index information are still kept in separate files, but are now .HxT and .HxK XML files. URLs for the Home page, Default page, etc are now defined in yet another Index file typically called NamedURL.HxK.

All project file are now in XML format. These can be viewed in a text editor and are reasonably easy to read. The MS Help 2 SDK (Workshop) documentation describes their format. You will find plenty of documentation about XML on the web. The MSDN web site is a good source of XML info.

.HxC Project definition file. Contains all project settings and references to other project files. This is the file type you load into this editor.
.HxF Include file. Contains a list of content files to be compiled into the final .HxS help file. The Collection-level files do not need a HxF file.
.HxT Table Of Contents definition file.
.HxK Index definition file. Each Index file is given a unique "Index Name". It's very important to get the Index names right. Its the Index Name, not the file name, that defines the type of index. Name "K" is typically used for the Keyword Index; Name "A" for the Associative Index; Name "NamedURLIndex" for the Named URL index - it contains URLs for the HomePage, DefaultPage etc. Name "F" for the Context help mapping Index; All these index files are optional since index entries can be embedded directly into topics (.HTML) files.

Read about others Hx? project file types in the MS Help SDK documentation:
ms-help://ms.vshik/mshlpwrk/html/hxgrfMicrosoftHelpProjectFiles.htm

Unicode Support

Unlike MS HH 1.x, MS Help 2 now supports Unicode. Use "File > Save As" to change the file encoding of the current project. When you change the HxC file encoding, FAR will ask you if you want to change the encoding on all other associated Hx? project files.

Tip: For those working with foreign language characters you may find that ASCII files causes compile errors. In this case convert your files into UTF-8 format.

Read more about Unicode support.


File Menu
Command Menu

Note#1 - This command is disabled when editing "collection-level" HxC files. Collection-level files do not require content file lists, nor can they be compiled.

View Menu
Help Menu

H2 Project Page

Project Type

There are two types of HxC collections files. The first type can be compiled to a help (.HxS) file. The second type is called a "collection-level" .HxC file. Collection-level files (.HxC, .HxT, .HxK, .Hx?), are shipped uncompressed, and define how the .HxS help files merge together at run-time.

Collection-level .HxC files:

The Project page allows you to select the HxC file editing mode:

  1. Project .HxC files are used at compile time to create Help (.HxS) files.
  2. Collection-level .HxC files define how multi help file collections merge at run-time.

You'll pick it up as you go along. Use 1) to create help (.HxS) files. Use 2) if you want to merge several help files at run-time.

When moving between editing modes some fields and pages will be disabled or become hidden. The Compile page is only available in mode 1.

Registration Note:

Single Help file Collections Ship only the compiled help file. At install time register, under a unique Namespace, the single HxS help file as both the collection file and the collection help title.
Multiple Help file Collections Ship all compiled help files (created in mode 1) and the Hx? collection-level files (created in mode 2). At install time you register (under a unique Namespace) the collection-level .HxC file as the main collection file, then register all the compiled help files as collection help titles.

Collection-level Hx Files: (Edit Mode 2)

Table Of Contents (.HxT) The collection-level HxT file typically contains include file statements. Example: An include statement of "TestCol1" will cause the TOC file "TestCol1.HxT" to be included into the master TOC at run-time. At run-time, the system searches all Help files in the collection and uses the first "TestCol1.HxT" file it finds.
Index (.HxK) Each collection-level Index file is normally gutted of all Name-Value data pairs. The important thing here is to specify the correct INDEX NAME. The name can be edited using a text editor. Example: <HelpIndex Name="K" ...>. The name "K" specified as a "Keyword Index" in the Navigation Page, tells the system that at run-time, all K Indexes found in the help files, should be merged together to form a single Keyword Index.
Include File (.HxF) Don't use .HxF files in Edit Mode 2.

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtskcreatingcollection-levelfiles.htm
ms-help://ms.vshik/mshlpwrk/html/hxgrfcollectiondefinitionfilehxc.htm

General page

Note#1 - Checkbox is disabled when editing collection-level HxC collections.

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtskSettingGeneralProperties.htm

Project Files page
Project File List - Add all required project files to this list. Right-click for the options menu. Typically you will need to add a .HxF Include file (Collection-Level HxC only: HxF contains your list of topic, image etc files), a .HxT Table Of Contents file, a HxK Keyword file named "K" (containing Keywords for the index navigation tab) and a HxK Index file named "NamedURLINdex" containing URLs for HomePage, DefaultPage etc.

Popup Menu commands (Right-click the list):

The Project List itself contains a File Type column. This displays the File Encoding of the file so you can see at a glance if your project files are ANSI/Unicode/UTF-8 encoded.

As project files are added, FAR tries to automatically setup the appropriate Navigation page setting for you. EG. Add a Index file named "K" and if the Keyword Edit field (Navigation Page) is unassigned, FAR will assign "K" to it.

Note that all project files you add to this list, are automatically included in the final .HxS help file at compile time. Project list files need not be added to the HxF include file.

The .HxF include file may contain wild cards such as *.*, *.htm, images\*.*, etc. Enter these type of file entries via a text editor (select "Edit As Text" from the popup menu), as the supplied HxF editor only supports entering real filenames.

HxF include files are NOT required in project edit mode 2 (collection-level file editing).

HxF Project file Example:

<?xml version="1.0"?>
<!DOCTYPE HelpFileList SYSTEM "MS-Help://Hx/Resources/HelpFileList.DTD">
<HelpFileList DTDVersion="1.0">
    <File Url="*.gif"/>
    <File Url="*.htm"/>
    <File Url="*.html"/>
    <File Url="*.jpg"/>
    <File Url="images\*.gif"/>
    <File Url="images\*.jpg"/>
    <File Url="test\tester.htm"/>
</HelpFileList>

HxK Named URL Index Example:

<?xml version="1.0"?>
<!DOCTYPE HelpIndex SYSTEM "MS-Help://hx/resources/HelpIndex.DTD">
<HelpIndex Name="NamedUrlIndex" DTDVersion="1.0" FileVersion="1.0">
<Keyword Term="HomePage">
    <Jump Url="dl.htm"/>
</Keyword>
<Keyword Term="DefaultPage">
    <Jump Url="dl.htm"/>
</Keyword>
</HelpIndex>

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxgrfMicrosoftHelpProjectFiles.htm

Navigation page

Each Drop down list contains entries from "Project Files" page.

Edit Mode 2 (run-time collections)

  • Collection-level index files can be guttered of index items. Only header items are required.
  • Collection-level TOC files normally contains one or more include statements. These statements reference TOC files in the help titles. Normally all that is required is to enter the help TitleID. Example: A help TitleID "Fred" containing TOC "ms-help://mynamespace/Fred/contents1.hxt" can be included via a TOC include statement "Fred".

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtskSettingNavigationProperties.htm

Appearance page

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtsksettingappearanceproperties.htm

Compile page

Mode 1 Editing - Project-Level

These settings are used at compile time by the MS Help 2 compiler. This page is not available when editing a Collection-level .HxC.

Mode 2 Editing - Collection-Level

MS Help collection-level files cannot be compiled to anything. They simply define how the collection (document set) hangs together at run-time. However in Collection-Level Editing, FAR allows you to optionally setup a list of HxC Projects files (used to create HxS Help files). These can are compiled as a single batch job when you hit the compile button.

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtsksettingcompileproperties.htm

Projects page (Mode 2 only)

The projects page is only available in Mode 2 editing. You can add any HxC or HxM project files to the list and when you press Compile FAR will compile them all. When you press Auto-Register FAR will register them all. We did this so you can open one file and compile all of its associated project files that create HxS, HxI, HxR and HxQ files, in one go.

Some notes on format and order:

Information on the controls and functionality of this page can be found in the Batch Compile window help. The only differences for the H2 Editors batch compile page are:

 

Register page
MS Help 2.x help files can only be viewed once they are register. This page helps you to quickly register a collection so you can test it.

Note that at the time of writing spaces within the Namespace or FileID Identifiers cause big problems. Try to avoid spaces.

Tip: To check which Namespace and FileIDs are in use by other collections, open the H2 Utilities window from the Commands menu. It is a good idea to prefix your Namespace with your company or product name. EG. "MS.VSCC"

See SDK Help for further information:
ms-help://ms.vshik/mshlpwrk/html/hxtsksettingcompileproperties.htm

View page

View Collection - View your collection in the viewer of your choice. The collection to viewer is specified by the Namespace field in the Register page.


Toobar


  • There are many features of MS Help that neither Workshop or FAR have begun to touch on. Keep an eye on the Helpware web site for FAR updates. http://helpware.net/FAR/
  • Remember information on how to create Virtual Topics, Samples, Attribute definition files etc are detailed in the MS Help SDK documentation. Like Workshop, FAR will not inhibit you from using these advanced features of MS Help.

http://www.helpware.net/