#!/usr/bin/python
# -*- coding: utf-8 -*-
# --------------------------------------------------
# File Name: html.sh
# Location:
# Purpose:
# Creation Date: 02-08-2017
# Last Modified: Thu, Aug 10, 2017 5:20:12 PM
# Author(s): Mike Stout
# Copyright 2017 The Author(s) All Rights Reserved
# Credits:
# --------------------------------------------------
source ~/.bashrc
web=~/wwwdocs
echo "Contents"
echo "[toc:]"
for a in 1 # Words Speeches
do
#echo "#"
for f in `ls *.png | sort -V `
do
echo $f | cut -d\. -f1 | tr "_" " " | rh fixTitle.hs
echo ""
cp $f $web
chmod a+wrx $web/*
echo "|[eimg:SEE/$f 400]|"
g=`echo $f | sed -e "s/.png/.txt/"`
cat $g | d2u | tr "\n" " "
for ext in _count _tot _prop
do
#echo $ext
g=`echo $f | sed -e "s/.png/${ext}.txt/"`
cat $g | d2u | tr "\n" " "
done
echo "<hr>"
done
done # | tr "\n" " " | tr "#" "\n"