Arbortext Command Language > Functions by Alphabetical Listing > create_copypaste_map
  
create_copypaste_map
create_copypaste_map (source, destination_path[, doc])
This function creates a basic Arbortext Import/Export map template for a specified document source format and an XML document type. You can then use the Arbortext Import/ExportMapTemplate Editor to customize that map for converting content of the given format to the XML markup for the document type. This map is used to convert source formats stored on the Microsoft Windows clipboard when copying and pasting text from other applications to Arbortext Editor.
The source parameter designates the document source format for which you want to generate the map template. The following values are supported:
rtf — Rich Text Format (RTF), the document format supported by several Microsoft applications including Microsoft Word
htm — HTML markup
mif — Maker Interchange Format (MIF), the document format supported by Adobe FrameMaker
txt — Unicode and 8-bit ANSI text
The destination_path parameter is the full path for the generated map template. To be recognized as a customized map for copy and paste conversion, the file must be named according to the following convention: source-doctypename.std, where source_type is the value of the source parameter and doctypename is the name of the specified document's document type. For example: rtf-axdocbook.std
The optional doc parameter designates the document for which you want to generate a map. If you do not supply a doc value, the current document is used.
The function returns 0 on success or an error code on failure. The following error code values are currently supported:
1 — Could not write to map template file
2 — Invalid source parameter value
3 — Invalid doc ID
4 — Invalid document type
Related Topics
Copying and pasting text from other applications
Arbortext Import/Export Overview