;----------------------------------------------------------------------------- ; sgml2html.xom ;----------------------------------------------------------------------------- ; (c) Copyright 1996 Novell, Inc. ; All rights reserved. ; ; This program is an unpublished copyrighted work which is proprietary ; to Novell, Inc. and contains confidential information that is not to ; be reproduced or disclosed to any other person or entity without ; prior written consent from Novell, Inc. in each and every instance. ; ; No part of this file may be duplicated, revised, translated, ; localized or modified in any manner or compiled, linked or uploaded ; or downloaded to or from any computer system without prior written ; consent of Novell, Inc. ; ; WARNING: Unauthorized reproduction of this program as well as ; unauthorized preparation of derivative works based upon the program ; or distribution of copies by sale, rental, lease or lending are ; violations of federal copyright laws and state trade secret laws, ; punishable by civil and criminal penalties. ;----------------------------------------------------------------------------- down-translate ;*** macros macro passthru is output "%c" macro-end macro childof is when parent is macro-end macro grandchildof is parent of parent is macro-end macro chtitle is output "
%g(NAMEWD)-" tagB macro-end macro graf is output "
%c%n" macro-end ;no way to distinguish igraf in html macro igraf is output "
%c%n" macro-end macro lowtitle is output "
%c" macro-end macro address is output "
%c%n" macro-end macro b is output "%c%n" macro-end macro blockquote is output "%c%n" macro-end macro br is output "
%c%n"
macro-end
macro dd is
output "%c%n" macro-end macro pre is output "
%c%n" macro-end macro samp is output "%c%n" macro-end macro strong is output "%c" macro-end macro tt is output "%c" macro-end macro ul is output "
%c%n" macro-end macro ital is output "%c" macro-end macro boldpara is output "
%c%n" macro-end macro bolditalpara is output "
%c%n" macro-end macro sub is output "%c%n" macro-end macro sup is output "%c%n" macro-end macro vpad is output "
%c
%n" macro-end macro alltable is output "
"
macro-end
macro emph is output "
%c"
macro-end
macro gpnchap is
do when counter CHAPNUM is greater-than 1
reset COUNTA to counter CHAPNUM
decrement COUNTA by 1
put CHAPCONTENT '
'
done
do when counter CHAPNUM is less-than counter CHAPCT
reset COUNTA to counter CHAPNUM
increment COUNTA by 1
put CHAPCONTENT '
%n'
done
macro-end
macro gpnsect is
do when counter SECT1NUM is greater-than 1
reset COUNTA to counter SECT1NUM
decrement COUNTA by 1
put SECTCONTENT '
%n'
done
do when counter SECT1NUM is less-than counter SECTCT ;when not the last
reset COUNTA to counter SECT1NUM
increment COUNTA by 1
put SECTCONTENT '
%n'
done
macro-end
macro gpnappx is
do when counter APPXNUM is greater-than 1
reset COUNTA to counter APPXNUM
decrement COUNTA by 1
put CHAPCONTENT '
'
done
do when counter APPXNUM is less-than counter APPXCT
reset COUNTA to counter APPXNUM
increment COUNTA by 1
put CHAPCONTENT '
%n'
done
macro-end
macro gpnpref is
do when counter PREFNUM is greater-than 1
reset COUNTA to counter PREFNUM
decrement COUNTA by 1
put CHAPCONTENT '
'
done
do when counter PREFNUM is less-than counter PREFCT
reset COUNTA to counter PREFNUM
increment COUNTA by 1
put CHAPCONTENT '
%n'
done
macro-end
macro gpnappxsect is
do when counter SECT1NUM is greater-than 1
reset COUNTA to counter SECT1NUM
decrement COUNTA by 1
put SECTCONTENT '
%n'
done
do when counter SECT1NUM is less-than counter SECTCT ;when not the last
reset COUNTA to counter SECT1NUM
increment COUNTA by 1
put SECTCONTENT '
%n'
done
macro-end
macro gpnprefacesect is
do when counter SECT1NUM is greater-than 1
reset COUNTA to counter SECT1NUM
decrement COUNTA by 1
put SECTCONTENT '
%n'
done
do when counter SECT1NUM is less-than counter SECTCT ;when not the last
reset COUNTA to counter SECT1NUM
increment COUNTA by 1
put SECTCONTENT '
%n'
done
macro-end
macro emittoc is
reopen TOC as "./%g(BKNAME)/toc.htm"
put TOC '%g(TOCTEMP1)'
put TOC '%g(TOCTEMP3)'
close TOC
macro-end
macro emittoc1 is
reopen TOC as "./%g(BKNAME)/toc.htm"
put TOC '%n
'
set buffer IMGFOLDERMN to '
'
set buffer IMGSMMANUAL to '
'
reset PARTNUM to 0
reset CHAPNUM to 0
reset APPXNUM to 0
reset PREFNUM to 0
set buffer NUMBUF to ""
set buffer CURCHAPTOC to ""
set buffer DOCTYPE to '%n'
open TOC as "./%g(BKNAME)/toc.htm"
open STARTFRM as "./%g(BKNAME)/start.htm"
put (TOC and STARTFRM) "%g(DOCTYPE)"
put STARTFRM "%n"
put STARTFRM '%n"
put STARTFRM "%n"
close STARTFRM
put TOC '%n%n'
put TOC '
%n'
; put TOC '%n