# Script to convert .doc file into a presentable ASCII form # # This is essentially a copy of an old file from the HOL88 distribution. /^\\KEYWORDS/,/^ *$/d /^\\LIBRARY/,/^ *$/d s/\\#/#/g s/\\char'136/^/g s/\\char'056/./g s/\\char'100/@/g s/{{/<<<<<>>>>>/g s/{//g s/}//g s/^{\\verb%[ ]*$/\\begin{verbatim}/g s/^%}[ ]*$/\\end{verbatim}/g /^\\DOC.*$/d /^\\TYPE/s/^\\TYPE[ ]*// /^\\BLTYPE.*$/d /^\\ELTYPE.*$/d s/^\\noindent[ ]//g /\\SYNOPSIS.*/a\ s/^\\SYNOPSIS[ ]*$/SYNOPSIS/g /\\CATEGORIES.*/a\ s/^\\CATEGORIES[ ]*$/CATEGORIES/g /\\DESCRIBE.*/a\ s/^\\DESCRIBE[ ]*$/DESCRIPTION/g /\\FAILURE.*/a\ s/^\\FAILURE[ ]*$/FAILURE CONDITIONS/g /\\EXAMPLE.*/a\ s/^\\EXAMPLE[ ]*$/EXAMPLES/g /\\USES.*/a\ s/^\\USES[ ]*$/USES/g /\\COMMENTS.*/a\ s/^\\COMMENTS[ ]*$/COMMENTS/g s/^\\SEEALSO[ ]*$/SEE ALSO/g /\\ENDDOC.*/d s/<<<<<>>>>>/}/g s/\\begin{itemize}/---------/ s/\\end{itemize}/---------/ s/\\item/ */ s/{\\em \([a-z]*\)}/*\1*/