Skip to main content
Known Participant
May 14, 2014
Question

Adding MIFs to books, and opening them as ASCII text

  • May 14, 2014
  • 3 replies
  • 788 views

Hi, here are a couple of questions about working with MIF files in FrameMaker 12.

In the 'ADOBE FRAMEMAKER 12 MIF Reference" PDF, in Chpt. 2 (page 9), it says:

"If you use FrameMaker to edit a MIF file, you must prevent it from interpreting MIF statements when you open the

file by holding down a modifier key and clicking Open in the Open dialog box."  (in Windows, the Modifier Key is Control or Shift)... I can't seem to get this to work in Frame 12 - if I shift- or Control-click the File menu, it doesn't *have* an Open command. If I go via an Open dialog box, it doesn't take any notice of the shift or control key being held down. Is this broken in Frame 12, or am I doing it wrong?

Also, I am interested in adding MIF files to a book. (I'll tell you why in a minute but if I click the 'Add file' icon in the book pane, and select the MIF file and click open, I get a pop up dialogue saying:

"Add Non-Document File to Book:   

The file '<filename>.mif' is not in recognizable format.
Are you sure you want to add this file to '<bookname>.book'?"

I am not sure why it's generating this error - I can still click "Add" and it adds it OK and can open the MIF file fine. Is this a bug?

(It is a "<MIFFile 12.0>" generated from Frame12 itself, by the way).

The reason I am trying this is because I thought maybe I could install a copy of Frame12 on our software build server,

and check in my source files as MIFs. (Because they're ASCII files, the SVN version control will be able to show 'diffs' for my text changes).

The build server could then be scripted to run Frame from the command line, open the book with the MIF files, export them as CHMs and thus build our HTML Help during each nightly build, with the source all nicely under SVN source control.
... not sure if anyone has tried this before?

    This topic has been closed for replies.

    3 replies

    Arnis Gubins
    Inspiring
    May 16, 2014

    David,

    Using the MIF for diffs also has more issues than some of the ones that Error mentioned. FM includes timestamps for a number of features such as cross-refs and may update some internal unique IDs that would chnge even if there are no functional text changes. SVN would pick up these deltas every time giving a lot of false hits to ignore. Search the Frameusers archive on using SVN and other repositories for more details on trying to use a programming tool for working ith FM files.

    FM12 should open the MIF as a text file using the Shift-key  modifier, but I'm not able to check this out right now. Regardless, I would recommend using a good text editor over FM for editing MIF files. For just examing them,  download Graham Wideman's MIFBrowse utility.

    David__DAuthor
    Known Participant
    May 16, 2014

    Cheers for the replies, guys.

    (And I can actually reply today, now that Adobe has deigned to fix Adobe ID logins, which were broken for the best part of a day! err... good thing they haven't switched to a cloud-based software model then, eh? )


    I take the points above regarding the ease of using MIFs with SVN, but bear in mind I am currently checking in CHMs, which provide no diff ability whatsoever, do even if MIF were clunky it would still be an improvement.

    But this is all academic as I can't afford a FrameMaker Server license anyways! So I won't be doing it.

    In any case - this wasn't really meant to be a thread about using MIF with SVN,

    it was to see whether Frame12 had bugs with opening MIFs and adding them to books.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 14, 2014

    Re: your server plan – that will probably violate your license

    David__DAuthor
    Known Participant
    May 14, 2014

    How so? I meant buying an *extra* Frame license and installing it on the build server. Nothing wrong with that, surely?

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 14, 2014

    “regular” FM isn’t licensed to be installed on a server – that’s why they have a FM Publishing Server version

    David__DAuthor
    Known Participant
    May 14, 2014

    By the way, in the book's Add a file dialog, MIF is one of the file types present in the drop-down filter! So why it thinks they're not a valid file type to open, I have no clue.......