Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Is it only a name or does it have some kind of way that the file is build?
    Since I never heard off hhc or hhk files.
    Well if its just the extension do
    Code:
    mv *.hhc *.html
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just 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:
    Code:
    extract_chmLib file.chm TempDir
    Do you understand?


    -----------------------------------------------------------------------------------
    EDIT
    See here for more informations about the conversion chm_to_(html_files):
    Convert .chm to .pdf or text? - LinuxQuestions.org

  4. $spacer_open
    $spacer_close
  5. #4
    Just 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&reg; 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.

  6. #5
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    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
    New Users, please read this..
    Google first, then ask..

  7. #6
    Just 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:
    Code:
    extract_chmLib FILE1.chm TempDir1
    You can see the files Table of Contents.hhc and Index.hhk.




    Conversely, download the file FILE2.chm and decompile it into TempDir2
    Code:
    extract_chmLib FILE2.chm TempDir2
    now, you can see the file toc.html (Table of contents).

    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.

  8. #7
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    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
    New Users, please read this..
    Google first, then ask..

  9. #8
    Just 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.

  10. #9
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    if you read that topic you see they talk about converting aswell.
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •