|
Warning: this is an htmlized version!
The original is across this link, and the conversion rules are here. |
#######
#
# E-scripts on generating and reading html.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/html.e>
# or at <http://angg.twu.net/e/html.e.html>.
# See also <http://angg.twu.net/emacs.html>,
# <http://angg.twu.net/.emacs[.html]>,
# <http://angg.twu.net/.zshrc[.html]>,
# <http://angg.twu.net/escripts.html>,
# and <http://angg.twu.net/>.
#
#######
# «.html2.0-rfc» (to "html2.0-rfc")
# «.aswedit_debian» (to "aswedit_debian")
# «.wdg-html-reference-etch» (to "wdg-html-reference-etch")
# «.wdg» (to "wdg")
#####
#
# RFC 1866: Hypertext Markup Language - 2.0
# 2001jan18
#
#####
# «html2.0-rfc» (to ".html2.0-rfc")
# (find-rfcfile "rfc1866.txt")
# (find-rfcfile "rfc1866.txt")
# (find-rfcfile "rfc1866.txt" " [SGML]")
# (find-rfcfile "rfc1866.txt" "9.7.2. ISO Latin 1 Character Entity Set")
# (find-lynxfile "WWW/Library/Implementation/HTMLDTD.c")
# (find-lynxfile "src/LYCharSets.c")
# (find-lynxfile "src/chrtrans/entities.h")
# (find-lynxfile "src/chrtrans/entities.h" "BOX DRAWINGS")
# but the names of the box-drawing chars are for unicode...
#####
#"rfc1866.txt" " [SGML]")
# (find-rfcfile "rfc1866.txt" "9.7.2. ISO Latin 1 Character Entity Set")
# (find-lynxfile "WWW/Library/Implementation/HTMLDTD.c")
# (find-lynxfile "src/LYCharSets.c")
# (find-lynxfile "src/chrtrans/entities.h")
# (find-lynxfile "src/chrtrans/entities.h" "BOX DRAWINGS")
# but the names of the box-drawing chars are for unicode...
#####
#
# html 4.0
# 2004nov07
#
#####
# http://www.w3.org/MarkUp/
# http://www.w3.org/TR/html4/
# http://www.w3.org/TR/1999/REC-html401-19991224/
# http://www.w3.org/TR/1999/REC-html401-19991224/html40.txt
# http://www.w3.org/TR/html401/struct/tables.html
# (find-available "w3-recs")
# (code-c-d "html40" "$S/http/www.w3.org/TR/1999/REC-html401-19991224/")
# (find-html40file "html40.txt")
# (find-html40file "html40.txt" "\nQuick Table of Contents")
# (find-html40file "html40.txt" "\nFull Table of Contents")
# (find-html40file "html40.txt" "\nFull Table of Contents" "11. Tables")
# (find-html40file "html40.txt" "\n11.1 Introduction to tables")
# (find-html40file "html40.txt" "13.7.1" "expressed as percentages")
psne http://www.w3.org/TR/1999/REC-html401-19991224/html40.txt
# (code-c-d "html40" "$S/http/www.w3.org/TR/1999/REC-html401-19991224/")
# (find-html40file "html40.txt" "A. Soria" "rowspan")
# (eeb-define eeb-html eehtml ee-delimiter-hash)
#*
<!-- (eeb-html)
(eev "firefox /tmp/ee.html &")
-->
<TABLE border="1">
<TR><TD>1 <TD rowspan="2">2 <TD>3
<TR><TD>4 <TD>6
<TR><TD>7 <TD>8 <TD>9
</TABLE>
#*
#####
#
# wml-1.6.7
#
#####
rm -Rv /usr/src/wml-1.6.7/
cd /usr/src/
tar -xvzf /snarf/ftp/ftp.engelschall.com/sw/wml/wml-1.6.7.tar.gz
cd /usr/src/wml-1.6.7/
# (find-fline "/usr/src/wml-1.6.7/INSTALL")
rm -Rv /usr/local/wml/
mkdir /usr/local/wml/
./configure --prefix=/usr/local/wml |& tee oc
make |& tee om
make test |& tee omt
#####
#
# asWedit-4.0
#
#####
# (find-fline "/snarf/http/www.advasoft.com/asWedit/asWedit-4.0-i386.linux.tar.gz")
rm -Rv /usr/src/asWedit-4.0
rm -v /usr/local/bin/asWedit
rm -v /usr/local/lib/asWedit.hlp
cd /usr/src/
tar -xvzf /snarf/http/www.advasoft.com/asWedit/asWedit-4.0-i386.linux.tar.gz
ln -s /usr/src/asWedit-4.0/asWedit /usr/local/bin/asWedit
ln -s /usr/src/asWedit-4.0/asWedit.hlp /usr/local/lib/asWedit.hlp
# (find-fline "/usr/src/asWedit-4.0/")
# (find-fline "/usr/src/asWedit-4.0/INSTALL" "app-defaults")
# (find-fline "/usr/src/asWedit-4.0/AsWedit")
# (find-fline "/usr/src/asWedit-4.0/AsWedit" "shortcuts for")
# (find-fline "/usr/src/asWedit-4.0/asWedit.hlp")
# (find-fline "/usr/src/asWedit-4.0/asWedit.hlp" "netscapeCmd")
asWedit -html3 /var/www/showquery.html
edrxnetscape http://www.advasoft.com/asWedit/
cd /snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/
#####
#
# asWedit-4.0 (.deb)
#
#####
cd /snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/
dpkg -i /snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/asWedit-i386.linux_4.0-0.deb
rm -Rv /usr/src/asWedit-4.0
cd /usr/src/
tar -xvzf /snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/emacs-mode-asWedit-4.0.tar.gz
ln -s /usr/src/asWedit-4.0/asWedit_em.hlp /usr/local/lib/asWedit_em.hlp
ln -s /usr/src/asWedit-4.0/AsWedit_em /usr/X11R6/lib/X11/app-defaults/AsWedit_em
# (find-fline "/usr/src/asWedit-4.0/")
# (find-fline "/usr/src/asWedit-4.0/AsWedit_em" "and Emacs bindings")
# (find-fline "/usr/src/asWedit-4.0/asWedit_em.hlp")
# (find-vldifile "aswedit.list")
# (find-fline "/usr/doc/asWedit/")
# (find-fline "/usr/X11R6/lib/X11/app-defaults/AsWedit")
# (find-fline "/usr/X11R6/lib/asWedit.hlp")
asWedit -html3 -emacs /var/www/showquery.html
edrxnetscape http://localhost/showquery.html
cd /usr/X11R6/lib/
cat asWedit.hlp \
| perl -e 'undef $/; $_ = <>; while (m/\n(\~.*\n.*\n)/g) { print $1; }'
#####
#
# asWedit (slink)
# 99oct13
#
#####
# «aswedit_debian» (to ".aswedit_debian")
apti libc5 xlib6
cd /snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/
# (find-fline "/snarf/ftp/sunsite.doc.ic.ac.uk/packages/www/asWedit/")
dpkg -i asWedit-i386.linux_4.0-0.deb
# (find-vldifile "aswedit.list")
# (find-fline "/usr/doc/asWedit/")
# (find-fline "/usr/X11R6/lib/asWedit.hlp")
# (find-fline "/usr/X11R6/lib/asWedit.hlp" "ISINDEX")
# (find-fline "/usr/X11R6/lib/asWedit.hlp" "<ISINDEX> is deprecated")
#####
#
# php3
#
#####
Pgrep m/php3/i |& tee ~/o
# (find-fline "~/o")
pdsc /debian/dists/slink/main/source/web/php3_3.0.5-3.dsc
# (find-php3file "")
# (find-php3file "debian/")
# (find-php3file "debian/postinst" "manually")
apti php3 php3-doc php3-dev
# (find-fline "/etc/apache/httpd.conf" "# LoadModule")
# LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
# (find-vldifile "php3-doc.list")
# (find-vldifile "php3.list")
edrxnetscape /usr/doc/php3-doc/html/manual.html
# What is the center of the docs?
#
cd /usr/doc/php3-doc/html/
ls > ~/o
#
rm -Rv /tmp/w
mkdir /tmp/w/
cd /tmp/w/
wget -r -nc -np -l 60 http://127.0.0.1/doc/php3-doc/html/manual.html
cd /tmp/w/127.0.0.1/doc/php3-doc/html/
ls > ~/o2
#
diff ~/o ~/o2
lynx /usr/doc/php3-doc/html/manual.html
#####
#
# bluefish
#
#####
rm -Rv /usr/src/bluefish-0.3.2/
cd /usr/src/
tar -xvzf $S/http/bluefish.linuxbox.com/download/bluefish-0.3.2.tar.gz
cd /usr/src/bluefish-0.3.2/
./configure |& tee oc
make |& tee om
# (find-fline "/usr/src/bluefish-0.3.2/")
#####
#
# weblint
#
#####
# (find-slink "weblint")
# (find-fline "/usr/doc/weblint/")
# (find-fline "$S/http/www.yahoo.com/Computers_and_Internet/Information_and_Documentation/Data_Formats/HTML/")
#####
#
# css
# 2001oct20
#
#####
<php4> <style type=text/css>
<php4> A:link { text-decoration:none}
<php4> A:visited { text-decoration:none}
<php4> </style>
# (find-shttpfile "www.inf.puc-rio.br/nd/ndeduction.css")
# (find-shttpfile "www.inf.puc-rio.br/nd/program_i.html")
#####
#
# wdg-html-reference: installing it (and the validator) on etch
# 2005mar09
#
#####
# «wdg-html-reference-etch» (to ".wdg-html-reference-etch")
# The package is not at etch, download the deb and install it by hand...
# http://www.debian.org/News/weekly/2005/47/
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=337035
# http://ftp.debian.org/debian/pool/main/w/wdg-html-reference/
# http://ftp.debian.org/debian/pool/main/w/wdg-html-reference/wdg-html-reference_4.0-2_all.deb
sudo dpkg -i \
$S/http/ftp.debian.org/debian/pool/main/w/wdg-html-reference/wdg-html-reference_4.0-2_all.deb
apti wdg-html-validator
wdg-html-reference "debian weekly news"
#####
#
# html 4.01: validators and reference
# 2005mar09
#
#####
# «wdg» (to ".wdg")
# (find-status "wdg-html-reference")
# (find-vldifile "wdg-html-reference.list")
# (find-udfile "wdg-html-reference/")
# (find-status "wdg-html-validator")
# (find-vldifile "wdg-html-validator.list")
# (find-udfile "wdg-html-validator/")
# (find-man "1 validate")
# (code-c-d "wdgref" "/usr/share/doc/wdg-html-reference/reference/")
# (code-c-d "wdg40" "/usr/share/doc/wdg-html-reference/reference/html40/")
# (code-c-d "wdgcss" "/usr/share/doc/wdg-html-reference/reference/css/")
# (find-wdg40w3m "structure.html#doc")
# (find-wdg40w3m "alist.html")
# (find-wdg40w3m "special/span.html")
# (find-wdgreffile "html40/")
# (find-wdgrefw3m "html40/structure.html#doc")
# (find-wdgrefw3m "html40/alist.html")
# (find-wdgrefw3m "html40/special/span.html")
# (find-wdgrefw3m "css/index.html")
# (find-wdgrefw3m "css/structure.html")
# (find-w3m "/usr/share/doc/wdg-html-reference/reference/css/properties.html")
# (find-udw3m "wdg-html-reference/reference/css/properties.html")
# (find-udw3m "wdg-html-reference/reference/html40/structure.html#doc")
file:///usr/share/doc/wdg-html-reference/reference/html40/structure.html#doc
#*
cat > /tmp/foo.html <<'%%%'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>The document title</TITLE>
</HEAD>
<BODY>
<H1>Main heading</H1>
<P>A paragraph.</P>
<P>Another paragraph.</P>
<P><span style="background-color: purple; color: yellow;">text</span></P>
<P><span style="background-color: #FF3300; color: yellow;">text</span></P>
<P><span style="background-color: #FF3300;">text</span></P>
<P><span style="background-color: red;">text</span></P>
<UL>
<LI>A list item.</LI>
<LI>Another list item.</LI>
</UL>
</BODY>
</HTML>
%%%
#*
# (find-wdgrefw3m "html40/alist.html")
# (find-wdgreffile "html40/lists/li.html")
# (find-wdgrefw3m "html40/lists/li.html")
# (find-wdgrefw3m "css/classification/list-style.html")
http://www.ilovejackdaniels.com/css_cheat_sheet.pdf
<table border="0" style="background: #ffda99; border: 1px solid black; padding: 0; margin: 0" cellpadding=0 cellspacing=0><tr><td>
<pre style="background: #dfda99; padding: 4px">[HLIST2 Items:
[HREF http://foo/bar a link]
[HREF http://another/link]
[IT Italic text]
[BF Boldface]
]</pre>
</td></tr></table>
# (find-es "html" "wdg")
# (find-status "iceweasel-webdeveloper")
# (find-vldifile "iceweasel-webdeveloper.list")
# (find-udfile "iceweasel-webdeveloper/")
apti iceweasel-webdeveloper
C-S-s no firefox toggla o CSS
# (find-anggfile "TH/blogme.blogme" "-- 2007apr17, guilherme")
#####
#
# Selectors
# 2007may22
#
#####
# http://www.w3.org/TR/CSS21/selector.html
# XML:
# http://www.eudes.info/
# Local Variables:
# coding: raw-text-unix
# ee-delimiter-hash: "\n#*\n"
# ee-delimiter-percent: "\n%*\n"
# ee-anchor-format: "«%s»"
# End: