Date: Mon, 28 Sep 1998 21:42:49 +0200 From: Sebastien GIORIA <gioria@francenet.fr> To: doc@FreeBSD.ORG Subject: splitting docbook into small sgml files Message-ID: <19980928214249.C20365@francenet.fr>
next in thread | raw e-mail | index | archive | help
--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>^<!-- Start CHAPTER ${chapnum} (${ID}): ${_followrel child TITLE &r.pass;} -->^</start> < <end>^<!-- End CHAPTER -->^</end> < <incr>chapnum < <set>sect1num 1 --- > <start>^<@@part></start> 640d636 < <!-- <end></P>^ --> 1881,1882c1877,1878 < <incr>sect1num < <set>sect2num 1 --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> 1889,1890c1885,1886 < <incr>sect2num < <set>sect3num 1 --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> 1897,1898c1893,1894 < <incr>sect3num < <set>sect4num 1 --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> 1905,1906c1901,1902 < <incr>sect4num < <set>sect5num 1 --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> 1913c1909,1910 < <incr>sect5num --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> 2269c2266 < <relation>parent BLOCKQUOTE --- > <!-- <relation>parent BLOCKQUOTE --> 2271,2272c2268,2269 < <start>^<H4>&hlofont;</start> < <end>&hlcfont;</H4>^</end> --- > <start>^<@@head></start> > <end>^<@@endhead>^</end> 2292,2293c2289,2290 < <start>^<H2>&hlofont;</start> < <end>&hlcfont;</H2>^</end> --- > <start>^<@@head></start> > <end>^<@@endhead>^</end> 2370c2367 < <context>CHAPTER --- > <!-- <context>CHAPTER --> 2372,2374c2369,2370 < <start>^<H1><A NAME="ch-${chapnum}"></A>${_followrel parent CHAPTER &r.anchor;t}&hlofont;${chapnum}.&wspace;^</start> < <end>&hlcfont;</H1> < ${_followrel parent CHAPTER &r.s1toc;t}^</end> --- > <start>^<@@sect></start> > <end>^<@@endsect>^</end> --8P1HSweYDcXXzwPJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980928214249.C20365>