Dec 092017
 
C source code to parse RTF files, from Internet.
File RTFPARSE.ZIP from The Programmer’s Corner in
Category C Source Code
C source code to parse RTF files, from Internet.
File Name File Size Zip Size Zip Type
CHANGES-.05 4302 1878 deflated
CHANGES-.06 2676 1330 deflated
CHANGES-.06A 100 75 deflated
CHANGES-.07 1848 945 deflated
CHANGES-.07A 238 144 deflated
IMAKEFIL 2366 863 deflated
MAKEFILE 12077 3410 deflated
NOTES 2616 1105 deflated
NWIDTH.TRF 386 195 deflated
PORTING 1482 767 deflated
READER.C 42162 11215 deflated
README 2798 1377 deflated
RTF-MISC.MS 7454 3094 deflated
RTF.H 17722 5037 deflated
RTF.MS 26284 8888 deflated
RTF2NULL.C 1165 655 deflated
RTF2TEXT.C 5086 1999 deflated
RTF2TROF.C 24380 7132 deflated
RTF2TROF.H 7540 2350 deflated
RTF2TROF.MS 22219 8089 deflated
RTFDIAG.C 2749 1146 deflated
RTFINDEN.C 1827 865 deflated
RTFSKEL.C 17233 3680 deflated
RTFWC.C 2605 1119 deflated
THINKCNO 1316 695 deflated
TRF-CHAR.C 8872 2672 deflated
TRF-FLUS.C 27266 7879 deflated
TRF-NWID.C 1892 820 deflated
TRF-STAC.C 6858 2359 deflated
TRF-TABL.C 5910 1870 deflated

Download File RTFPARSE.ZIP Here

Contents of the README file


RTF-stuff, Release 1.07
15 Jul 93Paul [email protected]

This distribution contains source and documentation [sic] for a simple
RTF (Rich Text Format) translation tool. Files in this format can be
produced with, e.g., Microsoft Word, or on NeXT machines.

If you use the Imakefile, you must use imake and the WRPRC configuration
files to generate the Makefile. If you want to skip that and just use
the existing Makefile you will likely have to edit some of the make
variable definitions. Use "make -n" and "make -n install" to see what
will happen on your machine first!

Documentation that is in troff format should be formatted with the -ms
macros.

The WRPRC imake configuration file distribution is available via
anonymous ftp to host ftp.primate.wisc.edu in ~ftp/pub/imake-stuff.

The translators currently available are listed below. Most of them
don't do anything interesting.

rtf2nullRTF -> nothing
rtf2textRTF -> plain text
rtf2troffRTF -> troff
rtfwc"translates" RTF into character, word and paragraph count
rtfdiagRTF diagnostic program, used mainly to test RTF reader
rtfskelRTF translator skeleton, for use in building new translators

Each translator uses a tool which reads an RTF input stream and passes
pieces of it to a writer.

There is also a tool, rtfindent, which reads an RTF file and writes it in
somewhat more readable form. This is helpful when designing a translator,
to see what RTF files look like, but the output should not be fed into
a translator.

Distribution files of interest:

rtf.hRTF header file; include in any source file using
RTF-specific info.
reader.cRTF reader. Must be part of any RTF translator. See the
sample translators for examples of use.
rtfskel.cSkeleton translator. You can rip this apart to use as the
basis for new translators.
PortingSome notes on machine dependencies.

Version History:

20 Jan 91 V1.00. Project conceived.

07 Feb 91 V1.01. First release for FTP on indri.

08 Feb 91 V1.02. Added rtfskel.

08 Feb 91 V1.03. Style reprocessing and built-in destination readers were
actually tried in the balance. And found wanting. Fixed 'em.
Put some actually useful stuff in rtfdiag.

09 Feb 91 V1.04. Renamed rtfAscii class to rtfText. Original name was poor
since character values can be outside ascii range (> 127).

04 Mar 91 V1.05. Lots of changes, most notably that twice as many control
symbols are recognized by the reader. Also some bug fixes. See
"Changes-1.05".

05 Apr 91 V1.06a1. Alpha release of 1.06. See "Changes-1.06". Major
thing is tbl support for rtf2troff.

15 Apr 93 V1.06a3. Released 1.06a3 versions of rtf.h and reader.c. See
Changes-1.06a3

15 Jul 93 V1.07. See Changes-1.07. Most changes relate to recognition of
new symbols by the reader.


 December 9, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)