Angus Leeming wrote:

> My local pages
>     http://www.devel.lyx.org/~leeming/www-devel
> now validate as valid UTF-8 encoded XHTML 1.1

Ok, I've now committed the attached patch to www.devel.lyx.org.

I'll hold on to the patches to the po files until we decide how best to
proceed.

-- 
Angus
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/ChangeLog,v
retrieving revision 1.228
diff -u -p -r1.228 ChangeLog
--- ChangeLog	23 Mar 2005 17:19:18 -0000	1.228
+++ ChangeLog	23 Mar 2005 17:19:57 -0000
@@ -13,6 +13,16 @@
 	* funding.php3: remove commented out html. That, after all, is
 	what cvs is for.
 
+	* start.php3: declare the page as UTF-8 encoded XHTML 1.1.
+	* end.php3: point to the XHTML 1.1 validator on W3C.
+	* images/valid-xhtml10.gif: removed.
+	* images/valid-xhtml11.gif: added.
+
+	* i18n.php3:
+	* index.php3:
+	* translation.php3: use XHTML character codes for non-ASCII
+	characters.
+
 2005-03-21  John Spray  <[EMAIL PROTECTED]>
 
 	* guii.php3: update the status of the GTK implementations of the
Index: end.php3
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/end.php3,v
retrieving revision 1.13
diff -u -p -r1.13 end.php3
--- end.php3	24 Jan 2003 12:13:27 -0000	1.13
+++ end.php3	23 Mar 2005 15:45:52 -0000
@@ -29,8 +29,8 @@ Thanks to <a href="http://www.ansol.org";
 <hr />
 <p>
     <a href="http://validator.w3.org/check/referer";><img
-        src="<?php echo $LYX; ?>/images/valid-xhtml10.gif"
-        width="88" height="31" alt="Valid XHTML 1.0!" /></a>
+        src="<?php echo $LYX; ?>/images/valid-xhtml11.gif"
+        width="88" height="31" alt="Valid XHTML 1.1!" /></a>
     <a href="http://jigsaw.w3.org/css-validator/check/referer";><img
        src="<?php echo $LYX; ?>/images/vcss.gif"
        width="88" height="31" alt="Valid CSS!" /></a>
@@ -45,7 +45,7 @@ if (isset($counter_file)) {
 
 <address>
 <?php
-echo "Webmaster: <a href=\"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>\n";
+echo "Webmaster: lyx-devel at lists dot lyx dot org\n";
 if (isset($translator)) {
 	echo "Translator:<a href=\"mailto:$translator\";>$translator</a>";
 }
Index: i18n.php3
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/i18n.php3,v
retrieving revision 1.61
diff -u -p -r1.61 i18n.php3
--- i18n.php3	14 Mar 2005 09:56:56 -0000	1.61
+++ i18n.php3	23 Mar 2005 16:17:04 -0000
@@ -33,7 +33,7 @@ array ( 'langcode' => 'es',
 
 array ( 'langcode' => 'eu',
 "msg_tr" => 2738, "msg_fu" => 54, "msg_nt" => 19,
-"translator" => "Iñaki Larrañaga Murgoitio", "email" => "[EMAIL PROTECTED]",
+"translator" => "I&ntilde;aki Larra&ntilde;aga Murgoitio", "email" => "[EMAIL PROTECTED]",
 "date" => "2004-09-13" ),
 
 array ( 'langcode' => 'fi',
@@ -63,12 +63,12 @@ array ( 'langcode' => 'nn',
 
 array ( 'langcode' => 'no',
 "msg_tr" => 1706, "msg_fu" => 108, "msg_nt" => 997,
-"translator" => "Lars Gullik Bjønnes", "email" => "[EMAIL PROTECTED]",
+"translator" => "Lars Gullik Bj&oslash;nnes", "email" => "[EMAIL PROTECTED]",
 "date" => "2003-02-06" ),
 
 array ( 'langcode' => 'pl',
 "msg_tr" => 2324, "msg_fu" => 114, "msg_nt" => 373,
-"translator" => "Tomasz £uczak", "email" => "[EMAIL PROTECTED]",
+"translator" => "Tomasz &#321;uczak", "email" => "[EMAIL PROTECTED]",
 "date" => "2003-04-05" ),
 
 array ( 'langcode' => 'ro',
@@ -83,7 +83,7 @@ array ( 'langcode' => 'ru',
 
 array ( 'langcode' => 'sk',
 "msg_tr" => 2151, "msg_fu" => 120, "msg_nt" => 540,
-"translator" => "Zdenko Podobný", "email" => "[EMAIL PROTECTED]",
+"translator" => "Zdenko Podobn&yacute;", "email" => "[EMAIL PROTECTED]",
 "date" => "2003-02-10" ),
 
 array ( 'langcode' => 'sl',
Index: index.php3
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/index.php3,v
retrieving revision 1.17
diff -u -p -r1.17 index.php3
--- index.php3	5 Apr 2004 15:01:18 -0000	1.17
+++ index.php3	23 Mar 2005 15:48:15 -0000
@@ -50,7 +50,7 @@ continuously!</p>
 
 <p>If you want to show your support to the LyX effort, please consider
 making a donation. See our <a href="funding.php3">funding page</a>
-or mail <a href="mailto:[EMAIL PROTECTED]">Lars Gullik Bjønnes</a> for
+or mail <a href="mailto:[EMAIL PROTECTED]">Lars Gullik Bj&oslash;nnes</a> for
 information on how to get your money to Norway, or what your donation
 will support.</p>
 
Index: start.php3
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/start.php3,v
retrieving revision 1.14
diff -u -p -r1.14 start.php3
--- start.php3	5 Jun 2002 11:15:15 -0000	1.14
+++ start.php3	23 Mar 2005 15:44:58 -0000
@@ -147,9 +147,9 @@ if ($title == "") {
 	$title = "The Document Processor";
 }
 
-echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";
+echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" 
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
 <?php
@@ -165,7 +165,7 @@ if ($bgimage) {
 }
 ?>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <?php
 //
 //
@@ -411,4 +411,5 @@ if ($sidebar) {
 	echo "<div class=\"page-top\">\n";
 }
 
-echo "<h1 class=\"center\">$title</h1>\n" ?>
+echo "<h1 class=\"center\">$title</h1>\n"
+?>
Index: translation.php3
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-devel/translation.php3,v
retrieving revision 1.51
diff -u -p -r1.51 translation.php3
--- translation.php3	23 Mar 2005 15:42:55 -0000	1.51
+++ translation.php3	23 Mar 2005 16:07:27 -0000
@@ -197,7 +197,7 @@ translation_row("Russian", "ru", "",
 translation_row("Slovak", "sk",
 "http://telka.sk/linux/sk-l10n/";,
 "UserGuide, Tutorial",
-"Zdeno Podobný", "[EMAIL PROTECTED]");
+"Zdeno Podobn&yacute;", "[EMAIL PROTECTED]");
 
 translation_row("Slovene", "sl", 
 "http://www.lugos.si/delo/slo/LyX-sl/";,
@@ -211,7 +211,7 @@ translation_row("Spanish", "es", "",
 translation_row("Swedish", "sv",
 "http://www.mdstud.chalmers.se/~md9ms/lyx/";,
 "Intro, Tutorial",
-"Martin Sjögren", "[EMAIL PROTECTED]");
+"Martin Sj&ouml;gren", "[EMAIL PROTECTED]");
 
 translation_row("Walloon", "??",
 "http://users.skynet.be/bs302306/linux/";,
Index: images/valid-xhtml10.gif
===================================================================
RCS file: images/valid-xhtml10.gif
diff -N images/valid-xhtml10.gif
Binary files /tmp/cvsMUkfGy and /dev/null differ
Index: images/valid-xhtml11.gif
===================================================================
RCS file: images/valid-xhtml11.gif
diff -N images/valid-xhtml11.gif
Binary files /dev/null and valid-xhtml11.gif differ

Reply via email to