home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 10 / PCD10.ISO / dos / dw0078c / readme.txt < prev    next >
Text File  |  1994-06-10  |  19KB  |  463 lines

  1. ======================================================================
  2.            DW0078: WORD PROCESSING FILE CONVERSION UTILITY
  3. ======================================================================
  4.  
  5.  --------------------------------------------------------------------
  6. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  7. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  8. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  9. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  10. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  11. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  12. | accuracy and the use of this Application Note. This Application    |
  13. | Note may be copied and distributed subject to the following        |
  14. | conditions: 1) All text must be copied without modification and    |
  15. | all pages must be included; 2) If software is included, all files  |
  16. | on the disk(s) must be copied without modification (the DOS        |
  17. | utility DISKCOPY is appropriate for this purpose); 3) All          |
  18. | components of this Application Note must be distributed together;  |
  19. | and 4) This Application Note may not be distributed for profit.    |
  20. |                                                                    |
  21. | Copyright 1990-1994 Microsoft Corporation. All Rights Reserved.    |
  22. | Microsoft and the Microsoft logo are registered trademarks of      |
  23. | Microsoft Corporation.                                             |
  24.  --------------------------------------------------------------------
  25.  
  26. WPTOWP is a utility that converts Works, Word, RTF (Rich Text 
  27. Format), and IBM DCA/RFT word processing documents to a different 
  28. format. For example, WPTOWP converts a DCA/RFT document to a Word 
  29. document and vice versa.
  30.  
  31. RUNNING THE WPTOWP CONVERSION PROGRAM
  32. -------------------------------------
  33.  
  34. There are three ways to use the WPTOWP program:
  35.  
  36. 1. You can run the conversion program from within Works 2.0:
  37.  
  38.    a. From the File menu of Works 2.0, choose Convert.
  39.  
  40.    b. Select the file to be converted and choose OK.
  41.  
  42.    c. Select the format and directory for the new file.
  43.  
  44.    d. Type the new filename and choose OK. 
  45.  
  46. 2. You can run the conversion program directly by typing "WPTOWP" 
  47.    (without the quotation marks) at the MS-DOS prompt and 
  48.    following the program instructions. To start the program, do 
  49.    the following:
  50.  
  51.    a. Change to the MS-DOS directory where WPTOWP.EXE resides.
  52.  
  53.    b. At the MS-DOS prompt, type WPTOWP and press ENTER to start the
  54.       conversion program.
  55.  
  56.    After you start the WPTOWP program, follow the instructions and
  57.    menu on the screen. The program prompts you for the input filename,
  58.    output filename, type of conversion, and stylesheet if the
  59.    conversion is Word to RTF or RTF to Word.
  60.  
  61. 3. You can start the program at the MS-DOS prompt by typing "WPTOWP"
  62.    followed by its parameters and pressing ENTER, as follows:
  63.  
  64.       WPTOWP infile outfile /filetype [/o] [/s=filename] [/n] [/q]
  65.  
  66.    For example:
  67.  
  68.       WPTOWP OLD.DOC NEW.DOC /rtf /o /s=TECH.STY /n /q
  69.  
  70.    infile is the input document filename or filenames. Multiple
  71.    filenames are allowed through the use of MS-DOS wildcards (for
  72.    example, *.DOC or LETTER?.DOC).
  73.  
  74.    outfile is the output document filename, or if multiple filenames
  75.    were specified for infile, outfile is either the directory location
  76.    for the newly converted documents, or it is a DOS wildcard
  77.    specification. For example, if infile were *.DOC, a good outfile
  78.    would be *.DCA if you were converting Word documents to DCA/RFT
  79.    documents.
  80.  
  81.    /filetype is the type of conversion being performed. This can be
  82.    /works for Works 2.00, /word for Word 5.00, /rtf for Rich Text
  83.    Format, or /dca for IBM DCA/RFT. Earlier versions of Works and Word
  84.    documents are read and converted by WPTOWP but not written -- that
  85.    is to say, files cannot be converted to one of these formats. Rich
  86.    Text Format (RTF) is primarily used for converting between Word for
  87.    the Macintosh and Word for Windows.
  88.  
  89.    /o means the output file may overwrite an existing file of that
  90.    name.
  91.  
  92.    /s means that a stylesheet of name filename is used in the Word to
  93.    RTF conversion or attached in the RTF to Word conversion. This is
  94.    explained further below in the section on conversion limitations.
  95.  
  96.    /n means "no merge," or don't attempt to translate merge documents
  97.    (indicated by beginning and ending chevron characters) when
  98.    converting from Word for DOS to RTF then to Word for Windows
  99.    fields.
  100.  
  101.    /q means "quiet," or don't display any error messages.
  102.  
  103.  
  104.    All of the slash (/) options (/filetype, /o, /s, /n, /q, and the
  105.    DCA/RFT conversion options) can be put into a WPTOWP.INI file, a
  106.    simple text file with one switch or command per line. The
  107.    WPTOWP.INI file can also have comment lines, which are marked by
  108.    the number sign (#) at the beginning of the line. This file should
  109.    be located in the same directory or on the same floppy disk as the
  110.    WPTOWP program file.
  111.  
  112.  
  113. CONVERSION INFORMATION AND LIMITATIONS
  114. --------------------------------------
  115.  
  116. This section explains certain limitations on conversions between
  117. documents formatted in the Works Word Processor, Word, and IBM
  118. DCA/RFT.
  119.  
  120. All conversions to and from the Works Word Processor use RTF (Rich
  121. Text Format) as an intermediate format. For example, a conversion from
  122. Word for DOS to Works involves two steps:  a conversion from Word to
  123. RTF and a conversion from RTF to Works. The intermediate RTF file is
  124. erased by the conversion program when it is no longer needed. You can
  125. explicitly convert to RTF from Works if you want to preserve the RTF
  126. file.
  127.  
  128. An explicit conversion to RTF format is also the means by which files
  129. can be transferred to and from Word for the Macintosh. There is no
  130. "direct" conversion between Works and Macintosh Word file formats at
  131. this time.
  132.  
  133. Converting Between Word and Works
  134. ---------------------------------
  135.  
  136. When converting from Word to Works, the following conversion
  137. limitations apply:
  138.  
  139. - Only the first header or footer is converted, and it must appear at
  140.   the beginning of the Word division in order to be translated.
  141.  
  142. - Works does not have different right and left headers. If one of the
  143.   two is present in a Word document, it is preserved in the Works
  144.   document. If both are present, the longer of the two, including
  145.   formatting, is preserved.
  146.  
  147. - The initial top and bottom margins in the Word document determine
  148.   the Works document's top and bottom margins. This is also true for
  149.   page size.
  150.  
  151. - All styles are converted to Works as direct formatting.
  152.  
  153. - Graphics are lost when converting to Works.
  154.  
  155. - Side-by-side paragraphs in Word are converted to ordinary paragraphs
  156.   in Works.
  157.  
  158. - Text or graphics positioned with the Format Position command are
  159.   vertically positioned in line when converted to Works.
  160.  
  161. - Tables of contents and index entries are lost when converting to
  162.   Works. However, the generated table of contents or index is
  163.   preserved.
  164.  
  165. - Glossary information and outline structure are lost when converting
  166.   to Works.
  167.  
  168. - When converting from Word to Works, only the first character of a
  169.   user-defined footnote reference marker is converted.
  170.  
  171. - Annotations in Word are converted to footnotes in Works.
  172.  
  173. When converting from Works to Word, the following conversion
  174. limitations apply:
  175.  
  176. - Headers and footers must appear at the beginning of the Works
  177.   document in order to be converted.
  178.  
  179. - Works for DOS allows part of a header to be flush left, part to be
  180.   centered, and part to be flush right. This format is converted to a
  181.   single paragraph in Word (because all headers are paragraphs in
  182.   Word) with tabs separating the parts of the original header.
  183.  
  184. - The &f code in headers and footers is lost when converting to Word.
  185.  
  186. - Tab leaders for default tabs are lost when converting to Word.
  187.  
  188. Conversion to and from Word
  189. ---------------------------
  190.  
  191. - Headers and footers must appear at the beginning of the division in
  192.   the Word document in order to be converted.
  193.  
  194. - Paragraph shading is ignored.
  195.  
  196. - Bold Word borders are translated to thick RTF borders.
  197.  
  198. - Thick RTF borders become bold when converted into Word.
  199.  
  200. - Stylesheet conversion from Word to RTF:
  201.  
  202.   The conversion looks for the stylesheet that was attached to the
  203.   original document. If that stylesheet is found, the stylesheet
  204.   information is converted in the RTF file. (Styles are stored with
  205.   the document in RTF.)  If the stylesheet is not found, you are
  206.   prompted for the pathname of the stylesheet to attach. If you choose
  207.   not to attach a stylesheet (or the stylesheet does not match the
  208.   style information in the Word file), styled text in the original
  209.   Word file becomes direct formatted text in the RTF file.
  210.  
  211. - Stylesheet conversion from RTF to Word:
  212.  
  213.   The conversion prompts you to attach a stylesheet, if desired.
  214.   Styled text in the RTF document becomes direct formatted text in the
  215.   resulting Word document if no stylesheet is attached or if the
  216.   stylesheet does not match the style information in the RTF file.
  217.  
  218. - Graphics conversion from Word to RTF:
  219.  
  220.   Word for DOS includes graphics by specifying a picture "tag," or the
  221.   pathname of the picture file to be included in the document. These
  222.   tags are converted to RTF picture fields. Sizing information is not
  223.   preserved.
  224.  
  225. - Graphics conversion from RTF to Word:
  226.  
  227.   RTF picture fields are converted to Word picture tags. Bitmaps and
  228.   Windows metafiles stored in an RTF file are not converted. Scaling
  229.   and cropping information is not preserved.
  230.  
  231. - Simple merge documents (with DATA, NEXT, and field names) are
  232.   supported in both directions. Other merge instructions (IF, SET,
  233.   ASK, etc.) are not supported.
  234.  
  235. - Word marks merge instructions with left and right chevron
  236.   characters. By default, all left and right chevron characters (ASCII
  237.   174 and 175) are assumed to be part of merge instructions when
  238.   converting Word documents to RTF. To turn this feature off and
  239.   convert chevrons literally, use the /n option in WPTOWP. If WPTOWP
  240.   finds chevrons that it cannot translate into merge instructions, and
  241.   the /n option is not being used, the conversion is halted.
  242.  
  243. - Tables of contents and index entries are converted. However, the
  244.   generated table of contents or index is brought across as simple
  245.   text and should generally be deleted before generating the new table
  246.   of contents or index.
  247.  
  248. - Word page numbering formatted with the Format Division Line-Numbers
  249.   command is converted to RTF only when there is no existing header or
  250.   footer.
  251.  
  252. - Glossary information is not converted.
  253.  
  254. Customizable Font Mapping Between Works and Word
  255. ------------------------------------------------
  256.  
  257. In general, there should not be font mapping problems between Works
  258. and Word provided the same printer driver is used with both documents.
  259. However, you can make your own font mapping tables to override some or
  260. all of the built-in font conversions provided by the WPTOWP for Works
  261. to RTF and RTF to Works.
  262.  
  263. The actual translation of the font names and numbers occurs in the
  264. Works <-> RTF part of the conversion. (The RTF file with the new font
  265. information is then read in by Word.)
  266.  
  267. The translation tables are in the form of two ASCII files: RTF-WWP.DAT
  268. (to map RTF fonts to Works font numbers) and WWP-RTF.DAT (to map Works
  269. font numbers to RTF fonts). The files must be in the same directory as
  270. the document or the converter.
  271.  
  272. The entries in the file map Works font numbers to and from RTF fonts.
  273. The names of fonts are not case sensitive, but the lines in the tables
  274. must run in ascending order by the first character of each line (a-z,
  275. 0-9). Comments can be inserted in the file with the number sign (#),
  276. either at the beginning of a line or after the font mapping entry.
  277.  
  278.    RTF-WWP.DAT
  279.    -----------
  280.  
  281.    To map RTF fonts to Word format, you can create the file RTF-
  282.    PCW.DAT. Each line of the file must be in the following format:
  283.  
  284.       FontName;WorksFontNumber
  285.  
  286.       Example: courier;8
  287.                timesroman;16
  288.  
  289.    The first line in this example changes all RTF characters in
  290.    Courier to Works characters in font 8 (Helvetica). The second line
  291.    converts all RTF characters in Times Roman to Works characters in
  292.    font 16 (Roman a).
  293.  
  294.    A list of all Works font numbers and their meanings appears in the
  295.    font table near the top of every RTF file created from a Works
  296.    source document.
  297.  
  298.    WWP-RTF.DAT
  299.    -----------
  300.  
  301.    To map Works font numbers to RTF fonts and font families, you can
  302.    create the file WWP-RTF.DAT. Each line of the file must be in the
  303.    following format (brackets indicate an optional item):
  304.  
  305.       WorksFontNumber;FontName[,FontFamily]
  306.  
  307.       Example: 8;courier,modern
  308.                16;timesroman,roman
  309.  
  310.    The first line in this example changes all Works characters in font
  311.    8 (Helvetica) into RTF characters in Courier. The second line
  312.    converts all Works characters in font 16 (Roman a) to RTF
  313.    characters in Times Roman.
  314.  
  315. Customizable Font Mapping Between Word and RTF
  316. ----------------------------------------------
  317.  
  318. The same customizable font mapping capability that exists for
  319. conversions between Works and RTF exists for conversions between Word
  320. and RTF. The only difference is that the files are named PCW-RTF.DAT
  321. and RTF-PCW.DAT.
  322.  
  323. Conversions Involving DCA/RFT
  324. -----------------------------
  325.  
  326. Below is a list of features not supported by the conversion to
  327. DCA/RFT:
  328.  
  329. 1. Character Formatting
  330.  
  331.    a. Italic text becomes regular text.
  332.    b. Small caps become regular caps.
  333.    c. Hidden text becomes underlined text.
  334.  
  335. 2. Paragraph Formatting
  336.  
  337.    a. Right aligned text becomes left aligned in versions of
  338.       DisplayWrite prior to v4.2.
  339.    b. Hanging indents do not exist in DCA/RFT. Tabs and indent tabs
  340.       are used to maintain appearance.
  341.    c. Only 0.5, 1, 1.5, 2, 2.5, and 3 line spacing convert to
  342.       DisplayWrite.
  343.  
  344. 3. Division Formatting
  345.  
  346.    a. Snaking columns must be terminated with a hard column break;
  347.       otherwise snaking column text is converted to single column
  348.       text.
  349.    b. Where RTF snaking columns are converted into DCA/RFT multiple
  350.       columns, only consistent line spacing is supported.
  351.    c. Page numbering outside of running heads is not supported.
  352.  
  353. 4. Other
  354.  
  355.    a. Normal and nonbreaking hyphens become required hyphens. Optional
  356.       hyphens become syllable hyphens.
  357.    b. Leading characters for tab stops are not converted.
  358.    c. Merge documents are not supported. All special marks become
  359.       normal text.
  360.    d. Indexes and tables of contents are not supported. All special
  361.       marks become normal text.
  362.    e. Style sheets and glossary files are not converted.
  363.    f. Outlining is not supported.
  364.  
  365. Below is a list of features not supported by the conversion from
  366. DCA/RFT:
  367.  
  368. 1. Document comments are not translated.
  369.  
  370. 2. Lines per inch commands are not supported.
  371.  
  372. 3. Half justification becomes full justification.
  373.  
  374. 4. Page numbering outside of header text is not supported.
  375.  
  376. 5. Merge documents are not supported. All special marks become normal
  377.    text.
  378.  
  379. Conversion Options
  380. ------------------
  381.  
  382. 1. Variant=5520
  383.  
  384.    This switch should be set for conversions from RTF to DCA/RFT in
  385.    the 5520 environment. It tells the conversion to generate some
  386.    different DCA/RFT structures in cases where the DCA/RFT required by
  387.    the 5520 differs from that required by PC DisplayWrite.
  388.  
  389. 2. Tab=CommaTab
  390.  
  391.    The setting of this switch determines the disposition of any
  392.    decimal tabs found in the RTF. The default action is to translate
  393.    RTF decimal tabs into DCA/RFT period tabs. However, especially for
  394.    European versions of word processors that use comma tabs, this
  395.    parameter may be set to translate RTF decimal tabs into DCA/RFT
  396.    comma tabs.
  397.  
  398. 3. StrikeThrough='\'
  399.  
  400.    This switch is used in the RTF to DCA/RFT conversion to set the
  401.    strikethrough character. The default is the hyphen (-).
  402.  
  403. 4. TranslateBeta=Greek
  404.  
  405.    The setting of this switch determines how the ANSI beta character
  406.    is translated. The default action is to translate it into the
  407.    German s-set character (a character in the DisplayWrite Character
  408.    Set). However, you may want to set this character to be translated
  409.    to the Greek beta character (a character in the DisplayWrite Symbol
  410.    Set).
  411.  
  412. DCA/RFT Customizable Font Mapping
  413. ---------------------------------
  414.  
  415. You can create your own font mapping tables to override some or all of
  416. the mappings provided by the conversion. The tables are in the form of
  417. two ASCII files, one for each direction of the conversion. The files
  418. are used to map RTF fonts to and from DCA/RFT GFIDs (Generic Font
  419. Identifiers). The files must be located either in the directory where
  420. the document is located or in the directory where the converter is
  421. located.
  422.  
  423. All RTF font sizes are specified in half-points. The names need not be
  424. capitalized in any particular manner, but the tables must be in
  425. ascending order by the first character of each line (a-z, 0-9).
  426. Comments can be inserted in the file with a number sign (#) either at
  427. the beginning of a line or after the font mapping entry. In
  428. theexamples below, the terms in brackets are optional. A range of
  429. point
  430. sizes or GFIDs can be specified with a hyphen between the two numbers.
  431.  
  432.    RTF-DCA.DAT
  433.    -----------
  434.  
  435.    The file RTF-DCA.DAT can be created for the conversion to use in
  436.    mapping RTF fonts to GFIDs (RTF to DCA/RFT conversion). Each line
  437.    of the file must be in the following format (brackets indicate an
  438.    optional item):
  439.  
  440.       FontName,PointSize[-PointSize]; GFID[,[Width][,Attrib]]
  441.  
  442.       Example: timesroman,0-20;25
  443.                timesroman,24;26
  444.  
  445.    RTF font sizes are specified in half-points.
  446.  
  447.    DCA-RTF.DAT
  448.    -----------
  449.  
  450.    The file DCA-RTF.DAT can be created for the conversion to use in
  451.    mapping GFIDs to RTF fonts (DCA/RFT to RTF conversion). Each line
  452.    of the file must be in the following format (brackets indicate an
  453.    optional item):
  454.  
  455.       GFID[-GFID];FontName,[FontFamily], PointSize
  456.  
  457.       Example: 25;timesroman,roman,20
  458.                26;timesroman,,24
  459.  
  460.    Note that the font family is optional, but the comma preceding it
  461.    is required. Again, all RTF font sizes are specified in half-
  462.    points.
  463.