Hello, just to notify that I am css-ifying the tutorials pages, starting
with the index and then going through in order.
If anyone wants to fix up their own tutorial page then let me know to avoid
clashes.
Most (not all) of the changes I've made so far are captured by this bash
script:
##add a document type specifier if missing
haveType=$(awk 'BEGIN{x=0}/DOCTYPE/{x=1}END{print x}' $inFile)
if [ "$haveType" -eq "0" ]
then
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">'
fi
sed -e 's/\t/ /g'\
-e 's/windows-1252/UTF-8/g'\
-e 's/<meta http-equiv="Content-Language" content="en-us">//g'\
-e 's/<img border="0"/<img class="img_left_small"/g'\
-e 's/ \/>/ >/g'\
-e 's/<tr.*>//g'\
-e 's/<\/tr.*>//g'\
-e 's/<center>//g'\
-e 's/<\/center>//g'\
-e 's/<td.*>//g'\
-e 's/<\/td.*>//g'\
-e 's/<table.*>//g'\
-e 's/<\/table.*>//g'\
-e 's/width="[^"]*"//g'\
-e 's/height="[^"]*"//g'\
-e 's/ align="[^"]*"//g'\
-e 's/target="[^"]*"//g'\
-e 's/<font face="Courier New">\([^<]*\)<\/font>/<span
class="inline_code">\1<\/span>/g'\
-e 's/<p><font size="1">\([^<]*\)<\/font>/<p
style="font-size:small">\1/g' \
-e 's/<p><font size="2">\([^<]*\)<\/font>/<p
style="font-size:medium">\1/g' \
-e 's/<p><font size="3">\([^<]*\)<\/font>/<p
style="font-size:large">\1/g' \
-e 's/<font size="1">\([^<]*\)<\/font>/<span
style="font-size:small">\1<\/span>/g' \
-e 's/<font size="1">\([^<]*\)<\/font>/<span
style="font-size:medium">\1<\/span>/g' \
-e 's/<font size="3">\([^<]*\)<\/font>/<span
style="font-size:large">\1<\/span>/g' \
$inFile
plus corresponding additions to amber.css.
Josh
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Tue Jan 07 2014 - 08:00:02 PST