#! /usr/bin/perl -w use strict; my $locale = $ARGV[0]; my $long_name = `/home/weiv/src/icu/source/extra/colprobe/longname $locale`; my $pageTitle = $locale."_collation"; my $filename = $pageTitle.".html"; open TABLE, ">$filename"; print TABLE <<"EndOfTemplate";
Collation: $locale ($long_name) Demo, Cover Page, Index
COMMON (UCA xml) | \n"; my $dirLinux = "linux"; my $refLinux = $dirLinux."/".$locale.".utf8_default_raw.html"; my $rawLinux = $dirLinux."/".$locale.".utf8_raw.html"; my $defLinux = $dirLinux."/".$locale; my $nameLinux = "$dirLinux/$locale".".utf8_collation.html"; my $colorLinux = "#1191F1"; print TABLE "LINUX ("; if (!(-e $nameLinux)) { #try the variant that has @euro stuck in $nameLinux = "$dirLinux/$locale".'.utf8@euro_collation.html'; if(-e $nameLinux) { $refLinux = $dirLinux."/".$locale.'.utf8@euro_default_raw.html'; $rawLinux = $dirLinux."/".$locale.'.utf8@euro_raw.html'; } } if (-e $nameLinux) { print TABLE "Ordering Definition base"; } print TABLE " xml) | \n"; my $dirWin = "winxp"; my $refWin = $dirWin."/".$locale."_default_raw.html"; my $rawWin = $dirWin."/".$locale."_raw.html"; my $nameWin = "$dirWin/$locale"."_collation.html"; my $colorWin = "#98FB98"; print TABLE "WINDOWS ("; if (-e $nameWin) { print TABLE "Ordering base "; } print TABLE "xml) | \n"; print TABLE "
---|---|---|