Importing Html into Adobe Indesign

时光毁灭记忆、已成空白 提交于 2019-12-03 06:01:28

You'll need to translate the HTML tags into CharacterStyles, and apply those to the XML on import.

The tricky thing is that CharacterStyles can't be applied nested like HTML can, so you need to make a CharacterStyle for each combination that might be present. Or you can apply styles to the specific run of text, with a script.

Pandoc now support export to ICML (Adobe InCopy's XML format that can be "placed" in InDesign documents). To convert HTML to ICML:

pandoc --standalone -o output.icml input.html

See Importing Markdown in InDesign in the pandoc wiki for details around the workflow.

We have had some bad experiences importing xml into InDesign directly.

If you are still having trouble with this issue, check out the open source Ickmull code library. It converts an xhtml file to an idml file, that can then be opened in InDesign. This might be a better web to print workflow for you.

http://code.google.com/p/ickmull/

Maybe you can use a Markdown to InDesign translater as a starting point: http://www.jongware.com/markdownid.html

Peter Krauss

Adobe products are "closed" for universal standards (!) importation, like to import XHTML.

How to PROTEST against Adobe?!

The biggest problem arises when we have many files...


A solution by batch processing (a lot of articles)

... The only way that I can use today (2013) is this (semi-automatic) procedure:

  1. [manual, prepare] Check my InDesign "template" file, that will be used as "importer": styles with legible names must by defined. PS: they are all visible (listed) in a HTML+CSS exporting.
  2. [manual, prepare] Adapt my (X)HTML files to express all relevant styles with CSS class names (not by style attribute neither by strange class names);
  3. [automatic, batch processing] Convert all my (X)HTML files to DOC, automatically using Python OpenDocument Converter.
  4. [InDesign assisted, final processing] Import each DOC from a "template" (item 1) file clone at InDesign. The classes (item 2) will be automatically transformed by InDesign styles.

This procedure is better than IDML because use directaly the XHTML as content source for InDesign. It is not perfect for all applications, but avoids use of non-standard conversion by IDML, avoid to learn IDML, avoid IDML limitations, and avoids risks of IDML bugs... So, I think is faster than try and try IDML procedures.


Another procedure — better, because it allows to express things like footnotes — is to prepare a direct convertion from XML to MS-Word, by a XSLT that transforms XML into DOCX or RFT... Do you have a link or clue for this kind of procedure?

This tool is a decent HTML to InDesign importer: https://www.id-extras.com/html-import-script

It may take some rework, but it brings in styles that you can edit and has saved me a bunch of time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!