Cross-Platform Way of Creating Safari Webarchives(创建 Safari Webarchives 的跨平台方式)
问题描述
我一直在搜索,但没有找到任何可以创建 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 的跨平台方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:创建 Safari Webarchives 的跨平台方式
基础教程推荐
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
