Skip site navigation (1)Skip section navigation (2)
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>^&lt;!-- Start CHAPTER ${chapnum} (${ID}): ${_followrel child TITLE &r.pass;} -->^</start>
< <end>^&lt;!-- End CHAPTER -->^</end>
< <incr>chapnum 
< <set>sect1num	1
---
> <start>^&lt;@@part&gt;</start>
640d636
< <!-- <end>&lt;/P>^ -->
1881,1882c1877,1878
< <incr>sect1num 
< <set>sect2num	1
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</end>
1889,1890c1885,1886
< <incr>sect2num
< <set>sect3num	1
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</end>
1897,1898c1893,1894
< <incr>sect3num
< <set>sect4num	1
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</end>
1905,1906c1901,1902
< <incr>sect4num
< <set>sect5num	1
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</end>
1913c1909,1910
< <incr>sect5num
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</end>
2269c2266
< <relation>parent BLOCKQUOTE
---
> <!-- <relation>parent BLOCKQUOTE -->
2271,2272c2268,2269
< <start>^&lt;H4>&hlofont;</start>
< <end>&hlcfont;&lt;/H4>^</end>
---
>   <start>^&lt;@@head&gt;</start>
>   <end>^&lt;@@endhead&gt;^</end>
2292,2293c2289,2290
< <start>^&lt;H2>&hlofont;</start>
< <end>&hlcfont;&lt;/H2>^</end>
---
>   <start>^&lt;@@head&gt;</start>
>   <end>^&lt;@@endhead&gt;^</end>
2370c2367
< <context>CHAPTER
---
> <!-- <context>CHAPTER -->
2372,2374c2369,2370
< <start>^&lt;H1>&lt;A NAME="ch-${chapnum}">&lt;/A>${_followrel parent CHAPTER &r.anchor;t}&hlofont;${chapnum}.&wspace;^</start>
< <end>&hlcfont;&lt;/H1>
< ${_followrel parent CHAPTER &r.s1toc;t}^</end>
---
>   <start>^&lt;@@sect&gt;</start>
>   <end>^&lt;@@endsect&gt;^</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>