This page may be interesting for you
http://code.google.com/p/htmlhelp/downloads/list?q=label:CHM.
The only problem with the CHM versions of the HTML 4.01 and CSS 2.1 specification on this page is that there are some absolute references to online files (images, css). So when the help is opened IE wants to load these files from WWW. That can be blocked with a personal firewall.
But I favor also complete offline versions. Therefore I downloaded the CHM file for the
HTML 4.01 Specification, extracted the content file
html-4.01.hhc and the index file
html-4.01.hhk and recreated the HtmlHelp project file
html-4.01.hhp. All other files in this CHM are 100% identical to the files on
http://www.w3.org/TR/1999/REC-html401-19991224/ which I have had already on my hard disk.
The start page
cover.html contains an image reference to
http://www.w3.org/Icons/w3c_home.png. I downloaded this image, saved it in the subdirectory
images, deleted
w3c_home.gif because not referenced by any file, and edited cover.html accordingly.
Next I detected that all HTML files reference the CSS file
http://www.w3.org/StyleSheets/TR/W3C-REC.css. So I downloaded also this file and saved it in the subdirectory
style. In this CSS file the image file
http://www.w3.org/StyleSheets/TR/logo-REC.png is referenced which I downloaded, saved in the subdirectory
images and corrected the url in the CSS file accordingly. Last I changed all stylesheet references to the local version of
W3C-REC.css.
After restoring the original file times as much as possible I made the necessary changes on file
html-4.01.hhp and some other small modifications - added button to change font size, set initial width for the left pane and defined the initial coordinates of the window. Finally I recompiled the HtmlHelp project.
The new CHM for the HTML 4.01 Specification is now packed into the RAR archive
html401.rar. This RAR archive contains also the files
html-4.01.hhc,
html-4.01.hhk and
html-4.01.hhp, if somebody else wants to make further changes, as well as the complete modified HTML version. The HTML version as well as the CHM version in this archive should be usable now completely in offline mode.