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

Re: HTML strict patch for gen-files.pl commited



Christian Perrier <bubulle@debian.org> (03/11/2005):
> > in l10n/po/pa.fr.html there are addintional errors, which are from  
> > the page content.
> > 
> > Line 138, character 314:  "771751936" is not a character number in the
> > 	document character set
> > Line 138, character 326:  "1560281088" is not a character number in the
> > 	document character set
> > Line 138, character 339:  "536870912" is not a character number in the
> > 	document character set
> > 
> > Can one from i18n please look into that? Please look at the row for  
> > usermode in http://www.debian.org/international/l10n/po/pa
> 
> There's probably nothing we can do here. The translator's name comes
> from the PO file and Amanpreet did put his name using the Gurmukhi
> script in the Last-Translator field, which is certainly right.
> 
> It seems that some of the characters he used are not interpreted
> correctly....
> 
> Denis, as the author of the scripts which generate this page, can you
> have a look?

Denis, I have commited the attached patch to the dl10n cvs. It fixes the
problem (thanks a lot to Julien Cristau who found the solution). I think
you have to force a new check of the usermode package to fix the
database.

-- 
Thomas Huriaux
Index: dl10n-check
===================================================================
RCS file: /cvsroot/debian-l10n/dl10n/dl10n-check,v
retrieving revision 1.19
diff -u -r1.19 dl10n-check
--- dl10n-check	22 Sep 2005 08:56:43 -0000	1.19
+++ dl10n-check	3 Nov 2005 14:21:33 -0000
@@ -651,7 +651,7 @@
         return $qstring if $@;
         my $result = $converter->convert($string) or return $qstring;
         my $ret = "";
-        while($result =~ m/(.)(.)(.)(.)/g) {
+        while($result =~ m/(.)(.)(.)(.)/sg) {
                 my $ucs = ord($1)*0x1000000 + ord($2)*0x10000 + ord($3)*0x100 + ord($4);
                 $ret .= ($ucs > 0x7e ? "&#$ucs;" : chr($ucs));
         }

Attachment: signature.asc
Description: Digital signature


Reply to: