Command: unrtf

  UnRTF is a moderately complicated converter from RTF to other
  formats. Bugs are known to include paragraph alignment and picture
  storing. The actual version (0.21.5) has problems with ".cfg" but
  works with ".con" instead of ".conf"

Syntax:

  unrtf [--version] [--verbose] [--help] [--nopict|-n] [--noremap]
        [--html] [--text] [--vt] [--latex] [--rtf] [-P config_search_path]
        [-t <file_with_tags>] <filename>

Options:

  --nopict      Disables the automatic storing of embedded pictures
                to the current directory.
  --noremap     Disables charset conversion (currently only works
                for 8-bit charsets).
  --html        Selects HTML output (default).
  --rtf         Selects RTF output. The resulting output will
                often be much smaller than the input.
  --text        Selects plain ASCII text output.
  --vt          Selects text output with VT100 escape codes.
  --latex       Selects output of a LaTeX document.
  --verbose     Prints additional information.
  --quiet       Suppress output of leading comments
  --version     Prints the program version.
  -t tags_file  Specifies the tags output configuration file to be
                used. The command "unrtf -t html" is functionally
                identical to "unrtf --html". The configuration
                files are a simple format. To change the behaviour
                of unrtf, a local copy of a system configuration
                file can be be made and edited. The most complete
                configuration file and hence the best starting
                point is /dev/env/DJDIR/share/unrtf/html.conf.
  -P config_search_path
                Specifies the directories in which the configura-
                tion file for the specified format will be sought.
                The path can be provided as a single directory or a
                list of colon separated directories. The default
                is /dev/env/DJDIR/share/unrtf/ where distributed
                output configuration files are installed.
  /dev/env/DJDIR/share/unrtf/*.conf
                Run time output configuration files.

  /dev/env/DJDIR/share/unrtf/SYMBOL.charmap)
                UTF encoding of the SYMBOL font used in many RTF
                files. Unfortunately the iconv package does not
                include font encodings. The format is identical to
                iconv code page files.
  -h or --help  Shows the help.

Comments:

  - none -

Examples:

  Step 01:
    Install UNRTF via FDIMPLES -> UTILITIES -> UNRTF. As alternative you
    can execute the command (if network is started):
      fdnpkg install unrtf
  Step 02:
    Rename the .cfg files to con:
      ren C:\UTIL\UNRTF\CONF\*.cfg *.con
      cd C:\UTIL\UNRTF
  Now you can use unrtf in two different ways:
  
  -  Create a new file:
      unrtf -P /dev/c/util/unrtf/conf --html > test.htm 
            (Comment: "/dev/c" - NOT "C:\" =Unix style!)
    Press ENTER and then enter a text, e.g. this one:
      This is an example for creating a simple html text.\  (\=line feed)
      Press CTRL-Z and you will see a text in html format.\
      CTRL-Z + ENTER exits

  -  Change an rtf file to an html file:
      unrtf -P /dev/c/util/unrtf/conf --html filename.rtf > filename.htm
            (Comment: "/dev/c" - NOT "C:\" =Unix style!)

See also:

  autoexec.bat/fdauto.bat
  batch file
  fdimples
  fdnpkg

  Copyright © 2004 Zachary Smith, help version 2023 W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.