- Overview
- Filter Properties
- Processing Details
- Rewritting

Overview

The INX Filter is an Okapi component that implements the Okapi Filter Interface for Adobe InDesign Interchange files. INX is XML-based, but it has been designed in such a way that is impossible to apply generic XML text processes to it, it needs a specific filter. You do not need Adobe InDesign to use this filter.

The specification of INX can be found here: http://partners.adobe.com/public/developer/en/indesign/sdk/working_with_inx_file_format.pdf

This filter has no parameters.

Filter Properties

The properties for the XML Filter are the following:

Property This Filter
INPUTFILE Yes
INPUTSTRING No
BILINGUALINPUT No
TEXTBASED Yes
OUTPUTFILE Yes
OUTPUTSTRING No
ANCILLARYOUTPUT No
XMLOUTPUT No
RTFOUTPUT Yes
USEKEY No
ISINDEMOMODE No

Processing Details

Extracted Text

The filter extracts any text that is in <pcnt> elements and starts with "c_". The text may contain processing instructions, they are set as inline codes.

The flow of the text in <pcnt> elements does not always reflect a correct linguistic flow: sentences may get split. Because of the structure of the INX file that requires to preserve all information to be read back correctly, no effort is made to re-structure the flow of the text.

Input Encoding

The filter uses the XML encoding declaration mechanism to guess automatically the encoding of the input file:

The encoding defined by the user in the call to the filter is not used at all.

Output Encoding

INX files are in UTF-8. This is enforced and the encoding specified by the user for the output file is ignored.

Rewriting

When writing out the processed XML document, the filter may make some changes to the document: