From 1030dc837b10a03a02a85d5504cbeec168ce49e2 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 03 May 2010 21:53:47 +0000 Subject: Import XaoS r489 (trunk after version 3.5) --- (limited to 'help/hlp2rtf') diff --git a/help/hlp2rtf b/help/hlp2rtf new file mode 100755 index 0000000..a97f2c5 --- /dev/null +++ b/help/hlp2rtf @@ -0,0 +1,74 @@ +#!/bin/sh +echo '{\rtf1 +{\fonttbl +\f0\fswiss Arial; +\f1\froman Times New Roman +\f2\fmodern Courier New; +\f3\fswiss MS Sans Serif; +\f4\froman MS Serif; +} +\deff0 +\ds18 +' + sed ' + s_\\__g + s_'"''"'_"_g + s_``_"_g + s__}_g + s/
/\\par/g + s/
__g + s///g + s///g + s___g + s///g + s///g + s/
/{\\trgraph360\\cellx2880\\cellx10760 \\intbl\\cell/g + s_
_\\cell\\row \\intbl _g + s_
_\\cell _g + s_
_\\cell\\row\\pard}_g + s__}_g + s//{\\f2 /g + s//{\\b >}/g + s///g + s___g + s///g + s___g + s///g + s___g + s/
/\\par{\\qc /g + s_
_\\par}_g + s/]*>/{\\b /g + s__}_g + s//{\\i /g + s__}_g + s/^%%\(.*$\)//g + s/^%\(main\)/\\keepn\ +#{\\footnote \1}\ +#{\\footnote CONTENTS}\ +${\\footnote Contents}\ +K{\\footnote Contents}\ +/g + s/^%\(.[^ ]*\)\(.*$\)/\\page\ +\\keepn\ +#{\\footnote \1\2}\ +${\\footnote \1}\ +K{\\footnote \1\2}\ +/g + s/

$/\\par/g + s/

/\\par /g + s///g + s//{\ +\\par\ +\\b\ +\\fs32\ +\\tab\ +/g + s__}\\par\\pard\\sb150 _g + s_\(.*\)_{\\uldb \2{\\v \1}}_g + s/\(.*\)$/\1 /g + s/ / /g + s/^ *//g + s/ */ /g + ' +echo '}' -- cgit v0.9.1