创建Safari Webarchives的跨平台方式 [英] Cross-Platform Way of Creating Safari Webarchives

查看:109
本文介绍了创建Safari Webarchives的跨平台方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找并且没有找到任何可以创建Safari的webarchive格式的工具的参考。

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?

理想情况下,我想构建一个工具,它可以获取一个目录并拆分一个webarchive,以便加载到iPhone中。 / p>

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

There are other libraries as well, such as Mac-PropertyList on CPAN for Perl.

这篇关于创建Safari Webarchives的跨平台方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆