7.0

Table Of Contents
To set up a user-defined emulation:
1. If you have not done so already, associate a sample data file with the document.
2. Choose Tools | Open Active Data.
3. In the Data Selector, in the Emulation box, select User-defined.
4. In the Emulation options, click Use PlanetPress Talk Editor.
The Code area of the Editor contains the code for a line printer emulation. The Spy list in the Editor
contains spies for three system variables important in user-defined emulations:
Variable: Type: Contains:
&str string The current line of input data.
&current.line integer The line number of the current line of data in the data page. This
system variable is read-write and can be modified using the set()
command.
&current.lpp integer The number of lines per data page in the current data page.
5. Enter the emulation code in the Code area of the PlanetPress Talk Editor. You can use the line printer
emulation code as a starting point or delete it (highlight it and press DELETE or BACKSPACE) and start
from scratch.
You can use the Object Preview to preview the result of the code you enter. If the Object Preview is not
visible, in the PlanetPress Talk Editor choose View | Preview. The Object Preview for a user-defined
emulation differs from the standard Object Preview as follows:
It contains a Data Pane to preview each of the data pages your emulation constructs from the
sample data file.
It includes a Data page box to verify the accuracy of your emulation by moving through the data
pages of the sample data file.
It does not contain a zoom tool.
You refresh its contents by executing the code.
6. When you finish entering the code for the emulation, click OK to exit the Editor and return to the Data
Selector.
7. Click OK.
7.4.8 Use the Hex Viewer
The procedures describe how to:
You can open the Hex Viewer either from within the Data Selector, or from the Tools menu in
PlanetPress Design.
Open and save a sample data file, in the Hex Viewer, including saving it as a binary or hexadecimal text
file.
Adjust the view on the sample data file, including changing the character set you use to represent the
input data.
Navigate through the sample data file.
Get a hard copy of the Hex Viewer presentation of the file.
Determine the hexadecimal value of a byte of input data or vice-versa.
Search for a hexadecimal value.
Edit the sample data file, including how to insert, delete, and edit individual nibbles.
Copy and paste a portion of the input data into a separate Hex Viewer file.
Undo commands in the Hex Viewer.
Note that the Hex Viewer is a standalone tool you can also use outside of PlanetPress Design.
To open the Hex Viewer:
Choose Tools | Hex Viewer.
Selecting an Emulation - Detailed Directions
Objectif Lune Inc. © 2009 83