以编程方式将 DITA 转换为 FrameMaker

发布于 2024-08-07 11:00:59 字数 282 浏览 2 评论 0原文

是否有可用的工具包(付费或其他方式)来帮助以编程方式将 DITA 文档转换为 FrameMaker 文档?

我正在尝试制作一个从 DITA 转换为多种格式的应用程序。我知道我可以使用 DITA Open Toolkit 来满足我的大部分需求,但我需要能够也可以创建本机 FrameMaker 文档。

编程语言并不重要,尽管我更喜欢 Java,因为我的应用程序将基于 Web。

Is there a toolkit available (paid or otherwise) to help with programmatically converting a DITA document to a FrameMaker one?

I'm attempting to make an application that converts to multiple formats from DITA. I know I can use the DITA Open Toolkit for most of my needs, but I need to be able to create a native FrameMaker document as well.

Programing language doesn't matter, altho I prefer Java as my application will be web based.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

风月客 2024-08-14 11:00:59

Arbortext 进出口具有工业实力且非常灵活。您也可以尝试 MIFtoGo。转换很棘手,因为源文档很少是一致的。前后不进行清理的转换几乎是不可能的。

Arbortext import-export is industrial strength and very flexible. You could also try MIFtoGo. Conversion is tricky because source documents are rarely consistent. Conversion without cleanup before and after is next to impossible.

不顾 2024-08-14 11:00:59

DITA-FMx 是您所需要的:

http://leximation.com/dita-fmx/

使用DITA-FMx,您可以从 ditamap 生成 FrameMaker 书籍(然后将 FM 书籍另存为 PDF)。

YouTube 上有一部电影向您展示了整个过程。只需搜索“PDF Publishing with DITA-FMx 1.1”(Stack Overflow 还不允许我在此处发布第二个 URL)

如果您想查看示例,只需向我发送一个 ditamap 的小样本,我将生成一个FrameMaker 为您准备的书。

DITA-FMx is what you need:

http://leximation.com/dita-fmx/

Using DITA-FMx, you generate a FrameMaker book from your ditamap (and then save the FM book as PDF).

There is a movie on YouTube that shows you how the process goes. Just search for "PDF Publishing with DITA-FMx 1.1" (Stack Overflow does not allow me to post a second URL here yet)

If you like to see an example, just send me a small sample of a ditamap and I'll generate a FrameMaker book for you.

粉红×色少女 2024-08-14 11:00:59

免责声明是,如果您要转换大量文档,那么使用完全使用 FrameMaker 的 DITA 支持的受支持的集成解决方案会更好。如果您希望以便宜的价格完成此转换(谁不想),您可以通过使用直接的 XSLT 和框架制作器模板来完成此转换。

首先创建 Framemaker 模板来处理文档的外观,然后使用 XSLT 将 DITA 内容映射到您在 Framemaker 中使用的内容标记。

您可以使用免费的 SAXON xslt 解释器来进行实际的转换。

以下是 adobe 的一些有关创作新 DITA 文档的参考材料:
http://help.adobe.com/en_US/FrameMaker/8.0/ 05h/dita.html

有关 Framemakers 原生 XML 支持的信息位于此处:
http://www.adobe.com/products/framemaker/pdfs/xml_fm7。 pdf

框架制造商手册也相当广泛地涵盖了该主题。希望有帮助

The disclaimer is that if you're converting a lot of documents you'll be better off with a supported well-integrated solution that fully uses FrameMaker's DITA support. If you're looking to do it on the cheap though (and who isn't) you can do this conversion by using straight XSLT and framemaker templates.

First create the framemaker template to handle the appearance of the document, then use XSLT to map your DITA content to the content tags you've used in Framemaker.

You can use the free SAXON xslt interpretor to do the actual conversion.

Here is some of adobe's reference material on authoring new DITA documents:
http://help.adobe.com/en_US/FrameMaker/8.0/05h/dita.html

Info on Framemakers's native XML support is here:
http://www.adobe.com/products/framemaker/pdfs/xml_fm7.pdf

The framemaker manuals also cover the subject quite extensively. Hope that helps

好菇凉咱不稀罕他 2024-08-14 11:00:59

事实上,FM 支持加载 DITA 文件(我尝试过 FM10 及更新版本),但要自动转换为 .FM 格式,您可以使用内部脚本机制,这仍然是一些手动工作。
我发现了一个现有的免费实用程序,可以执行最基本的操作,例如打开文件、“另存为”另一种格式并关闭它。
工具名称为 DZBatcher

DZbatcher 批处理文件示例:

Open "c:\My Dita Files\Doc1.dita"
SaveAs -d "c:\My FM Files\Doc1.fm"
Close "c:\My FM Files\Doc1.fm"
Open "c:\My Dita Files\Doc2.dita"
SaveAs -d "c:\My FM Files\Doc2.fm"
Close "c:\My FM Files\Doc2.fm"
Exit

Adobe 有一个名为 RoboHelp 的框架,它可能是基础架构为此,但我没有深入挖掘,因为这个实用程序完美地完成了工作。

在我的 SW 流程中,我使用 python 脚本创建了这个批处理文件,该脚本扫描输入目录中的所有文档,并为每个文件添加 3 行,如上所示。

我使用 FM2015 来完成此任务。

Indeed FM supports loading DITA files (I tried FM10 and newer) but to automate conversion to .FM format you either use the internal scripting mechanism which is still some manual work.
I have found an existing free utility that can do most basic operations like opening a file, 'saving as' another format and closing it.
tool name is DZBatcher

Example DZbatcher batch file:

Open "c:\My Dita Files\Doc1.dita"
SaveAs -d "c:\My FM Files\Doc1.fm"
Close "c:\My FM Files\Doc1.fm"
Open "c:\My Dita Files\Doc2.dita"
SaveAs -d "c:\My FM Files\Doc2.fm"
Close "c:\My FM Files\Doc2.fm"
Exit

Adobe has a framework called RoboHelp which is probably the infrastructure for this, but I didn't dig deeper as this utility did the job perfectly.

In my SW flow, I created this batch file using a python script that scan all the docs in an input directory and added 3 lines per file as seen above.

I used FM2015 for this task.

花伊自在美 2024-08-14 11:00:59

Bryan,经过十年将 Frame、Word、Interleaf 等转换为 XML 的经验,我可以告诉您 Adob​​e 还没有完全涵盖它。如果您还拥有 Leximation 插件或知道如何对 Adob​​e 专有 EDD 进行编程,则 FrameMaker 中的 DITA 支持效果最佳。如果不在 FrameMaker 中对 EDD 进行编程,则无法进行 DITA 专业化。

Bryan, after a decade's experience converting Frame, Word, Interleaf, etc to XML, I'll tell you that Adobe doesn't have it fully covered. The DITA support in FrameMaker works best if you also have the Leximation plug-in or know how to program the Adobe proprietary EDD. You can't do DITA specialization without programming the EDD in FrameMaker.

病毒体 2024-08-14 11:00:59

FrameMaker 对 DITA 具有出色的支持。您可以打开 DITA 主题,并将它们(如果您愿意)另存为 .fm 文件。您还可以打开 DITAMAPS,并将它们另存为 FrameMaker 书籍文件或复合(整体).fm 文件。不需要编写解析器。

PS:我说的是FM 12。

FrameMaker has excellent support for DITA. You can open DITA topics, and save them (if you wish) as .fm files. You could also open DITAMAPS, and save them as FrameMaker book files, or as composite (monolithic) .fm files. There is no need to write a parser.

PS: I am talking about FM 12.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文