RTF linter wanted
Asked Answered
H

2

15

Does anyone know of a linter for RTF files?

I am writing an simple RTF export tool for a word processor. I've got to the stage where my generated files now load into OpenOffice and seem to work --- except I've just discovered that if I edit it from within OpenOffice, save it, and the load it back into OpenOffice, it mysteriously changes. My hypothesis is that my style sheet and list table aren't laid out properly and it's producing strangely deformed datastructures inside OpenOffice.

I'd really like a tool that will look at my RTF file, match it against the spec, and tell me what I'm doing wrong...

I'm on a Linux environment, but this is a cross platform app so I'm willing to use Windows tools as well if anyone has one.

Hutch answered 29/5, 2011 at 23:5 Comment(6)
Google gave a number of hits on "rtf syntax checker". "rtf validator" is another good search term.Particularism
Yes, already done that --- unfortunately all the hits are either spam farms or queries about whether an RTF syntax checker exists. Hence my desire to actually ask a human.Hutch
Incidentally, I know this is years later, but I'd still love to find one of these.Hutch
Still years later. Still want one.Hutch
It's 2020. I assume nodbody has found one yet?Effortless
Nope, nothing yet. I was going to post another reminder in a couple of years to maintain my schedule.Hutch
P
4

@David, you're quite right that most of the search links are terrible. After a bit of looking, I found a page by the author of the RTF Pocket Guide called About RTF. See the section on Useful RTF Links.

Caveat: I have no experience with any of these tools.

Particularism answered 29/5, 2011 at 23:34 Comment(1)
Amazingly in 2023 those links still work. Thank you!Haiku
C
1

(I know this is old but for posterity...)

My experience with OpenOffice has mostly been related to the native file format, but my short experience thus far with RTF is the same.

OpenOffice produces "bloated" files with a great number of default styles and formats. My tools produce "cruft-free" files with the minimum information to specify the document. When one of my files is opened in OpenOffice and then saved again, it adds the information that I consider unnecessary back in.

The document appears unchanged to the user, but the underlying file is much longer.

Without seeing your documents or having more details, it may be that your documents are perfectly valid but simply don't have the extra stuff that OpenOffice wants. It's probably not necessary for you to change anything, unless you're seeing problems when the documents are used.

Clayclaybank answered 16/2, 2018 at 17:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.