将 indesign 输出转换为 html5
我想编写一个查看器,将 in-design 输出格式转换为 html5 格式,并且 adobe indesign 中的所有用户设计都可以在浏览器中显示,但我不知道哪种输出适合我,我想我可以检索有关 adobe 的所有信息indesign在idml导出中,但问题是解析这样的XML并以html5格式显示标签,我想知道是否有可能将输出格式转换为html5的简单方法? 是否可以下载 adobe indesign SDK 并使用其方法来实现此目的?
I want to write a viewer that convert in-design output format to html5 format and all the user design in adobe indesign can display in browser but i do not know which output is suitable for me, i think i can retrieve all info about the adobe indesign in idml export,but the problem is parsing such XML and display the tags in html5 format,i want to know is it possible the simple way to convert the output format into html5?
is it possible to download the adobe indesign SDK and use its method to this purpose?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 in5 从 InDesign 导出 HTML5(布局完整)。
全面披露:我是 in5 的创建者。
You can use in5 to export HTML5 (layout intact) from InDesign.
Full disclosure: I am the creator of in5.
导出到 EPUB 将生成 XHTML 1.1。 InDesign 生成的 Epub 文件是一个 zip 文件,其中包含许多文件。 (至少)其中之一是 XHTML 文件。
XHTML 1.1 肯定是比 idml 更容易使用的来源,但是您必须确保 ePub 导出足够好(页面不会与 InDesign 中的页面完全相同)。
这会是一个解决方案吗?
InDesign CS4 支持 EPub 导出(据我所知,基于 JavaScript 的导出选项位于对象模型之外,还有内置导出选项,属于 CS5 的对象模型的一部分)。
Exporting to EPUB would result in XHTML 1.1. The Epub file that InDesign generates is a zip file, in which you will find a number of files. (At least) one of them is an XHTML file.
XHTML 1.1 would surely be an easier source to use than the idml, however you will have to make sure that the ePub export is good enough to start with (the pages won't come out exactly the same as in InDesign).
Would that be a solution?
EPub export is supported from InDesign CS4 (JavaScript based export option, outside the object model, as I understand it and a built-in export option, part of the object model, from CS5).
您没有提及您使用的 InDesign 版本。 CS5、CS5.5 和 CS6 都允许您导出为 HTML。问题是 HTML 是版本 4,它会创建写得很糟糕的 CSS。我喜欢做的是使用 XML 来构建我自己的 HTML。只需创建一组您想要使用的 HTML5 标签,然后将现有的段落和字符样式映射到 XML 标签即可。
完成后,您将拥有基本的内容结构。然后,我使用“结构”窗格根据需要添加不同的元素。您可以根据需要在此处添加父级或子级,然后导出为 XML。保存文件时,只需将其名称更改为 .HTML 并编辑代码以删除对“xml”的一个引用。
这需要一点时间,但非常可行。
You don't mention what version of InDesign you are using. CS5, CS5.5 and CS6 all allow you to export to HTML. The problem is that the HTML is version 4 and it create badly written CSS. What I like to do is to use XML to build my own HTML. Just create a set of HTML5 tags you want to use and then Map the existing Paragraph and Character styles to the XML tags.
When you're done you will have a basic content structure. Then I use the Structure pane to add different elements as needed. You can add Parents or children as you need to right there and then export to XML. When you save the file, just change its name to .HTML and edit the code to remove the one reference to "xml".
It takes a little time, but it is very doable.