From b3361f1f0e795fc9287d78edb1cc2a6dc5fc2334 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sat, 11 Jan 2003 22:19:29 +0000 Subject: [PATCH] Initial checkin of customization of htmlhelp xsls to generate cross-platform help using applets --- contrib/xsl/applethelp/README | 73 ++++++ contrib/xsl/applethelp/applethelp.xsl | 253 +++++++++++++++++++++ contrib/xsl/applethelp/images/cntidx.gif | Bin 0 -> 961 bytes contrib/xsl/applethelp/images/cnttab.gif | Bin 0 -> 999 bytes contrib/xsl/applethelp/images/indexcnt.gif | Bin 0 -> 1001 bytes contrib/xsl/applethelp/images/indextab.gif | Bin 0 -> 969 bytes 6 files changed, 326 insertions(+) create mode 100644 contrib/xsl/applethelp/README create mode 100755 contrib/xsl/applethelp/applethelp.xsl create mode 100755 contrib/xsl/applethelp/images/cntidx.gif create mode 100755 contrib/xsl/applethelp/images/cnttab.gif create mode 100755 contrib/xsl/applethelp/images/indexcnt.gif create mode 100755 contrib/xsl/applethelp/images/indextab.gif diff --git a/contrib/xsl/applethelp/README b/contrib/xsl/applethelp/README new file mode 100644 index 000000000..23c1d2c88 --- /dev/null +++ b/contrib/xsl/applethelp/README @@ -0,0 +1,73 @@ +README + +What is this and how do I use it? + +This customization of Jirka Kosek's customization of Norm +Walsh's DocBook xsls generates a frameset with ingredients +necessary to view an uncompiled help project in most +browsers that support Java applets, much like the "WebHelp" +format available from RoboHELP. You simply have to add a few +files found in the installation directory of the HTML Help +Workshop to the base directory of the frameset. The applet +creates a toc and index tab (though no search or favorites +tab) that works well in most browsers that support applets. +The stuff added for frameset doesn't affect the chm at all. + +After generating your html files, copy the contents of the +'java' folder from your HTML Help Workshop installation to +the directory containing the frameset files. Note that you +must copy the *contents* of C:\Program Files\HTML Help +Workshop\java (not the folder-so HHCtrl.class etc. must be +in the same directory as index.html, contents.pane.html, and +index.pane.html). + +So when you're done, your directory will look like this +(where build/index.html runs the frameset): + +build/ cntimage.gif + contents.pane.html + DialogLayout.class + Element.class + ElementList.class + files/*.html + HHCtrl.cab + HHCtrl.class + htmlhelp.hhp + images/ cntidx.gif + cntimage.gif + cnttab.gif + indexcnt.gif + indextab.gif + *.gif + index.hhk + index.html + index.pane.html + IndexPanel.class + RelatedDialog.class + SitemapParser.class + toc.hhc + TreeCanvas.class + TreeView.class + +Note that you can still compile the htmlhelp.hhp file. The +applets .class files are not needed or included in the chm. + +This stylesheet was tested with 1.55.0 of the docbook xsls, +but probably works with more recent versions. + +Known Limitation: The indexterms in the index tab are +currently not sorted. This can be fixed by tweaking the +xsls. Also, multiple instances of the same indexterm appear +in the index pane (in a chm, they are combined and a choice +of terms is presented when it is double clicked). + +Resources: +http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconwhtsja.asp +http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp +http://www.mvps.org/htmlhelpcenter/hhjapplt.htm + +This is a contrib file and carries no guarantee. + +David Cramer +dcramer@broadjump.com +david@thingbag.net diff --git a/contrib/xsl/applethelp/applethelp.xsl b/contrib/xsl/applethelp/applethelp.xsl new file mode 100755 index 000000000..1746b8cc1 --- /dev/null +++ b/contrib/xsl/applethelp/applethelp.xsl @@ -0,0 +1,253 @@ + + + + + + + + + + + + images/ + + index.html + contents.pane.html + index.pane.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <body> + <p>This page uses frames, but your browser doesn't support them.</p> + </body> + + + + + + + + + Contents Pane + + + +
+ + + + + + + + +
+ + + + + + +
+ + +
+ + + + + Index Pane + + + +
+ + + + +
+ + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + +
+ + + + <HTML> + <HEAD> + </HEAD> + <BODY> + + + <OBJECT type="text/site properties"> + <param name="FrameName" value="main"> + <param name="Window Styles" value="0x800025"> + + <param name="ImageType" value="Folder"> + + </OBJECT> + + <UL> + + + + + + + + + + + + + + </UL> + + + </BODY> + </HTML> + + + + + + + + + + + + + + + + + +
    ]]> + + + + + + + + + + + + ]]> + + + + + + + + + + + + ID ' + + ' not found in document. + + + + Formatting from + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/contrib/xsl/applethelp/images/cntidx.gif b/contrib/xsl/applethelp/images/cntidx.gif new file mode 100755 index 0000000000000000000000000000000000000000..88750d9a39544351ef3ededc06fda805d39f1215 GIT binary patch literal 961 zcmZ?wbhEHb)L;-{_|52S|6g5Qy?5{4d-v}BX8`g> z!Dt8!wGjCIVZnkW4Gj(df$1ESh(Q#Ph9qajpDc_F415eaKv4!zo?zgZ#~{lg1Ejc+^BY2fcC;x#{(+xtm z^>|Kx<}+C@@!6WlPiZITYBzrR;u)0Twb-onSqW!C`sHP=3*{oTf-|oy3a(E(>Sd~W zajoC>v|6puRpG0XW@edYi9Nl(F8TT?(dtjS*LJ5YE_1DVpnZP7&QB&ks~rXL2iwB8 J@o+F$0|176DiZ(z literal 0 HcmV?d00001 diff --git a/contrib/xsl/applethelp/images/cnttab.gif b/contrib/xsl/applethelp/images/cnttab.gif new file mode 100755 index 0000000000000000000000000000000000000000..61396e3366a3b422373f1a72f8ccc452c9bd544d GIT binary patch literal 999 zcmZ?wbhEHbv|2S|6g5Qy?5{4d-v}BX8`g> z!Dt8!wGjCIVZnkW4Gj(df$1ESh(Q#Ph9qajpDc_F415eaKv4!zo?zfO!XRrA;ILuA z!DbF&t(YAF4-T*iD0|KE*tqCuw>YDX&4G=JkM}D$cga`^$uqEWd8~>#8MMT6if-~L zol2ur4+aayGj}9EEj`=$OrBj@=)d?~j*$X`H2}*!JKq2R literal 0 HcmV?d00001 diff --git a/contrib/xsl/applethelp/images/indexcnt.gif b/contrib/xsl/applethelp/images/indexcnt.gif new file mode 100755 index 0000000000000000000000000000000000000000..d04de9efffc3bc499c92c2193290a03dc5049fcf GIT binary patch literal 1001 zcmZ?wbhEHbG-D89_|52S|6g5Qy?5{4d-v}BX8`g> z!Dt8!wGjCIVZnkW4Gj(df$1ESh(Q#Ph9qajpDc_F415eaKv4!zo?zfO#vscfo|YI|2+NeiBC6>fLbQZ()A9Q#bKQcDxn zz=d&B%WOY{uDQ85YC2mi*R(aax98oi`|1^*8nQL|rP*BXGL8E?D&D5WdP{7$x2xj+ zA>T^zjSr94d_UCtW=G+TZM8>NnXcaXE^>`WZ&zJr<(AB2&Hk(1WUIcuXkf4g0OgHA AZ2$lO literal 0 HcmV?d00001 diff --git a/contrib/xsl/applethelp/images/indextab.gif b/contrib/xsl/applethelp/images/indextab.gif new file mode 100755 index 0000000000000000000000000000000000000000..322e4b48d4e95926a6f5239de88d1704e7bd97a0 GIT binary patch literal 969 zcmZ?wbhEHb)MF4~_|52S|6g5Qy?5{4d-v}BX8`g> z!Dt8!wGjCIVZnkW4Gj(df$1ESh(Q#Ph9qajpDc_F415eaKv4!zo?zfu#vp4E;ILuA z!DbF&EfEj Sa^A`c!&Arl-m