Strange problem compiling a CHM file

I had to write some documentation. I wrote each page in MS Word, and then saved each * .docx file as htm. I am using the "HTML Help Workshop" (from microsoft) to compile a chm file.

I managed to create a chm file, but the problem is that not all images in the chm file are displayed. I tried to decompile the * .chm file to a different folder and open each .htm file in a web browser. All images are displayed correctly.

Then why they do not appear in the chm file. Oddly enough, only some of them are not displayed. I checked if the image format creates a problem, but all the images have the same format. I checked if the file name is a problem, but all the images are named as the image [001-100] .jpg in the respective folders.

Any idea what is going wrong?

+3
source share
1 answer

As you know, the HTML Help Workshop (HHW) has problems with HTML generated by Word (or better: Word creates awful HTML). Some versions put VML encoding around IMG tags that HHW cannot handle.

Possible solutions:

  • In Word: Uncheck the option "Rely on VML to display graphics in browsers" ("Tools"> "Options"> "General"> "Web Options").
  • In Word: Save as "filtered HTML."
  • In HHW: manually add images to the [FILES] section of the project.

Let me know if this helps.

HTML 1.X FAQ

+6

Source: https://habr.com/ru/post/1757886/


All Articles