From owner-freebsd-doc@FreeBSD.ORG Wed May 25 10:30:57 2005 Return-Path: X-Original-To: freebsd-doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68DE716A41C; Wed, 25 May 2005 10:30:57 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D301E43D1F; Wed, 25 May 2005 10:30:56 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.3/8.13.3) with ESMTP id j4PAUtWt036288; Wed, 25 May 2005 14:30:55 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Wed, 25 May 2005 14:30:55 +0400 (MSD) From: Dmitry Morozovsky To: Murray Stokely In-Reply-To: <20050523204713.E92518@woozle.rinet.ru> Message-ID: <20050524115209.C58421@woozle.rinet.ru> References: <200505231105.j4NB5Cs3043597@repoman.freebsd.org> <20050523123545.GC11650@freebsdmall.com> <20050523204713.E92518@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (woozle.rinet.ru [0.0.0.0]); Wed, 25 May 2005 14:30:55 +0400 (MSD) Cc: freebsd-doc@FreeBSD.org, doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org Subject: Re: cvs commit: doc/ru_RU.KOI8-R/books/handbook/firewalls chapter.sgml X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 10:30:57 -0000 On Mon, 23 May 2005, Dmitry Morozovsky wrote: DM> MS> > Unbreak the build second time: now with index. DM> MS> > DM> MS> > It seems cannot be used inside , DM> MS> > at least collateindex.pl produces broken sgml with it. DM> MS> DM> MS> This works in the English build. It is used in the NIS/yellowpages DM> MS> entry in the Network Servers chapter, right? What is the broken SGML DM> MS> that is produced in the ru_RU handbook? Is it a KOI8-R encoding DM> MS> issue? DM> DM> Well, as I wrote in -doc@, the original DM> DM> DM> some-russian-term DM> russian reference DM> DM> DM> produces broken code in index.sgml: DM> DM> DM> some-russian-term DM> DM> russian reference DM> , DM> Russian part title Aha, it seems you're right, as changing terms to some english words leads to error to disappear. The problem seems that terms can be only english letters, as there is at least three places with if (($letter lt 'A') || ($letter gt 'Z')) { The following patch to textproc/dsssl-docbook-modular should help to fix problem, but at least LC_COLLATE or preferrably LANG should be propagated to collateindex.pl appropriately. --- bin/collateindex.pl.orig Thu Nov 4 09:53:39 2004 +++ bin/collateindex.pl Tue May 24 12:18:39 2005 @@ -18,6 +18,7 @@ =cut +use locale; use File::Basename; use Getopt::Std; @@ -362,9 +363,10 @@ $letter = uc(substr($letter, 0, 1)); # symbols are a special case - if (($letter lt 'A') || ($letter gt 'Z')) { + # if (($letter lt 'A') || ($letter gt 'Z')) { + if ($letter !~ /^[[:alpha:]]+$/) { if (($group eq '') - || (($group ge 'A') && ($group le 'Z'))) { + || ($group =~ /^[[:alpha:]]+$/)) { print OUT "\n" if !$first; print OUT "$symbolsname\n\n"; $group = $letter; @@ -647,7 +649,7 @@ $letter = $idx->{'primary'} if !$letter; $letter = uc(substr($letter, 0, 1)); - if (($letter lt 'A') || ($letter gt 'Z')) { + if ($letter !~ /^[[:alpha:]]+$/) { push (@sym, $idx); } else { push (@new, $idx); Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------