Creating index tags in address areas

You can create index tags for mailing addresses in an address area. The area must occur in a consistent location in each page group; however, it can consist of a variable number of lines. In the area, you can create an index tag for a ZIP Code that is in the U.S. Postal Service format.

For example, a customer address might consist of either 3 or 4 lines, with the ZIP Code always on the last line. First you identify the location and size of the address area by drawing a box around an address that contains the maximum lines in the address: in this example, 4 lines. If the sample AFP file does not have an address with the maximum number of lines, draw a box large enough to include all possible lines in the address area. If you know the exact position and size of the address area, you can adjust the size of the box you drew by specifying the exact X offset, Y offset, height, and width of the address area. (X and Y offsets are from the origin of the logical page, not the physical sheet of paper.)

Notes:
  1. If the AFP file does not contain page groups, create page groups. Otherwise, to create an index tag for an address area on a page outside a page group, see Creating index tags on supplemental pages.
  2. In Ricoh Visual Workbench you can display measurement units in inches or millimeters. To change the measurement unit, click View → Units.

Next you can create index tags for text on specific lines: the customer name on the first line, the city on the last line, and the state on the last line. Then you can create multiple index tags for the intermediate lines that contain the street address. Intermediate lines are the lines between the specific lines that you indexed. The address area can contain a variable number of intermediate lines, as shown:

JOHN SMITH <-- first line
123 MAIN STREET <-- intermediate line 1
SUITE 100 <-- intermediate line 2 (optional line)
DENVER, CO 12345-6789 <-- last line

If the ZIP Code is in the U.S. Postal Service format (nnnnn or nnnnn-nnnn), AFP Indexer can automatically extract the ZIP Code on a line and create an index tag for it.

In an address area, you can create one or more index tags. For example, you can create an index tag for the ZIP Code without creating index tags for any other text in the address area.
To create index tags in an address area:
  1. In Ricoh Visual Workbench, open a sample AFP file that contains the addresses that you want to index in the format that you want to index. Then click Mode → AFP Indexer.
  2. Navigate to an address that contains the maximum number of lines.
    If you cannot find an address with the maximum number of lines, in the next steps either draw a larger area or specify the exact size of the address area on the Position tab to include the maximum number of lines.
  3. To create the address area, position your cursor at a corner of the area that contains the entire address. While pressing the left mouse button, draw a box that includes all the lines in the address.
    The address area must include the first character in the AFP text blocks that you want to index; however, it does not need to include all the text because text blocks can contain text of variable length in different page groups. For example, a text block that contains a customer name might contain a short name in one page group and a long name in another page group.
  4. Right-click anywhere on the page and click Create Index Tags for an Address.
    You see the Create Index Tags in an Address Area window.
  5. Check that the text you want to index is shown in the Index tags for intermediate lines field. If the text is not shown, click Cancel and redraw the area on the page, or click the Position tab to adjust the origin and size of the address area.

    If the text displays correctly in the AFP file but incorrectly in the Index tags for intermediate lines field, try changing the default code page (Resources → Modify Default Encoding). If the text still does not display correctly, this usually indicates that the code page does not use standard Unicode mapping. In this case, use the SampleCodePointMap.cp font-mapping file to create a code point map file before proceeding.
  6. Optional: On the Position tab, change the origin (top-left corner) and size of the address area in these fields. Decimal values (such as 2.5) are allowed. Specify the values in inches or millimeters.

    X position

    The horizontal distance of the left side of the area measured from the left side of the logical page (not the physical sheet of paper).

    Y position

    The vertical distance of the top of the area measured from the top of the logical page (not the physical sheet of paper).

    Width

    The horizontal width of the area.

    Height

    The vertical height of the area.

    If you rotated the AFP file using the Rotate by 90o option on the View menu, measure the X and Y positions from the top-left corner of the logical page in the unrotated view.
  7. On the Index Tags tab, type a descriptive name for the area in the Index area name field.
    For example, if the area contains the customer's address, the name could be “Customer address area”.
  8. Specify the character or characters that you want to use to separate text blocks in the Character between text blocks field.
    The default character that separates text blocks is one blank. If you want to concatenate the text in multiple text blocks, delete the blank from the field.
    In the Index tags for intermediate lines field you see the text with the character that you specified, if any, shown between the text blocks.
  9. Optional: To create an index tag for a specific line in the area:
    1. Click Add.
    2. Use the default code page encoding or select an encoding from the drop-down list if the text displays incorrectly.
    3. Type a descriptive name for the index tag.
      For example, if the line contains the customer name, the name could be “Customer”.
    4. Select the line that contains the text you want to index:
      • To select the first line or a line relative to the first line, click First line. Then use the drop-down list for this field to select a relative line. For example, select First line plus 1.
      • To select the last line or a line relative to the last line, click Last line. Then use the drop-down list for this field to select a relative line. For example, select Last line minus 1.
    5. Decide whether you want to use the entire text value to create the index tag or only part of the text. To select part of the text as the index tag, click Edit index value. Edit the index value in the Edit Value window and click OK.
      You see the value of the index tag in the Edited value field.
    6. Clear the Create tag for an empty value field if you do not want AFP Indexer to create index tags with null values.
      Otherwise, an index tag contains the value “null” if the text that you indexed does not exist in a particular page group. For example, if a page group has an address that does not contain a country name, the index tag for country name is “null” for that page group.
    7. Click OK.
      You see the index tag and the index tag value in the Index tags for specific lines field.
  10. Optional: To create another index tag with text on the same line or on a different line, click Add again.
    You can create as many index tags for specific lines as you want in the area.
  11. Optional: To create index tags for the lines that are shown in the Index tags for intermediate lines field:
    1. Click Index intermediate lines.
    2. Specify the name for the index tags in the Index tag name field. For example, the name could be “Street”.
    3. Use the drop-down box next to the Index tag name field to select the number to append to the index tag for the first intermediate line.
    4. Use the default code page encoding or select an encoding from the drop-down list.
    AFP Indexer creates index tags for each intermediate line in the area; for example: “Street1” and “Street2”. AFP Indexer does not create index tags for intermediate lines that do not exist in a page group. For example, if the address in a particular page group does not contain the second intermediate line in the street address, AFP Indexer only creates index tag “Street1”.
  12. Optional: To create an index tag for a ZIP Code in the U.S. Postal Service format (nnnnn or nnnnn-nnnn):
    1. Click the ZIP Code tab.
      You see the ZIP Code in the ZIP Code field.
    2. Type a descriptive name for the index tag.
      For example, the name could be “ZIP Code”.
    3. Use the default code page encoding or select an encoding from the drop-down list.
    4. Clear the Create tag for an empty value field if you do not want AFP Indexer to create an index tag with a “null” value. Otherwise, if the ZIP Code does not exist in a particular page group, the index tag for that page group contains the value “null”.
  13. Click OK.
    You see the index tags listed in the bottom pane for each page group.
  14. Verify that the correct index tags have been created:
    1. Double-click the index tags in the bottom pane and verify that the correct pages in the page groups are displayed.
    2. If an index tag is incorrect, click Tools → Modify Definitions to modify or delete the tag.
      The index tag is listed under Page Group Definition → Page Group Indexes → Address Indexes.
 
Copyright © 2006, 2018