[tz] [PROPOSED] Switch tz-link.htm, tz-art.htm to HTML 5

Paul Eggert eggert at cs.ucla.edu
Sun Sep 24 06:17:21 UTC 2017


* Makefile (check_web): Just check tz-how-to.html,
since nsgmls does not grok HTML 5.
* tz-art.htm, tz-link.htm: Switch to HTML 5.
* tz-link.htm: Remove old Dublin Core stuff, since it didn’t
validate and was probably not that useful anyway.
* tz-how-to.html: Leave this as HTML 4.01, as going to 5 would
require CSS.  Add charset directive so that it validates even if
the web server supplies no charset.
---
 Makefile       |  6 ++++--
 tz-art.htm     | 38 ++++++++++++++++++--------------------
 tz-how-to.html |  5 ++++-
 tz-link.htm    | 34 ++++++++++------------------------
 4 files changed, 36 insertions(+), 47 deletions(-)

diff --git a/Makefile b/Makefile
index 6be254b..fa755ad 100644
--- a/Makefile
+++ b/Makefile
@@ -674,8 +674,10 @@ check_tables:	checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
 check_tzs:	$(TZS) $(TZS_NEW)
 		diff -u $(TZS) $(TZS_NEW)
 
-check_web:	$(WEB_PAGES)
-		$(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES)
+# This checks only the HTML 4.01 strict page.
+# To check the the other pages, use <https://validator.w3.org/>.
+check_web:	tz-how-to.html
+		$(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) tz-how-to.html
 
 # Check that tzdata.zi generates the same binary data that its sources do.
 check_zishrink: tzdata.zi zic leapseconds $(PACKRATDATA) $(TDATA)
diff --git a/tz-art.htm b/tz-art.htm
index d0d6c4d..d7a27ae 100644
--- a/tz-art.htm
+++ b/tz-art.htm
@@ -1,9 +1,7 @@
-<!DOCTYPE html
-PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/strict.dtd">
-<html>
+<!DOCTYPE html>
+<html lang="en">
 <head>
-<meta http-equiv="Content-type" content='text/html; charset="UTF-8"'>
+<meta charset="UTF-8">
 <title>Time and the Arts</title>
 </head>
 <body>
@@ -226,7 +224,7 @@ arranged by Russ Long and Karrin Allyson"</td></tr>
 <tr><td>ADO Rating</td><td>1 star</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/i-didnt-know-about-you-mw0000618657">AMG Rating</a></td><td>4 stars</td></tr>
 <tr><td>Penguin Rating</td><td>3.5 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Kevin Mahogany</td></tr>
 <tr><td>CD</td><td>Double Rainbow</td></tr>
 <tr><td>Copyright Date</td><td>1993</td></tr>
@@ -241,7 +239,7 @@ Lewis Nash, drums</td></tr>
 <tr><td>ADO Rating</td><td>1.5 stars</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/double-rainbow-mw0000620371">AMG Rating</a></td><td>3 stars</td></tr>
 <tr><td>Penguin Rating</td><td>3 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Joe Williams</td></tr>
 <tr><td>CD</td><td>Here's to Life</td></tr>
 <tr><td>Copyright Date</td><td>1994</td></tr>
@@ -255,7 +253,7 @@ Telarc, "Triple Play" (CD-83461)</td></tr>
 <tr><td>ADO Rating</td><td>black dot</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/heres-to-life-mw0000623648">AMG Rating</a></td><td>2 stars</td></tr>
 <tr><td>Penguin Rating</td><td>3 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Charles Fambrough</td></tr>
 <tr><td>CD</td><td>Keeper of the Spirit</td></tr>
 <tr><td>Copyright Date</td><td>1995</td></tr>
@@ -288,7 +286,7 @@ Tom Waits' "Purple Avenue"</td></tr>
 <tr><td>ADO Rating</td><td>2.5 stars</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/blame-it-on-my-youth-mw0000274303">AMG Rating</a></td><td>3 stars</td></tr>
 <tr><td>Penguin Rating</td><td>unrated</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Milt Hinton</td></tr>
 <tr><td>CD</td><td>Old Man Time</td></tr>
 <tr><td>Copyright Date</td><td>1990</td></tr>
@@ -319,7 +317,7 @@ is available.</td></tr>
 <tr><td>ADO Rating</td><td>3 stars</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/old-man-time-mw0000269353">AMG Rating</a></td><td>4.5 stars</td></tr>
 <tr><td>Penguin Rating</td><td>3 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Alan Broadbent</td></tr>
 <tr><td>CD</td><td>Pacific Standard Time</td></tr>
 <tr><td>Copyright Date</td><td>1995</td></tr>
@@ -333,7 +331,7 @@ Frank Gibson, Jr., drums</td></tr>
 <tr><td>ADO Rating</td><td>1 star</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/pacific-standard-time-mw0000645433">AMG Rating</a></td><td>4 stars</td></tr>
 <tr><td>Penguin Rating</td><td>3.5 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Anthony Braxton/Richard Teitelbaum</td></tr>
 <tr><td>CD</td><td>Silence/Time Zones</td></tr>
 <tr><td>Copyright Date</td><td>1996</td></tr>
@@ -347,7 +345,7 @@ Leroy Jenkins, violin and miscellaneous instruments;
 Richard Teitelbaum, modular moog and micromoog synthesizer</td></tr>
 <tr><td>ADO Rating</td><td>black dot</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/silence-time-zones-mw0000595735">AMG Rating</a></td><td>4 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Charles Gayle</td></tr>
 <tr><td>CD</td><td>Time Zones</td></tr>
 <tr><td>Copyright Date</td><td>2006</td></tr>
@@ -357,7 +355,7 @@ Richard Teitelbaum, modular moog and micromoog synthesizer</td></tr>
 <tr><td>Personnel</td><td>Charles Gayle, piano</td></tr>
 <tr><td>ADO Rating</td><td>1 star</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/time-zones-mw0000349642">AMG Rating</a></td><td>4.5 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>The Get Up Kids</td></tr>
 <tr><td>CD</td><td>Eudora</td></tr>
 <tr><td>Copyright Date</td><td>2001</td></tr>
@@ -366,7 +364,7 @@ Richard Teitelbaum, modular moog and micromoog synthesizer</td></tr>
 <tr><td>Total Time</td><td>65:12</td></tr>
 <tr><td>Notes</td><td>Includes the song "Central Standard Time." Thanks to Colin Bowern for this information.</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/eudora-mw0000592063">AMG Rating</a></td><td>2.5 stars</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>Coldplay</td></tr>
 <tr><td>Song</td><td>Clocks</td></tr>
@@ -378,7 +376,7 @@ Richard Teitelbaum, modular moog and micromoog synthesizer</td></tr>
 Grammy Awards. Co-written and performed by Chris Martin,
 great-great-grandson of DST inventor William Willett. The song's first
 line is "Lights go out and I can't be saved".</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>Jaime Guevara</td></tr>
 <tr><td>Song</td><td><a
@@ -390,7 +388,7 @@ hora es</a></td></tr>
 (1992–3). Its lyrics include "Amanecía en mitad de la noche, los
 guaguas iban a clase sin sol" ("It was dawning in the middle of the
 night, the buses went to class without sun").
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>Irving Kahal and Harry Richman</td></tr>
 <tr><td>Song</td><td>There Ought to be a Moonlight Saving Time</td></tr>
@@ -401,7 +399,7 @@ and many others. The phrase "Moonlight saving time" also appears in
 the 1995 country song "Not Enough Hours in the Night" written by Aaron
 Barker, Kim Williams and Rob Harbin and performed by Doug
 Supernaw.</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>The Microscopic Septet</td></tr>
 <tr><td>CD</td><td>Lobster Leaps In</td></tr>
@@ -413,7 +411,7 @@ Supernaw.</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/lobster-leaps-in-mw0000794929">AMG Rating</a></td><td>3.5 stars</td></tr>
 <tr><td>ADO Rating</td><td>2 stars</td></tr>
 
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>Bob Dylan</td></tr>
 <tr><td>CD</td><td>The Times They Are a-Changin'</td></tr>
@@ -424,7 +422,7 @@ Supernaw.</td></tr>
 <tr><td><a href="http://www.allmusic.com/album/the-times-they-a-changin-mw0000202344">AMG Rating</a></td><td>4.5 stars</td></tr>
 <tr><td>ADO Rating</td><td>1.5 stars</td></tr>
 <tr><td>Notes<td>The title song is also available on "Bob Dylan's Greatest Hits" and "The Essential Bob Dylan."</td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 
 <tr><td>Artist</td><td>Luciana Souza</td></tr>
 <tr><td>CD</td><td>Tide</td></tr>
@@ -437,7 +435,7 @@ Supernaw.</td></tr>
 <tr><td>Notes<td>Includes the song "Fire and Wood" with the lyric
 "The clocks were turned back you remember/Think it's still November."
 </td></tr>
-<tr><td> </td></tr>
+<tr><td> </td><td></td></tr>
 <tr><td>Artist</td><td>Ken Nordine</td></tr>
 <tr><td>CD</td><td>You're Getting Better: The Word Jazz Dot Masters</td></tr>
 <tr><td>Copyright Date</td><td>2005</td></tr>
diff --git a/tz-how-to.html b/tz-how-to.html
index 91a0d48..6007c5e 100644
--- a/tz-how-to.html
+++ b/tz-how-to.html
@@ -2,7 +2,10 @@
 	PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html>
-<head><title>How to Read the tz Database</title></head>
+<head>
+<title>How to Read the tz Database</title>
+<meta http-equiv="Content-type" content='text/html; charset="UTF-8"'>
+</head>
 <body>
 <h2>How to Read the <a href="https://en.wikipedia.org/wiki/Tz_database">tz
 Database</a> Source Files</h2>
diff --git a/tz-link.htm b/tz-link.htm
index 3cfa5c5..09edf0b 100644
--- a/tz-link.htm
+++ b/tz-link.htm
@@ -1,22 +1,8 @@
-<!DOCTYPE html
-	PUBLIC "-//W3C//DTD HTML 4.01//EN"
-	"http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
+<!DOCTYPE html>
+<html lang="en">
+<head>
 <title>Sources for time zone and daylight saving time data</title>
-<link rel="schema.DC" href="https://purl.org/DC/elements/1.1/">
-<meta http-equiv="Content-type" content='text/html; charset="UTF-8"'>
-<meta name="DC.Title"
- content="Sources for time zone and daylight saving time data">
-<meta name="DC.Creator" content="Eggert, Paul">
-<meta name="DC.Contributor" content="Olson, Arthur David">
-<meta name="DC.Date" content="2017-09-23">
-<meta name="DC.Description"
- content="Sources of information about time zones and daylight saving time">
-<meta name="DC.Identifier"
- content="https://www.iana.org/time-zones/repository/tz-link.htm">
-<meta name="Keywords"
- content="database,daylight saving,DST,time zone,timezone,tz,zoneinfo">
+<meta charset="UTF-8">
 </head>
 <body>
 <h1>Sources for time zone and daylight saving time data</h1>
@@ -279,7 +265,7 @@ href="https://tools.ietf.org/html/rfc7808">TZDIST</a>
 (Internet <abbr>RFC</abbr> 7808), a time zone data distribution service,
 along with <a href="https://tools.ietf.org/html/rfc7809">CalDAV</a>
 (Internet <abbr>RFC</abbr> 7809), a calendar access protocol for
-transferring time zone data by reference. The draft <a name="TZDIST-Geolocate"
+transferring time zone data by reference. The draft <a id="TZDIST-Geolocate"
 href="https://tools.ietf.org/html/draft-murchison-tzdist-geolocate-00">TZDIST
 Geolocate Extension</a> lets a client determine its time zone region
 from its geographic location using a <a
@@ -330,7 +316,7 @@ Database Parser</a> is a
 runtime library. It is freely available under the
 <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons
 Attribution 4.0 International Public License</a>.</li>
-<li><a name="ICU" href="http://site.icu-project.org">International Components for
+<li><a id="ICU" href="http://site.icu-project.org">International Components for
 Unicode (<abbr>ICU</abbr>)</a> contains C/C++ and <a
 href="https://en.wikipedia.org/wiki/Java_%28programming_language%29">Java</a>
 libraries for internationalization that
@@ -416,7 +402,7 @@ library that compiles <code><abbr>tz</abbr></code> source into a time
 zone repository whose format
 is either proprietary or an <abbr>XML</abbr>-encoded
 representation.</li>
-<li><a name="Tcl" href="https://tcl.tk">Tcl</a>
+<li><a id="Tcl" href="https://tcl.tk">Tcl</a>
 contains a developer-oriented parser that compiles <code><abbr>tz</abbr></code>
 source into text files, along with a runtime that can read those
 files. Tcl is freely available under a <abbr>BSD</abbr>-style
@@ -499,7 +485,7 @@ data (mentioned <a href="#CLDR">below</a>) used by
 <a href="https://en.wikipedia.org/wiki/Windows_Runtime">Windows Runtime</a>
 classes such as <a
 href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.datetimeformatting.datetimeformatter.aspx"><code>DateTimeFormatter</code></a>.
-<a name="System.TimeZoneInfo"
+<a id="System.TimeZoneInfo"
 href="https://blogs.msdn.microsoft.com/bclteam/2007/06/07/exploring-windows-time-zones-with-system-timezoneinfo-josh-free/">Exploring
 Windows Time Zones with <code>System.TimeZoneInfo</code></a> describes
 the older, proprietary method of Microsoft Windows 2000 and later,
@@ -755,7 +741,7 @@ Daylight Saving</a>. The privately-maintained <a
 href="http://astrologyschool.com/nztime.html">History of New Zealand
 time</a> has more details.</dd>
 <dt>Singapore</dt>
-<dd><a name="Singapore"
+<dd><a id="Singapore"
 href="http://www.math.nus.edu.sg/aslaksen/teaching/timezone.html">Why
 is Singapore in the "Wrong" Time Zone?</a> details the
 history of legal time in Singapore and Malaysia.</dd>
@@ -856,7 +842,7 @@ again.</li>
 </ul>
 <h2 id="notation">Time notation</h2>
 <ul>
-<li>The <a name="CLDR" href="http://cldr.unicode.org">Unicode Common Locale Data
+<li>The <a id="CLDR" href="http://cldr.unicode.org">Unicode Common Locale Data
 Repository (<abbr>CLDR</abbr>) Project</a> has localizations for time
 zone names, abbreviations, identifiers, and formats. For example, it
 contains French translations for "Eastern European Summer Time",
-- 
2.13.5




More information about the tz mailing list