Documentation Center

Customizing QuickInsert to insert tags and apply formatting

The QuickInsert group enables you to quickly insert tags which define elements and formatting in the target document for XML and HTML files. For example, you could tag text in the target document as a Heading 1 with bold formatting or you could insert a reference to an image.

Procedure

  1. Decide where you want to use the QuickInsert button which inserts tags or applies formatting:
    • For the active project, go to the Projects view, and on the Home tab, select Project Settings.
    • For all future projects, go to File > Options.
  2. In the File Types tree, expand the type of file for which you want to add a QuickInsert custom button.
  3. Select QuickInsert from your file type tree.
  4. Select Addor Edit.
  5. In the Add/Edit QuickInsert dialog, type a name and description. The description will be displayed as a tooltip when the user hovers the mouse over the button.
  6. In the Type box:
    • Select Placeholder tag to insert a tag that does not need a closing tag, for example, an image tag.
    • Select Tag pair to insert a tag pair that has an opening and closing tag , for example <H1> and </H1>. You can also use these tags to apply formatting.
  7. In the Element box, select a tag from the list of available ones for the chosen file type.
  8. In the Attributes Name and Value box, select the attribute value pairs. For some tags, a drop-down list of attributes is provided. To provide the HTML code <img src="landscape.jpg"/>
    1. In the Name, enter src
    2. In the Value, landscape
  9. If you selected Tag pair from the Type box:
    • Select Tags can be Hidden if you do not want the actual tag pair to display during translation. Only do this if formatting is applied, otherwise the tag pair may not be visible in the Editor and could lead to document verification issues.
    • Specify how the text within the tag pair is displayed in the Editor by clicking the Edit button next to the Formatting box. For example, you could choose to apply bold formatting.
  10. If you selected Placeholder tag from the Type box, enter the text that you want to use for linguistic processing in the Text equivalent box. This allows you to use the text equivalent of the tag when performing a lookup in the translation memory (TM). For example, copyright uses this symbol ©, but as text for linguistic processing, you could put the text equivalent (c).
  11. display the new button on the QuickInsert group, select Display in QuickInsert group.
  12. Select OK

Results

The new QuickInsert button will now be added to the QuickInsert group when you translate files that use these settings.