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

rtf-grimoire

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

#2300 in Parser implementations

Download history 4/week @ 2024-01-08 21/week @ 2024-01-22 10/week @ 2024-01-29 8/week @ 2024-02-05 25/week @ 2024-02-26 11/week @ 2024-03-04 16/week @ 2024-03-11

52 downloads per month
Used in panduck-core

MIT license

1MB
786 lines

rtf-grimoire

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.

Dependencies