问题描述
我一直在搜索,但没有找到任何可以创建 Safari 网络存档格式的工具的参考资料.
I've been searching around and haven't found any reference to tools that can create Safari's webarchive format.
有没有人有关于创建这种格式的代码的指针,或者至少有格式参考文档?
Does anyone have pointers to code for creating this format, or at least a format reference documentation?
理想情况下,我想构建一个工具,它接受一个目录并拆分一个网络存档,以便加载到 iPhone 中.
Ideally I'd like to build a tool that takes a directory and splits out a webarchive, for loading into a iPhone.
推荐答案
扩展 Ben 所说的:CFLite(Core Foundation 的跨平台开源子集)附带一个 plist 解析器.如果您可以链接到它,那么使用 .webarchive 文件应该非常简单,这些文件只是将所有文件(HTML、CSS 等)连接成一个的属性列表.
To expand on what Ben said: CFLite (the cross-platform open-source subset of Core Foundation) ships with a plist parser. If you can link against that, it should be quite simple to work with .webarchive files, which are simply property lists that concatenate all files (HTML, CSS, etc.) into one.
还有其他库,例如 Mac-PropertyList 关于 Perl 的 CPAN.
There are other libraries as well, such as Mac-PropertyList on CPAN for Perl.
这篇关于创建 Safari Webarchives 的跨平台方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)