From owner-freebsd-doc@FreeBSD.ORG Sun Dec 18 10:36:20 2011 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F10F106566C for ; Sun, 18 Dec 2011 10:36:19 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED19C8FC0C for ; Sun, 18 Dec 2011 10:36:18 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so1786449obb.13 for ; Sun, 18 Dec 2011 02:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8Bm6kVkOFN61ADX6Y4+FI4XslAM5fdRIBSusYpb3tiU=; b=cUsd+KHDup9qgCGc9JvYpAvbKEahpspGq2FvdHNnymXwmhEeode2dJ8UnhnMJWCLO1 1nTGsGDjRNF8T+gLPIFQuBTPNJCJ/Xjkiyi6oZelCQrAUMB7aMPl8MwwysEP9P7YbFUQ iQkHd5v1SRh/BLqOAa1laGbf6MZJeorqNkbJo= MIME-Version: 1.0 Received: by 10.182.217.3 with SMTP id ou3mr7806841obc.15.1324204578218; Sun, 18 Dec 2011 02:36:18 -0800 (PST) Received: by 10.182.142.101 with HTTP; Sun, 18 Dec 2011 02:36:18 -0800 (PST) In-Reply-To: References: Date: Sun, 18 Dec 2011 13:36:18 +0300 Message-ID: From: Sergey Kandaurov To: Dmitry Morozovsky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-doc@freebsd.org Subject: Re: Adding entity to books formatting 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: Sun, 18 Dec 2011 10:36:20 -0000 On 17 December 2011 17:20, Dmitry Morozovsky wrote: > On Sat, 17 Dec 2011, Sergey Kandaurov wrote: > >> > I need an advice from dsl-fu-knowledgeable perswon ;) >> > >> > Prodded by glebius@, I'm trying to add new entity svnref to generate a= link to >> > svnweb. >> > >> > My quick patch stopped with an erro, while generating seems-to-be-corr= ect >> > content: >> > >> > -- 8< -- >> > marck@woozle:~/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook> gre= p -6i >> > svnref freebsd-versions.html >> >>Dec 12, 2011> >>> >>10-CURRENT after defining boolean true/false in sys/types.h, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sizeof(bool) may had change= d (rev > > HREF=3D"http://svnweb.freebsd.org/base?view=3Drevision&revision=3D= 228444" >> >>> > CLASS=3D"SVNREF" >> >>228444> >>> >>). >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0> > CLASS=3D"FILENAME" >> >>foofile> >> You most probably need to modify share/sgml/freebsd41.dtd as well. >> Something like these lines: >> >> + >> +> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0%common.attrib; >> +> >> + >> >> Hope this helps. > > Thanks! > > Not exactly ;) -- now it's recognized but specifically disallowed: Eh, sure. You also need to add it to local.tech.char.class. Sorry, I forgot to mention this previously. See also how devicename is implemented. A complete diff below on top of your changes, and it should work now (it works for me): doc/share/sgml/freebsd41.dtd or doc/share/sgml/freebsd.dtd ? What DTD file is actually used is not clear for me. I chose freebsd41.dtd @@ -26,7 +26,7 @@ - + @@ -116,6 +116,11 @@ %common.attrib; > + + +