Results 1 to 9 of 9
I would want convert
"Table od contents.hhc" to index1.html
and
"index.hhk" to index2.html
with a command line. I don't want any GUI-software.
Tks in advance....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-06-2007 #1Just Joined!
- Join Date
- Jul 2007
- Location
- Italy
- Posts
- 11
Convert *.hhc and *.hhk to *.html .
I would want convert
"Table od contents.hhc" to index1.html
and
"index.hhk" to index2.html
with a command line. I don't want any GUI-software.
Tks in advance.
- 11-06-2007 #2
- 11-06-2007 #3Just Joined!
- Join Date
- Jul 2007
- Location
- Italy
- Posts
- 11
hahah...I know how rename a file, thanks.
hcc is a file used to index a web-site or a collection of html files.
See here
5.7. Sitemap formats
Htmlhelp - Creates configurable HTML and HHC files of Contents for any files types.. Provides an easy way to create HTML Help and Web Help (Browser-Based Help).
In my case, I encounter it, when I decompile a file.chm.
Some times the index is stored in toc.html, and other times it is stored in a *.hhc file
I decompile the file.chm in the directory tempDir with this command:
Do you understand?Code:extract_chmLib file.chm TempDir
-----------------------------------------------------------------------------------
EDIT
See here for more informations about the conversion chm_to_(html_files):
Convert .chm to .pdf or text? - LinuxQuestions.org
- 11-06-2007 #4Just Joined!
- Join Date
- Jul 2007
- Location
- Italy
- Posts
- 11
THIS IS AN EXAMPLE:
Code:<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <HTML> <HEAD> <meta name="GENERATOR" content="Microsoft® HTML Help Workshop 4.1"> <!-- Sitemap 1.0 --> </HEAD><BODY> <OBJECT type="text/site properties"> <param name="FrameName" value="Right"> <param name="SaveType" value="FoxPro 2.x or earlier"> <param name="SaveTypeDesc" value="Commands and Functions in the language prior to Visual FoxPro"> <param name="SaveType" value="Visual FoxPro 3.0"> <param name="SaveTypeDesc" value="Commands and Functions introduced with Visual FoxPro 3.0"> <param name="SaveType" value="Visual FoxPro 5.0"> <param name="SaveTypeDesc" value="Commands and Functions introduced in Visual FoxPro 5.0"> <param name="SaveType" value="Visual FoxPro 6.0"> <param name="SaveTypeDesc" value="Features, commands and functions in the most recent version of VFP."> <param name="SaveType" value="dBASE Command"> <param name="SaveTypeDesc" value="Commands and . . . . HERE THERE ARE MANY OTHERS THINGS . . . . <param name="Type" value="Version Introduced::Visual FoxPro 5.0"> <param name="Type" value="Version Introduced::Visual FoxPro 6.0"> <param name="Type" value="Version Introduced::dBASE Command"> <param name="Local" value="Section6/S6COVER.html"> </OBJECT> <UL> <LI> <OBJECT type="text/sitemap"> <param name="Name" value="Resource File"> <param name="Local" value="Section6/S6C1.html"> <param name="ImageNumber" value="11"> </OBJECT> <LI> <OBJECT type="text/sitemap"> <param name="Name" value="What's on the CD?"> <param name="Type" value="Version Introduced::FoxPro 2.x or earlier"> <param name="Type" value="Version Introduced::Visual FoxPro 3.0"> <param name="Type" value="Version Introduced::Visual FoxPro 5.0"> <param name="Type" value="Version Introduced::Visual FoxPro 6.0"> <param name="Type" value="Version Introduced::dBASE Command"> <param name="Local" value="Section6/S6C2.html"> <param name="ImageNumber" value="11"> </OBJECT> </UL> </UL> </BODY></HTML>
---------------------------------------------------------------------------------
When I open these files with firefox or other browser(opera, seamonkey, konqueror), they don't open it.
- 11-07-2007 #5
Im sorry I still dont get you.
So, with extract_chmLib file.chm TempDir you can decompile a file to html.
And then you chance the chm into that what you posted later on?
So, then its extract_chmLib *.chm TempDir
Im sorry I just dont really get your question.
Can you maybe upload a chm file and what you want to get so I can see.
Cheers,
Robin
- 11-07-2007 #6Just Joined!
- Join Date
- Jul 2007
- Location
- Italy
- Posts
- 11
I can't upload the chm file because it is covered by copiright.
Listen me, download the file FILE1.chm, and decompile it into TempDir1:
You can see the files Table of Contents.hhc and Index.hhk.Code:extract_chmLib FILE1.chm TempDir1
Conversely, download the file FILE2.chm and decompile it into TempDir2
now, you can see the file toc.html (Table of contents).Code:extract_chmLib FILE2.chm TempDir2
I can open the file toc.html with my browser, but can't open the files Table of Contents.hhc and Index.hhk.
Do you understand?
PS: Excuse me for my bad english.
- 11-07-2007 #7
Ok, well now I understand what you want.
You downloaded some Books and you want to be able to read them in any browser. (Since they are in Windows Format) And you can read the entire book except the ToC and Index.
Ok, well I got you now. (I guess..)
Well, check out: Puppy Linux Discussion Forum :: View topic - wxBasic-Help (alpha)
I hope I now finally helped
- 11-07-2007 #8Just Joined!
- Join Date
- Jul 2007
- Location
- Italy
- Posts
- 11
I don't want simply read these files, I want convert them to *.html, because I have a software (HTMLDOC) that works with *.html (and htm) files only.
- 11-07-2007 #9


Reply With Quote
