[Mono-list] GETTING THE MS .NET DOC TO WORK ON LINUX

Guenther Roith groith@tcrz.net
Sun, 11 Aug 2002 22:02:45 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C24182.D25A4380
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Sorry for all the mails. Here is the summary of them:


GETTING THE MS .NET DOC TO WORK ON LINUX
========================================


1. Get the Help SDK and extract it to a temp directory.
http://download.microsoft.com/download/VisualStudioNET/Install/2.1/NT45XP/EN
-US/VSHIK.exe

2. If you don't have VS.NET get this, too and unzip it to the same
directory. http://www.sojdr.com/vshik/patch_vshik_setup.msi.zip

3. Change to that directory and run "patch_vshik_setup.msi.vbs", a
VB-Script. Then run Setup.exe

4. Create a new directory with at least 250 MB on your HD.

5. Change to it and type

"C:\program files\Microsoft Help 2.0 SDK\hxcomp.exe" -u C:\program
files\Microsoft.N
ET\FrameworkSDK\Docs\1031\cpref.HxS

at the command line. Your path may be a bit different.

This can take some time.

6. You will have some files in it and a sub-directory called "html" as well
as "Scripts".
Copy the file dtue.css in "Scripts" one dir level higher, that it is one dir
above "html".

7. Rename it to style.css

8. Copy the php-script convert.php (I've attached it again) in the same
directory and run it (not with Browser, of course!).
This can take 25 minutes.

9. Your done. Move the html directory and the style.css to another location
(or to linux) and point your Browser (Mozilla works well) to
"html/cpref_start.htm"

NOTICE: Most links will work, some not, because they don't point to html
files, but MS HELP 2.0 commands.
However, they are not the important ones.

ALSO NOTICE: While you perhaps might extract the html, MS will not like to
see the result copied somewhere and modified .They have coprights on it.
So don't do it (or don't tell them ;-)

Johannes

------=_NextPart_000_000C_01C24182.D25A4380
Content-Type: application/octet-stream;
	name="convert.php"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="convert.php"

<?php
if ($handle =3D opendir('html/')) {
while (false !=3D=3D ($file =3D readdir($handle))) {=20
echo "$file\n";
$filename=3D"html/".$file;=20
$fd =3D fopen ($filename, "r");
$tmp1=3Dfread($fd,filesize($filename));
fclose ($fd);

$tmp1=3Dstr_replace('<SCRIPT =
SRC=3D"ms-help:/../commoner/scripts/dtuelink.js"></SCRIPT>', '<link =
REL=3DSTYLESHEET type=3DTEXT/CSS href=3D../style.css>', $tmp1);

$fd =3D fopen ($filename, "w");
fwrite($fd,$tmp1);
fclose ($fd);

    }


    closedir($handle);=20
}

?>
------=_NextPart_000_000C_01C24182.D25A4380--