0

通过使用:

hh -decompile test sample.chm

我在 test 文件夹中获得了反编译的 CHM 文件,以及 toc 和 index 文件,但是项目文件丢失了,所以我无法重新创建 CHM 文件,而无需手动重新创建项目文件。

问题是它不是单个 CHM 文件,所有这些 CHM 文件都是从源文档自动生成的,但是定义字体的 CSS 使用不幸的 sans-serif 字体系列,这在 CHM 渲染(IE)中看起来很难看,我的任务是纠正这个问题。

有人知道可以从 CHM 中提取项目文件的工具,所以我可以在一分钟内完成吗?

4

1 回答 1

0

I made quick batch script to generate project file.

Disclaimer: script assumes toc and index files share same name, and opening page is index.html

Usage: hhp.bat toc-base-name

@echo off
echo [OPTIONS] > %1.hhp
echo Binary TOC=No >> %1.hhp
echo Binary Index=No >> %1.hhp
echo Compiled file=%1.chm >> %1.hhp
echo Contents file=%1.hhc >> %1.hhp
echo Default Window=%1 >> %1.hhp
echo Default topic=index.html >> %1.hhp
echo Display compile progress=No >> %1.hhp
echo Full text search stop list file=%1.stp >> %1.hhp
echo Full-text search=Yes >> %1.hhp
echo Index file=%1.hhk >> %1.hhp
echo Language=0x409 >> %1.hhp
echo Title=%1 documentation >> %1.hhp
echo. >> %1.hhp
echo [WINDOWS] >> %1.hhp
echo %1="%1","%1.hhc","%1.hhk","index.html","index.html",,,,,0x63520,220,0x10384e,[0,0,1024,768],,,,,,,0 >> %1.hhp
echo. >> %1.hhp
echo [FILES] >> %1.hhp
dir/b/s/a-d  | findstr /vi ".hh .bat" >> %1.hhp
于 2013-01-31T15:48:31.023 回答