[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sgml21html (Re: sgml tools help)



Hi, David.

In article <20000406222206.A163@localhost>,
  at Thu, 6 Apr 2000 22:22:06 -0700,
    on Re: sgml tools help,
 David Lawyer <[email protected]> writes:

> A problem with singular files generated from the linuxdoc type of sgml
> is that they don't have tables of contents.  But there's a fix for
> this.  Catenate all the chunks together with the "cat" command.  Then
> fix the links to make them all relative to the resulting singular
> document.  Remove the header section, etc.  A shell script could be
> written to do all this using the sed editor to fix the links.  I
> started writing this but haven't finished it.

About a year ago, a friend of mine wrote a shell script to merge
converted html files and fix the links. Then he rewrite it in perl.
He gave it to me, and I have maintain it for our JF Project.

Usage is "sgml21html SGML_file[.sgml]"

It can not handle options at all now.

It uses sgml2html of sgml-tools (v1) (or old linuxdoc-sgml 1.5.1)

It is written for Japanese html files, so I modify it for usage
on LDP (English pages) and attach it to this mail.

It is not smart, or it may be ugly, because I had not know about perl much,
when I started to maintain it, and I don't have so much time to rewrite it,
but it works for JF project, and maybe useful for LDP.

If you like, please use it freely. It's GPL.

# I plan to enhance the sgml2html in sgml-tools (v1) to enable
# the single html file output with TOC. Maybe after the potato release.

begin 664 sgml21html.gz
M'XL("!4B[C@``W-G;6PR,6AT;6P`C5I[=]HX%O\[?`K5X4S-%#"0I&V`L$T;
MTJ:;)CTI,[L]PTR/8PMP,39CRZ3LM/O9]SXD/Q+:G9Z>Q+9T7S_=EZ3L/Q).
MEB;.;1`Y:YF$HG57VQ=V,!/;.$L$?CH28;"1J0@BX0>SF4QDI,3:58NF6(<R
ME4+Z@1)J(6%>)(5[&V]DNU';!S[I?!7VN@NU`K["BZ.-3)3X\/K=)3!3L8AA
M^IL)O-E9&D1SGHZSF?I5O-XFP7RAA/VJ(;K'Q\?B@^N[[C(0_W2!?)@NX=>+
MC8RRM.VKH!W)]N?U""AW_)NX2ZGB=!$`CPAHE_-%MW=PU'T1!3.US4DU\6D8
M"A*=B@1,3#;2;^NAR2(`+%(Q2Z04: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>46'
M6!SX:9]$"9MN^U"TS#;6O4WC$&^+\<Z=EM#3]Z/-8BZQU#<`$."2#T'U5@I!
MY;UC3L`/!T")2I::5)DD(`&B%T3#1A@H\02?MZ:&AA]Z0'P.JY:/X_JU\S%^
MZ,*D"S91_,K!TP9Q49Q%'BGY]ER\N\SGLOUX5XYWC5PT6N6#6W*:AV?F/[J?
MA7_Z6I!V*4F<Y0[I9I`4`'BO&MAXK\F$?%<HT3LAQ9GS;_X[A\BO')#3?)SK
MN6'(RU0^J6]K6^B/+.B.7-@P!S-OTL#,;U7^#L-J5C0OG7[CWPQ@9H4?M-I-
MP3/7?%.NG9N53E*5Y^1UC+T[?B]4,$KA):D-VS:\225@<%JER%;O^QL5Y1"D
M_&950X(%`7IG<S+(5ZW[I3^?X/V#OIBN6(E<'EYQIB5RVO2#0YE%LQ'MR[/W
M#2YY>+^,CLO!`)KCW;)E;*7<9.<7(`K6T4U\$U-T$X"ZI(LX"WT#.::8_P''
':\73*R,`````
`
end

-- 
  Taketoshi Sano: <[email protected]>,<[email protected]>,<[email protected]>


--  
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]