Adding paragraph styles
When converting existing documents to rtftohtml you often get a lot of
warning message telling you that some paragraph styles are unknown. Now you can
either
- despair (don't do this, there's no need to),
- ignore the messages: this may work when only the text of the paragraph is
of interest, since rtftohtml assumes the "Standard" paragraph style when
encountering one it does not know,
- adjust the RTF document to use only paragraph styles which rtftohtml
understands by default (these are listed in the file html-trans
in section .PMatch),
- add your own paragraph style to rtftohtml's library file
html-trans.
To add a new paragraph style, simply go to the .PMatch
table contained in the file html-trans and add an entry to the end. Put the
name of the paragraph style (quoted), the nesting level (usually zero) and the
name of the .PTag
entry that should be used.