Xref: utzoo comp.text.desktop:1358 comp.text:7465 comp.sys.dec:4331 comp.unix.ultrix:5059 Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!swrinde!ucsd!pacbell.com!att!bu.edu!purdue!haven!decuac!bacchus.pa.dec.com!hollie.rdg.dec.com!ryn.esg.dec.com!uninet!uninet.dec.com!morris From: morris@uninet.dec.com (Tom Morris) Newsgroups: comp.text.desktop,comp.text,comp.sys.dec,comp.unix.ultrix Subject: Re: Importing documents in DECwrite / FrameMaker Message-ID: <1990Oct24.115925@uninet.dec.com> Date: 24 Oct 90 11:58:12 GMT References: <1990Oct3.184114.22869@Matrix.COM> Sender: news@uninet.vbo.dec.com Reply-To: morris@casee.enet.dec.com Followup-To: comp.text.desktop Distribution: comp Organization: Digital Equipment Corporation, Valbonne, France Lines: 102 Several weeks ago Johan Vromans asked about labor efficient ways to import text from other text processing and desktop publishing tools into DECwrite, preserving style element tagging. (article <1990Oct3.184114.22869@Matrix.COM>) |> What I need is a way to tell DECwrite that it must apply specific |> styles to the paragraphs while loading the document. (The load |> document is generated automatically and I can control what is |> generated, and how.) I think this can be done with a suitable CDA |> converter, but I don't have any experience with writing one. Jim Gettys already suggested checking out the CDA Converter Library, but I recently received some more detailled instructions explaining exactly how to do this which I thought would be worth passing along. The specific instructions are for importing text from Interleaf, but this should generalize to other formats which contain explicit markup. These instructions were created by a publications consulting group here at Digital. They offer a wide variety of services that may be of use to folks publishing problems, so I've included contact information for them at the end of this post. Here are the instructions from Dan Dube of the Customer Publications Consulting group: -- Begin Quote -- "The process I established for converting Interleaf text into DECwrite is listed below: Converting Interleaf text into DECwrite 1) Save your Interleaf document in INTERLEAF ASCII format. (This is basically an ASCII file with Interleaf markup.) The beginning of this file contains information about each component in the document (typeface, leading, tabs, etc.) 2) Use the information from the Interleaf ASCII file to create a corresponding template in DECwrite. You must create a corresponding DECwrite element for each Interleaf component. Save this DECwrite template with a .DOC_STYLE file extension. 3) EXPORT this document to AFS format. (NOTE: You *must* have CDA Converter Library installed on your system to do this.) This will create an AFS style reference file that you can use later. 4) In Interleaf, open a document you wish to convert. At the beginning of each section of text in the document, add the component name in angle brackets. For example, if you have a component named "para", insert at the beginning of the text of that component. At the end of the text of that component, insert the same tag, with a backslash before the tag name. For example, at the end of the "para" component, insert . (This is similar to an ending tag in VAX DOCUMENT.) You need to do this for your entire Interleaf document. 5) Once you have completed tagging the Interleaf document, use the Interleaf STRIPFILT procedure to remove all of the Interleaf markup. This will leave you with a tagged ASCII file. 6) You need to add a few commands to this file: - at the top, add afs$filename.ddif (copy this line from the AFS file you exported from DECwrite) - the next line, add this command: - at the bottom, add this command: 7) Open a new DECwrite file. When you are prompted for a style file, choose NONE. 8) Import (in AFS format) the tagged ASCII file you created from Interleaf. After you've imported the file, very little cleanup work should be required. Each block of text should be a separate element with the correct formatting information. --End Quote-- --Begin short advertisment-- The folks that created these instructions do consulting on all aspects of publications from planning to writing to production. Their advertising blurb says that they know about: on-line documentation, user interface design, electronic publishing, internationalization, Digital's Compound Document Architecture, hypermedia, demand print, and electronic film mastering. For more information, contact one of the following people: Karen Andersen, +1 603-884-7591 John Franzosa, +1 603-884-5363 Carolyn Haneke, +1 206-952-0605 Polly Prescott, +1 603-884-1535 --End advertisment-- -- Tom Morris morris@casee.enet.dec.com Digital Equipment, Centre Technique Europe S.A.R.L DTN 828-5729 B.P. 129 - Sophia Antipolis Tel. +33 92 95 57 29 06561 Valbonne Cedex - France Fax +33 93 65 41 58