• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Importing a Microsoft Word document as a FrameMaker Book (not document)

Explorer ,
Jun 15, 2020 Jun 15, 2020

Copy link to clipboard

Copied

I've just upgraded to 2019 from 2012. I work in an environment where

  1. An author writes the first several drafts of a fiction manuscript in FrameMaker.
  2. Once done, the FM document is ported over into Microsoft Word so that the editing team and beta readers can collaborate during this process.
  3. Once this process is complete, the document is ported back in FM for typesetting and publishing.

We're dealing with fiction manuscripts holding close to 300,000 words each. These are non-XML documents.

In Microsoft Word, each chapter lives in its own section. We've upgraded to 2019 to leverage the import function that would allow us to bring a document from Word into Framemaker. From the preliminary exploration, the expanded import feature maps Word paragraph and character styles to FrameMaker's which is great. However, I do not believe that this import function can map each chapter in Word to a document included in the book.

The alternatives would be to import the word document into FrameMaker and

  1. Keep it as a single document. Would there be performance concerns with FM 19 x64 with documents holding 300,000 words?
  2. Turn the document into a book manually.
  3. Rely on a script to do that. This would be preferable and before we sit down and write such a script, I wanted to ask if you would happen to know of such a script?

 

FM 19 has gone a long way to simplify the interaction between FM and Microsoft Word, especially since it is able to publish HMTL which Word can import. Turning a document into a book would be a great addition.

Thanks for any help or feedback you might have on this.

TOPICS
Feature request , Scripting

Views

384

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 15, 2020 Jun 15, 2020

Copy link to clipboard

Copied

I don't know of a way to detect section breaks when importing a Word document programmatically. But, you could use Visual Basic to search the Word doc for section breaks and break it up into chapters: 

https://stackoverflow.com/questions/1497050/word-vba-section-break-character-in

Then, write an Extendscript to build a book from those files.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

LATEST

Hi Les,

 

Thanks for your kind reply. I agree with you that it is very possible to break a work document into multiples using VBA. I happen to also be in IT so I'm very comfortable with VBA. It is definitely a solution worth exploring. I was hoping that there would be a script already on the FM side that would take care of it.

 

I might end-up writing that script and posting it back here 🙂

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines