#tokenizer #rich #document #text-format #editor #text-file #rtf


A Rich Text File (RTF) document tokenizer. Useful for writing RTF parsers.

4 releases

0.2.1 Apr 10, 2023
0.2.0 Feb 6, 2023
0.1.1 Feb 25, 2019
0.1.0 Feb 24, 2019

#2417 in Parser implementations

35 downloads per month
Used in panduck-core

MIT license

786 lines


rtf-grimoire is a Rich Text Format (RTF) document tokenizer, intended to enable the creation of full RTF parsers.

It was written based on the RTF Specification, which unfortunately comes under an unfriendly license that doesn't allow redistribution, but may be freely downloaded from Microsoft.

An example parser based on rtf-grimoire may be found on [my github] (https://github.com/compenguy/rtf2text). It has been tested with a wide range of rtf files from a variety of text editors with great success so far.