[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Sitemap" webpage



Hi,

At 06 Jul 2001 08:46:08 +0900,
Olaf Meeuwissen <olaf@epkowa.co.jp> wrote:

> But some sites screw up the charset :-(  Claiming to use one encoding
> and using another.

Yes.  We must not do such a poor mistake! :-)


> Hmm, that sounds like it could be an inconsistency in the parser rules
> (not that I know anything about wml though).

I checked webwml/english/sitemap.wml and found:

  my $title = `egrep '^#use .* title=' $page `; chomp $title;
  $title =~ s/^#use .* title="([^"]+)".*$/$1/;

This seems to be the code to extract title for sitemap items.
I have no idea how to easily internationalize this code.  Since
Perl itself is not internationalized yet, it would be difficult
to implement i18n software in Perl.

On the other hand, I don't understand how wml parser extracts
titles.  I found webwml/english/template/debian/template.wml
have a simple line of:

  <H1>$(title)</H1>

but I don't know where $(title) comes from.  All what I know
is that generated Debian web pages are correct.

---
Tomohiro KUBOTA <kubota@debian.org>
http://www.debian.or.jp/~kubota/
"Introduction to I18N"  http://www.debian.org/doc/manuals/intro-i18n/



Reply to: