NAPS Home Page NAPS Plugins For Adobe InDesign CS4
COPYFLOW GOLD FOR ADOBE INDESIGN FOR MACINTOSH and WINDOWS

Using XLIFF with CopyFlow Gold for InDesign CS4 & CS5   [4/15/10]

 

Contents

  1. Features and Overview
  2. CopyFlow Gold Preferences
  3. XLIFF format
  4. Installation and CFG Tool
  5. Editing XLIFF in SDL Trados Tag Editor


Features and a Quick Overview Of Using CFG with XLIFF

CopyFlow Gold for InDesign now allows for the simple quick export of all the text in a InDesign document to a standard XLIFF format.

The text segments in the XLIFF file are sorted in a logical page order representing the natural order the text appears in the InDesign document - top to bottom - page by page. All the text of a document can now be roundtripped - including text on Master pages, Off page(pasteboard) items and inline/anchored text.

XLiff files can be opened by most translation friendly editors e.g.,- SDL Trados Tag Editor, Swordfish and others.

XLIFF for CS4 now uses IDML as its skeleton file format. This is the recommend setting. The older INX format is available in CS4 CFG for backward compatability. UPDATE: From version CS4 4.09 forward - only IDML based XLIFF is supported

Quick Overview Of Use: 5 Easy Steps

1. Open CFG Tool from CopyFlow Gold menu and set the Export Format to XLIFF using CFG Preferences.

2. Set XLIFF Preferences (see detail below) and Save.

3. Click Export, you will be prompted to specify a directory in which the XLIFF file will be saved.

Translate XLIFF files with your favorite tools.

4. Click import and select translated XLIFF file

5. After a few minutes a document with the translated text will be opened on your desktop.


Demo:   Demos are available for download. The demo is limited to 10 days and the export of 10 "stories" per document.

Purchase:   Online   OR   via Fax


CFG XLIFF Preferences

XLIFF Prefs

Source Language - set the language of the source text. The code which appear to the right of the language menu is written into the XML file as the source attribute. The language menu is created from an editable XML file in the NAPS directory, named Languages.xml, so codes and languages can be added.

Target Language - set the language of the translated text.

On XLIFF Export Copy Source Text To Target - Set this option for use with SDL Trados Tag Editor 2007.

Save Imported Doc With Target Language Name - After import of the translated XLIFF file a new document is created from the skeleton file and filled with the translated text. If this option is set the document is automatically names and saved with a language code suffix in the Translated Documents directory.

Skeleton Uses IDML - (CS4 only) The most reliable setting is to turn 'Skeleton uses IDML' on. If this is off, the XLIFF export uses an (older form) INX Skeleton file.UPDATE: From version 4.09 forward - only IDML based XLIFF is supported

Do Character Conversion - (CS 4 only, INX skeleton only) If checked converts the InDesign paragraph and line break characters to visible marks in the XLIFF text file using : ¶ and ¬ marks. Best kept ON

XLIFF File Extension - Set the file extension of the output XLIFF file.

Set Translated Document Directory - Establish the directory for documents saved with Save Imported option above.

Show Skeleton File Directory - Displays the contents of the skeleton file directory. Skeleton files are intermediate files used in the roundtripping process.

   

 

 

CFG XLIFF Format Details

If we view the output XLIFF in a basic XML editor we can see the structure and information embedded in the file.

The <file> tag at the top of the file lists the source and target langauges, the exporting application CFG, its version and the date and time the export was made.

The <skl> tag records the location of the "skeleton" file created in the background by CopyFlow Gold. This file is needed at Import time to recreate the InDesign file in the new language. Once a project is completed the excess skeleton files can be deleted.

Each <group> tag represent a text flow( a.k.a a story) - the text flow is broken into segments (where formatting changes occur). The CFG XLIFF group has an additional attribute "position" . Position can be "Page", "MasterSpread", or "Pasteboard". The normal on page body text will be identified as "page" and he text will appear in virtually the same order as it appears in the document. Text is also sorted by position in the order: "Page", "MasterSpread", and finally "Pasteboard". Groups all have unique IDs.

Each segment of the text flow is called a <trans-unit>. These elements in turn contain the text segments for the source and the target language (the translation). There are two types of trans-units exported by CopyFlow Gold: 'CharacterSegments' and 'Enumerations'. CharacterSegments are normal runs of translatable text. 'Enumerations' are special sequences of 4 characters : e.g. 'SApn' for special InDesign character sequences: e.g, Automatic Page Number markers, etc. These are not translatable.

xliff xml tags

The XLIFF file format (from version 4.2) begins with the stories (text runs) from the document pages, then the stories from the Master Pages. This is followed by the document specific text elements, such as: custom text variables, Contents and Section heads, index title, index topics, etc.

Editing XLIFF in SDL Trados Tag Editor

The XLIFF files can be opened directly in SDL Trados 2007 Tag Editor. Be sure to set the XLIFF Preference "On XLIFF Export Copy Source Text To Target" before exporting the text. Tag Editor breaks the target segment into a source and target portion for editing purposes.

Tag Edit

Return to: "CopyFlow Gold For InDesign CS4"