In case anyone feels like using AbiWord to produce webpages for
AbiSource.com, I've modified the [X]HTML exporter slightly, dropping
styles, adding PHP hooks; also I've adapted some of the PHP code to the
required format.
For an example, see: http://www.abisource.com/~fjf/BUILD.phtml
The attached script may be of some use if anyone feels like trying to
convert the current webpages into readable XHTML for import into AbiWord.
This is designed with www.abisource.com in mind, but I dare say other
sites could use this exporter with their own variants of the 3 PHP scripts.
o new HTML export variant: "AbiWord Web Document (.phtml)" or similar
CVS:----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/wp/impexp/xp/ie_exp_HTML.cpp
CVS: src/wp/impexp/xp/ie_exp_HTML.h src/wp/impexp/xp/ie_imp.cpp
CVS: src/wp/impexp/xp/ie_impexp_Register.cpp
CVS:----------------------------------------------------------------------
also x-header.php, x-page-begin.php & x-page-end.php in the website CVS.
Regards, Frank
Francis James Franklin
[EMAIL PROTECTED]
`Medium atomic weights are available: Gold, Lead, Copper, Jet, Diamond,
Radium, Sapphire, Silver and Steel.
`Sapphire and Steel have been assigned...'
#!/bin/sh
tmp_file=/tmp/abi-tidy.$$
rm -f $tmp_file
if test "x$2" = "x" || test "x$1" = "x--help"; then
echo "usage: abi-tidy-sh <input-file> <output-file>"
exit 1
fi
if test -r "$1"; then
echo "<html>" >> $tmp_file
echo " <head>" >> $tmp_file
title=`cat $1 | grep printHeader | sed -e 's/.*printHeader[(]"//g' -e
's/"[)].*//g'`
if test "x$title" != "x"; then
echo " <title>$title</title>" >> $tmp_file
fi
echo " </head>" >> $tmp_file
echo " <body>" >> $tmp_file
cat index.phtml | sed 's/<?/<?php/g' >> $tmp_file
echo " </body>" >> $tmp_file
echo "</html>" >> $tmp_file
tidy -i -asxhtml $tmp_file > "$2"
else
echo "abi-tidy-sh: $1: no such file"
exit 1
fi
rm -f $tmp_file