| United States-English |
|
|
|
![]() |
HP Help System Developer's Guide > Chapter 2 Organizing and Writing a Help VolumeUsing Entities |
|
An entity can represent a string of characters or the contents of a file. An entity declaration defines the entity by associating the entity name with a specific character string or file name. An entity reference is replaced by the string or file contents when you process the help volume with the helptag command. Entities are useful for:
Example. The following line declares a text entity named "ProductName" that contains the string "HP Visual User Environment":
The following sentence includes a reference to the entity:
When the help volume is processed with the HelpTag software, the entity reference is replaced with the value of the entity. So, the sentence reads:
Do not include any path in the file name. If the file is not in the current directory when you run the HelpTag software, add the appropriate search path to the helptag.opt file. (See “To run `helptag'”.) Example: Text File Entities. Suppose you wrote the text for your help volume in three files named file1, file2, and file3, plus a fourth file containing your <metainfo> ... </metainfo> section. You could include them in your volume.htg file like this:
Example: A Graphic File Entity. Suppose a simple help volume has a figure in the home topic and the graphic image for the figure is stored in a file named picture.tif. The following example shows how that image would be used in a figure.
The text "A Picture" is the figure's caption.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||