On 02/03/2017 12:38 PM, Reilly, Aidan [TYCO GBS - Cork] wrote:


I am evaluating the W2X tool. Specifically, I want to convert word
documents to dita.



In the default output, files are named for the topic id, for example
d0e35.dita. Is there a way to convert the files and use the file title
to create the filename?

Not sure to understand "file title".




For example, fire_alarm_network_annunciators.dita




For now, the only way to get topic filenames like "fire_alarm_network_annunciators.dita" is to edit your DOCX document using MS-Word and insert a *Bookmark* before each paragraph having a "heading" style, whether stock style ("Heading 1", "Heading 2", etc) or custom style.

https://support.office.com/en-us/article/Add-or-delete-bookmarks-f68d781f-0150-4583-a90e-a4009d99c2a0

It's the Bookmark name which is used to create the DITA topic filename.



This is what has been done in our manual:

http://www.xmlmind.com/w2x/_distrib/doc/manual/manual.docx

See corresponding DITA map:

http://www.xmlmind.com/w2x/_distrib/doc/manual/manual_map.zip

and bookmap:

http://www.xmlmind.com/w2x/_distrib/doc/manual/manual_bookmap.zip

The above .zip archives do not contain any file having a name like "d0e35.dita".


--
XMLmind Word To XML Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to