PureHELP Compiler : compile HTML to CHM

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Re: A great help

Post by neotoma »

Some more ideas for the next Version :

* Save/Load a Project. So we can use the same settings for a project.
* Show the inculded files, and allow to remove some files....
* Option to generate only the hhp and hhc-files. So we can use them to make the Help-File without your tool.

* Commandline (i mentioned before)

Option to change the Icon for some files (e.g. New files).
Option to specify the Name of the Help-Window
Option to use some of the Window-Definition parameters. (seen at : link

And to state that : i like your tools and your user-libs :). They are very usefull, and i think i will use them in my next projects !

Mike
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

kewl app

- np
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Yes :)


...and the better is when it used in the Context Menu :

Image
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Seymour Clufley
Addict
Addict
Posts: 1233
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Post by Seymour Clufley »

Gnozal, is there any hope of an update for this program? It's very useful. I've been trying to find a free CHM maker for ages - the only thing missing from PureHelp is the ability to add keywords to each HTML page.

Thanks for making it.

Seymour.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Seymour Clufley wrote:Gnozal, is there any hope of an update for this program? It's very useful. I've been trying to find a free CHM maker for ages - the only thing missing from PureHelp is the ability to add keywords to each HTML page.
The PureHelp Maker is a simple tool to build help files for your user libraries.
If you need a free full featured CHM maker, have a look at Vizacc : http://www.vizacc.com/

The HTML Help Workshop from Microsoft is also free : http://www.microsoft.com/downloads/deta ... laylang=en
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Serious bug: If you select all files in the directory and then select a different filename for the chm file it overwrites the file with the filename originally suggested instead of the one you specified.

And how about a way to make the contents thing as a tree, or at least with sensible names (instead of from the filename)? And an index? (Especially as the search doesn't work.)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Trond wrote:If you select all files in the directory and then select a different filename for the chm file it overwrites the file with the filename originally suggested instead of the one you specified.
Should be fixed.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
maadjordan
New User
New User
Posts: 2
Joined: Tue Oct 09, 2007 8:00 am

a way to reduce CHM file..

Post by maadjordan »

here is a way to reduce a CHM file .. and i have tested it and its great on general cases.

a- tools required

1- "key tools" from http://www.keyworks.net/keytools.htm (download and install)
2- posted "PureHELP Compiler" from http://freenet-homepage.de/gnozal/PureHELPC.zip (unpack to its folder)
3- posted "MScompiler" from http://freenet-homepage.de/gnozal/MSHelpCompiler.rar (unpack to "PureHELP Compiler" folder)

b- the process
1- "decompile" with "Key Tools" .. this tool will generate (*.HHP) project file that can mimic the original project file (and i think its about 100% ok as the author of "key tools" was a the project leader in microsoft of MS-HTML (which is CHM)) and make a folder for the unpacked CHM
2- then optimize using procedures as follows:
================================================== ===
if you need a real optimizer for CHM then it exist in my mind..

1- optimize HTML by removing comments and other non-viewable ref.
2- optimize GIF files with Trout's GIF Optmizer.
3- optimize PNG files with optipng,advpng,advdef,pngout,deflopt
4- optimize jpeg files with "jpegoptim"

even more..can be done on stage (2)
if gif files are still type (one frame) then convert to PNG with optipng and replace its name.gif with name.png in all html files..(this one is best in reducing CHM file..)
================================================== ===

3- then compile using "PureHELP Compiler" by
- set the compiler in "options" into the HHC.EXE from "MSHelpCompiler.rar"
- then choose the HHP file in the unpacked CHM folder.
- then press compile

4- then you have two choices:
1- to "recompile" with "keytools" into a new CHM file (to check it increases or decreases the files..) then use "document process v6.01"
2- or the vice-versa
both choices should give you same result..( a smaller CHM file)

and thats it..

here is an example:

windows.chm from XP-home-sp2 (690,641 bytes)
1- "document press" only (411,102 bytes)
2- "PureHELP Compiler" as there nothing to optimize.. (250,703 bytes)
3- after "document press" again (224,304 bytes)
4- then "keytools" reompile.. (191,566 bytes)

or if 4 is before 3..
4- then "keytools" reompile.. (191,566 bytes)
3- after "document press" again (191,566 bytes)

so in this file "doument press" done nothing,, but this is one of the cases as someitmes "keytools" increase size not decrease..

I hope this info is good..
Post Reply