Consider a *NIX executable,
dvi2rtf, whose contents are:
#!/bin/sh TMPX=`mktemp /tmp/dvi2rtf.XXXXXX` dvitty $1 $TMPX # CTAN txt2rtf $TMPX $2 # CTAN, in rtfutils
If my head is working this morning and the right executables are on the PATH, this clobbers the second argument with an RTF file whose text contents will roughly correspond to those of the dvi file named by the first argument.
Such a program doesn't deserve the filename dvi2rtf, since it makes no attempt to preserve the formatting of the DVI file; Cf. Q#1621885: How to turn a dvi to tex. RTF's
\wpsp can allow rtf to handle horizontal space similarly to DVI; RTF's notion of code pages is similar to how DVI handles fonts: maybe it is possible to handle other tricky features of dvi, such as vertical space?
Question: Is there such a program that attempts to preserve layout, however flaky? And if not, are there the RTF primitives to write a converter in a reasonable way?