[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: library for parsing RTF

Subject: Re: library for parsing RTF
From: Maurice Mengel <mauricemengel@xxxxxxxxx>
Date: Wed, 30 Jun 2010 09:01:29 +0200
Re:  library for parsing RTF
And there are many versions of the RTF specification, some of which
seem in regular use. My impression is that the differences between
specifications add the Microsoft typical non-trivial complexity to

Thanks for the link to rtf2xml. This looks good.

On Tue, Jun 29, 2010 at 9:51 PM, Kevin Grover <kevin@xxxxxxxxxxxxxxx> wrote:
> On Sun, Jun 27, 2010 at 16:07, Andriy Gerasika
> <andriy.gerasika@xxxxxxxxx> wrote:
> >>
> >> For a language as rich as RTF, regular expressions are not going to get
> >> you all that far: they are probably only suitable for writing the
> >> lexical analyzer (or tokenizer).
> >>
> >
> > RTF syntax is not that complex for requiring BNF parser.
> >
> > assuming the following RTF:
> > {\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard
> > This is some {\b bold} text.\par
> > }
> >
> > it can be easily converted w/ regular expressions to something like:
> >
> > This is some <g><b/>bold</g> text.<par/>
> > </g>
> >
> > where "g" equals to RTF's curly braces(group) and "sc" to semicolon in
> >
> > not sure if BNF parser will produce something better...
> >
> This seems about as useful as a regex C compiler, that compiles
> B  main() { printf ("Hello world!\n"); }
> and _nothing_ else.
> Just because you can make an regex for _one instanace_ of a grammer
> does not mean that you can (easily) use regexs to parse a generic
> format. B RTF is generic - there are MANY valid ways to say similiar
> things in RTF.

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.