#!/bin/bash
# jm - 2 Mar 2022 - create html bible pages
# Z-create-HTML.sh.TXT
########################################################################
# for B in `ls Z-test-24-translations-global.TXT`
########################################################################
#
HEADR="Z-Header-w-ISO-charset.TXT"
CLOSE="Z-html-close-tag.TXT"
# for B in `ls *txt`
for B in `ls EN-*txt`
   do 
    cp $HEADR $B.html                           #1 cp header file to HTML
    cat $B >> $B.html                           #2 append content to header info
    sed -i 's/.*/& <p>/g' $B.html               #3 add para tag to txt file
    cat $CLOSE >> $B.html                       #4 add closing tag
   done
########################################################################
# ASV.txt # CN.txt # CZ.txt # D.txt # EN-CN.txt # EN-CZ.txt # EN-D_NL.txt
# EN-D.txt # EN-E_PT.txt # EN-E.txt # EN-FR.txt # EN-HU.txt # EN-IN.txt
# EN-IR.txt # EN-I.txt # EN-J.txt # EN-KR_CN.txt # EN-KR.txt # EN-NL.txt
# EN-PT.txt # EN-RO.txt # EN-RUS.txt # EN-SA_IR.txt # EN-SA.txt # EN-TH.txt
# EN-UKR_RUS.txt # EN-UKR.txt # EN-VN_FR.txt # EN-VN.txt # E.txt # FR.txt
# HU.txt # IN.txt # IR.txt # I.txt # J.txt # KJVc.txt # KJV_strongs.txt
# KR.txt # NL.txt # PT.txt # RO.txt # RUS.txt # SA.txt # TH.txt # UKR.txt
# VN.txt # 
######################################################### 
# Z-Header-w-ISO-charset.TXT
# <html><head><title> Trust Jesus: Read His WORD </title> 
# <META CHARSET="UTF-8"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"> </head> 
# <center><table border="10" width="95%"><tr><td>
######################################################### 
# Z-html-close-tag.TXT
# </td></tr></table></center></html>
#########################################################