# Alfanumeric

<figure><img src="https://1939597359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazTsFGbHKYYVlYs8LIQv%2Fuploads%2FYRibn4DCD6yHN7F2dmRc%2Fimage.png?alt=media&#x26;token=b463b5e3-a9a4-4354-9f09-724c858361a9" alt="Field options > Alphanumeric"><figcaption><p>Field options > Alphanumeric</p></figcaption></figure>

Fields that are designated as `Alphanumeric` contain both letters and numbers, and will be transferred to the document exactly as they appear in the data source. This option should be utilized when the original source, like a database, already formats the field correctly. In this context, `Alphanumeric` ensures that no additional formatting or modification is applied during the data transfer, preserving the integrity of the original data.

### Strip whitespace

Whitespace characters, including tabs, spaces, and other non-visible characters, will be removed from both the beginning and the end of the field's content. This process, known as "trimming," ensures that no extraneous spaces or tabs remain around the data, which can help prevent formatting issues and improve data consistency.

### Formatted

If your source data includes formatted text, which means text with formatting tags such as `<b>` for bold or `<i>` for italics, make sure to enable the `Formatted` check box. This ensures that the formatting tags are recognized and preserved, maintaining the intended appearance of the text in the output document.

### Normal HTML

When the field content is of the “rich text” type and, therefore, includes advanced HTML tags to define paragraphs (`<p>`), lists (`<li>`), headings (`<h1>`), etc., check this box. EasyCatalog will convert each of these tags into their approximate equivalent in InDesign. For example, the tags `<p>...</p>` will be converted into paragraph breaks, `<ol><li>...</li></ol>` into numbered lists, `<ul><li>...</li></ul>` into bulleted lists, etc.

{% hint style="info" %}
HTML format is applied when the field content is inserted into the document; the original content will continue to be displayed in the data panel of your data source.
{% endhint %}

### Enhanced HTML

The enhanced HTML parser cleanses the field HTML prior to processing. Any unbalanced are corrected and the entire field is enclosed with an implied `<body>` node. As a general rule any tag which matches the name of character or paragraph style will apply that style.

<div data-full-width="false"><figure><img src="https://1939597359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazTsFGbHKYYVlYs8LIQv%2Fuploads%2FSftTFyVomEbbfRDyGouU%2FHTML_options.png?alt=media&#x26;token=9240f0b1-5c5c-44fa-9ed5-30094fab4db4" alt="Enhanced HTML > HTML Options"><figcaption><p>Enhanced HTML > HTML Options</p></figcaption></figure></div>

The following tags and attributes are available:

| Tag       | Attribute        | Value                                                                                                                                             |
| --------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **span**  | style            | Optional.  See section below                                                                                                                      |
| **font**  | face             | Font name                                                                                                                                         |
|           | color            | Swatch name                                                                                                                                       |
| **p**     | shade            | Paragraph shade                                                                                                                                   |
|           | align            | left,right,center,justify                                                                                                                         |
|           | style            | Paragraph style name                                                                                                                              |
| **a**     | href             | URL                                                                                                                                               |
|           | style            | Character stylesheet to apply                                                                                                                     |
| **img**   | src              | Filename or full path to an image                                                                                                                 |
|           | url              | Hyperlink to apply                                                                                                                                |
|           | shape            | <p>Image box frame shape variant:<br>ELLIPSE<br>TRIANGLE<br>POLYGON</p>                                                                           |
|           | swatch           | Swatch name                                                                                                                                       |
|           | clippingpath     | PHOTOSHOP                                                                                                                                         |
|           | fitting          | <p>FRAMETOCONTENT<br>CONTENTAWARE</p>                                                                                                             |
|           | width            | Value in points or string with unit of measure                                                                                                    |
|           | height           | Value in points or string with unit of measure                                                                                                    |
|           | style            | Object style name                                                                                                                                 |
|           | rotation         | Rotation of the image                                                                                                                             |
|           | scriptlabel      | Script Label to apply to image frame                                                                                                              |
|           | barcodetype      | <p>Type of barcode to generate:<br>EAN5<br>EAN8<br>EAN13<br>Code 128<br>UPCA<br>I2OF5<br>Datamatrix<br>Code 39<br>EAN14<br>GS1-128<br>QR Code</p> |
|           | barcodevalue     | The Barcodes value                                                                                                                                |
|           | barcodeparastyle | Paragraph style for the barcode text                                                                                                              |
|           | barcodeswatch    | Swatch of the barcode                                                                                                                             |
| **table** | style            | Table style to apply                                                                                                                              |
|           | width            | Overall table width                                                                                                                               |
| **td/th** | colspan          | Column span                                                                                                                                       |
|           | rowspan          | Row span                                                                                                                                          |
|           | style/cellstyle  | Cell style                                                                                                                                        |
|           | width            | <p>Cell width measurement in points or a string with unit of measure, or:<br>FIXED<br>VARIABLE<br>FITTOTEXT</p>                                   |
|           | height           | Cell height measurement in points or a string with unit of measure                                                                                |
|           | vmerge           | <p>Vertical merge setting:<br>CONTENTMATCH<br>POPULATEDCONTENTMATCH</p>                                                                           |
|           | hmerge           | <p>Horizontal merge setting:<br>CONTENTMATCH<br>POPULATEDCONTENTMATCH</p>                                                                         |
|           | delete           | <p>Cell deletion option:<br>NEVER<br>IFEMPTY</p>                                                                                                  |
|           | valign           | <p>Vertical content alignment:<br>TOP<br>BOTTOM<br>MIDDLE</p>                                                                                     |
|           | rotation         | Cell content rotation                                                                                                                             |

Where the name of a tag matches the name of a **Formatting Rule**, then a singleton instance of this tag will insert the formatting rule into the text. so `<fr>` would insert a formatting rule called *fr* into the text.

**Allow All White Space**. By default HTML whitespace rules are obeyed. Enabling this option will prevent removal of any whitespace.

### Updates Preserve Local Formatting

Once a formatted field has been inserted into the document with this option checked, any subsequent use of the *Update Document* menu option will not apply the formatting specified by the tags in the field content. Instead, EasyCatalog will attempt to preserve any local formatting that has been applied to the field wherever possible.

### Embed Tags as Conditional Text

This option will preserve, where possible, formatting tags in the text.

### Ignore Whitespace Changes

When you select this option, minor modifications can be made to the field content once its placed in the document without marking it as *in error* in the panel. This includes the insertion of whitespace characters such as additional carriage returns, tabs, and spaces.

Moreover, when this option is enabled, the `Update Panel` menu will only update the field in the panel if non-whitespace characters have been modified. This helps prevent unnecessary updates and keeps the focus on significant changes.

You can specify which characters to ignore by listing them in the text field located beneath the check box. This field supports InDesign *metacharacters*, which allows you to include special characters like carriage returns and tabs in your list of ignored characters.

<table><thead><tr><th width="124">Code</th><th>Description</th></tr></thead><tbody><tr><td>^i</td><td>Indent to here</td></tr><tr><td>^y</td><td>Right indent tab</td></tr><tr><td>^t</td><td>Tab</td></tr><tr><td>^n</td><td>Forced line break</td></tr><tr><td>^p</td><td>End of paragraph</td></tr><tr><td>^S</td><td>Nonbreaking space</td></tr><tr><td>^-</td><td>Discretionary hyphen</td></tr><tr><td>^f</td><td>Flush space</td></tr><tr><td>^></td><td>En space</td></tr><tr><td>^m</td><td>Em space</td></tr><tr><td>^3</td><td>Third space</td></tr><tr><td>^4</td><td>Quarter space</td></tr><tr><td>^%</td><td>Sixth space</td></tr><tr><td>^/</td><td>Figure space</td></tr><tr><td>^s</td><td>Nonbreaking white space <em>(fixed widths)</em></td></tr><tr><td>^&#x3C;</td><td>Thin space</td></tr><tr><td>^|</td><td>Hair space</td></tr></tbody></table>

### Exclude from Panel Updates

The characters specified in the edit field will be excluded from the field content when using the `Update Panel` menu option. This feature is particularly useful if you need to prevent characters that are specific to InDesign, such as formatting or special control characters, from appearing in your data source content. By listing these characters, you ensure that they are ignored during updates, maintaining the integrity of your data without unwanted InDesign-specific characters.

### Preserve Whitespace on Update

EasyCatalog will attempt to retain the characters listed in the edit field during an `Update Document` operation. This is useful in scenarios where you need to manually insert characters that influence the text formatting in the document, and you do not want these characters to be removed during field updates. However, be aware that preserving the exact position of these characters may not always be possible, especially if the data source undergoes significant changes or requires extensive updates.
