简体   繁体   English

linux下的html到chm文件

[英]html to chm file under linux

I have html files/Directories, I want to convert them to .chm help file, under Linux using command lines at Terminal? 我有html文件/目录,我想将它们转换为.chm帮助文件,在Linux下使用终端的命令行?

Any help would be appreciated. 任何帮助,将不胜感激。

The Free Pascal compiler, version 2.4.4 or higher has a CHM compiler for *nix called "chmcmd". Free Pascal编译器2.4.4或更高版本的* nix的CHM编译器称为“chmcmd”。 I would recommend getting it from version 2.6.0. 我建议从版本2.6.0获取它。 It works on MSHelp .hhp project files. 它适用于MSHelp .hhp项目文件。

The compiler is also available in source (styled like a classes library), so you could roll your own. 编译器也可以在源代码中使用(样式类似于类库),因此您可以自己编译。 It is crossplatform, but Big Endian platforms are not tested very well. 它是跨平台的,但Big Endian平台没有经过良好的测试。

2.6.0 is from januari 1st 2012, so you might need to get it from a "bleeding edge" packages repository of your distribution. 2.6.0来自2012年1月的januari,因此您可能需要从您的发行版的“前沿”软件包存储库中获取它。

CHM is a proprietary Microsoft format, so keep in mind most Open Source tools will likely be focused on reading and converting chm to html . CHM是一种专有的Microsoft格式,因此请记住,大多数开源工具都可能专注于读取和转换chm to html if you want to create CHM file on Linux then you will need a CHM compiler that you can use with wine . 如果你想在Linux上创建CHM文件,那么你将需要一个可以与wine一起使用的CHM compiler details are on the following link Compiling_CHM_help_files_in_Linux_with_HHC_and_Wine 详情请见以下链接Compiling_CHM_help_files_in_Linux_with_HHC_and_Wine

You can do that with libchm, you find it http://www.jedrea.com/chmlib/ . 你可以用libchm做到这一点,你可以找到它http://www.jedrea.com/chmlib/

It contains extract_chmLib, which extracts html pages from the help pages to a directory. 它包含extract_chmLib,它从帮助页面中提取html页面到目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM