眼鏡市場に眼鏡の交換へ行った。
HyperEstraierのフィルタ改造版を残しておかないと。
/usr/local/share/hyperestraier/filter/estfxmsotohtml

#! /bin/sh
#===========================================
# extfxmsotohtml
# Convert MS-Word, MS-Excel, or MS-PowerPoint into HTML
#===========================================
# set variables
PATH=”$PATH:/usr/local/bin:$HOME/bin:.” ; export PATH
progname=”estfxmsotohtml”
# check arguments
if [ $# -lt 1 ]
then
printf ‘%s: usage: %s infile [outfile]n’ “$progname” “$progname” 1>&2
exit 1
fi
infile=”$1″
outfile=”$2″
if [ -n “$ESTORIGFILE” ] && [ -f “$ESTORIGFILE” ]
then
infile=”$ESTORIGFILE”
fi
# check the input
if [ “!” -f “$infile” ]
then
printf ‘%s: %s: no such filen’ “$progname” “$infile” 1>&2
exit 1
fi
# initialize the output file
if [ -n “$outfile” ]
then
rm -f “$outfile”
fi
# function to output
output(){
if [ -n “$outfile” ]
then
cat >> “$outfile”
else
cat
fi
}
# limit the resource
ulimit -v 262144 -t 10 2> “/dev/null”
# output the result
case “$infile” in
*.[Dd][Oo][Cc])
wvWare --charset=UTF-8 --nographics “$infile” 2> “/dev/null” | output
;;
*.[Xx][Ll][Ss])
xlhtml “$infile” | perl -pe ‘s”

]*>( )*

n””g’ | grep -v ‘

‘ 2> “/dev/null” | output
;;
*.[Pp][Pp][Tt])
ppthtml “$infile” 2> “/dev/null” | output
;;
*)
printf ‘

!!! UNKNOWN FORMAT !!!

n’ | output
;;
esac
# exit normally
exit 0
# END OF FILE

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です