From owner-freebsd-doc Mon Sep 28 12:44:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA09882 for freebsd-doc-outgoing; Mon, 28 Sep 1998 12:44:54 -0700 (PDT) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from hyperbole.francenet.fr (hyperbole.francenet.fr [193.149.97.96]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA09833 for ; Mon, 28 Sep 1998 12:44:40 -0700 (PDT) (envelope-from eagle@hyperbole.francenet.fr) Received: (from eagle@localhost) by hyperbole.francenet.fr (8.8.8/8.8.8) id VAA20845 for doc@freebsd.org; Mon, 28 Sep 1998 21:42:49 +0200 (CEST) (envelope-from eagle) Message-ID: <19980928214249.C20365@francenet.fr> Date: Mon, 28 Sep 1998 21:42:49 +0200 From: Sebastien GIORIA To: doc@FreeBSD.ORG Subject: splitting docbook into small sgml files Reply-To: Sebastien GIORIA Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=8P1HSweYDcXXzwPJ X-Mailer: Mutt 0.93.2i Operating-System: Definitely FreeBSD(Patchlevel 42) Function: Unix/Security/System Administrator Organization: Francenet Phone: unknown Fax: unknown Postal-Address: 28 Rue Desaix , 75015 PARIS, FRANCE Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Hi, I made 2 small patchs for sgmlfmt and docbook-html.ts for splitting one sgml file into small html files (like linuxdoc does). This is a very simple version but it's usefull for me. Perhaps anyone is interrest and can extend this to a better add-on. S. -- --> Stale file handle (next time use Tupperware(tm)!) <-- Sebastien Gioria gioria@francenet.fr Unix && Security Administrator security@francenet.fr FreeBSD User & Developer http://www.freebsd.org --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sgmlfmt.diff" =================================================================== RCS file: RCS/sgmlfmt,v retrieving revision 1.1 retrieving revision 1.2 3c3 < # $Id: sgmlfmt,v 1.1 1998/09/28 19:07:55 eagle Exp $ --- > # $Id: sgmlfmt,v 1.2 1998/09/28 19:37:48 eagle Exp $ 696c696,697 < &docbook_html(); --- > # &docbook_html(); > &gen_html(); --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="docbook-html.ts.diff" =================================================================== RCS file: RCS/docbook-html.ts,v retrieving revision 1.1 retrieving revision 1.2 3c3 < $Id: docbook-html.ts,v 1.1 1998/09/28 19:15:01 eagle Exp $ --- > $Id: docbook-html.ts,v 1.2 1998/09/28 19:36:12 eagle Exp $ 505,508c505 < ^<!-- Start CHAPTER ${chapnum} (${ID}): ${_followrel child TITLE &r.pass;} -->^ < ^<!-- End CHAPTER -->^ < chapnum < sect1num 1 --- > ^<@@part> 640d636 < 1881,1882c1877,1878 < sect1num < sect2num 1 --- > ^<@@sect> > ^<@@endsect>^ 1889,1890c1885,1886 < sect2num < sect3num 1 --- > ^<@@sect> > ^<@@endsect>^ 1897,1898c1893,1894 < sect3num < sect4num 1 --- > ^<@@sect> > ^<@@endsect>^ 1905,1906c1901,1902 < sect4num < sect5num 1 --- > ^<@@sect> > ^<@@endsect>^ 1913c1909,1910 < sect5num --- > ^<@@sect> > ^<@@endsect>^ 2269c2266 < parent BLOCKQUOTE --- > 2271,2272c2268,2269 < ^<H4>&hlofont; < &hlcfont;</H4>^ --- > ^<@@head> > ^<@@endhead>^ 2292,2293c2289,2290 < ^<H2>&hlofont; < &hlcfont;</H2>^ --- > ^<@@head> > ^<@@endhead>^ 2370c2367 < CHAPTER --- > 2372,2374c2369,2370 < ^<H1><A NAME="ch-${chapnum}"></A>${_followrel parent CHAPTER &r.anchor;t}&hlofont;${chapnum}.&wspace;^ < &hlcfont;</H1> < ${_followrel parent CHAPTER &r.s1toc;t}^ --- > ^<@@sect> > ^<@@endsect>^ --8P1HSweYDcXXzwPJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message