Copy link to clipboard
Copied
I am using Framemaker with a .MIF file. This file has a lot of custom formatting. Sometimes text is bold, sometimes it is italic ... here is the issue:
What should I do?
I put this into ChatGPT and got this answer:
If the actual answer is to use a script ... I'll be sad.
Thanks in advance!
Copy link to clipboard
Copied
What FM version?
Did this ever work?
My initial suspicion would be that the MIF is not strictly valid.
If you can, create a minimal case that fails, and post the MIF for it here as a text file. Be sure to indicate what it's supposed to look like.
Copy link to clipboard
Copied
Are the character overrides done with local formatting or are you using a named character format?
Copy link to clipboard
Copied
<ParaLine
<String ` '> <Font <FWeight `Bold'> ><String `Acetal'><Font <FWeight `'>><String `'>
> # end of ParaLine
> # end of Para
> # end of CellContent
> # end of Cell
<Cell
<CellContent
<Para
<PgfTag `TableTextRight'>
<Pgf
<PgfAlignment Right>
> # end of Pgf
Copy link to clipboard
Copied
It is literally a cell with the bolded text "Acetal" on it.
Copy link to clipboard
Copied
One thing I would try: create a simple FrameMaker document with the same formatting; a paragraph with local formatting applied to the entire paragraph. Save it as MIF and then open the MIF back up in FrameMaker and see what happens. If the formatting is stripped, then you know it is an issue with the MIF parser. If the formatting remains, check the syntax of that portion of the MIF file and see if your process is using the same syntax.
Copy link to clipboard
Copied
I just tried this and the font formatting is preserved on the round trip. Your MIF code is not quite right; I think this is how you want to do it for a paragraph with local formatting on the entire paragraph:
<Para
<PgfTag `Body'>
<Pgf
<PgfFont
<FWeight `Bold'>
> # end of PgfFont
> # end of Pgf
<ParaLine
<TextRectID 19>
<String `This is a body paragraph with bold applied to the entire paragraph.'>
> # end of ParaLine
> # end of Para
Copy link to clipboard
Copied
Here is how to code it if you want to format some text within a paragraph:
<Para
<PgfTag `Body'>
<ParaLine
<TextRectID 19>
<String `This is a body paragraph with '>
<Font
<FWeight `Bold'>
> # end of Font
<String `bold'>
<Font
<FTag `'>
> # end of Font
<String ` applied to text in the paragraph.'>
> # end of ParaLine
> # end of Para