Cleaning up color definitions - killing fm_gen colors in the MIF files

rebecca officer rebecca.officer at alliedtelesis.co.nz
Tue Jul 3 15:46:12 PDT 2012


Hi Gillian
 
Thought I'd put this onto the list too, in case other people have the same question.
 
To unlock colors, save as MIF, then search for the string:
 <ColorAttribute ColorIsReserved>
and globally replace it with nothing.
 
When you open the file as a .fm again, Framemaker re-applies the ColorIsReserved attribute to the basic color set (red etc) but not to the fm_gen colors. This means you can use View>Color>Definitions to delete the fm_gen colors, though that's slow. 
 
Instead, you can just delete the fm_gen colors in the MIF by finding them in the ColorCatalog section and deleting them. You need to delete the whole definition for each color, which looks like this:
 
 <Color 
  <ColorTag `fm_gen_147474'>
  <ColorCyan  50.000000>
  <ColorMagenta  100.000000>
  <ColorYellow  50.000000>
  <ColorBlack  0.000000>
  <ColorAttribute ColorIsReserved>
 > # end of Color
If you haven't got a huge number of files, this is pretty quick.
 
If you re-import CT formats from a clean template afterwards, FM will re-create the definitions it needs.
 
And the standard disclaimer: back up your files before you mess with MIFs!
 
Cheers
Rebecca


>>> Gillian Flato <Gillian.Flato at nexenta.com> 4/07/12 10:16 >>>

Rebecca,
I would love to know how to unlock those fm_gen colors. I have hundreds of them. They are just junk littering my files.
Thanks,
Gillian
 

From: rebecca officer [mailto:rebecca.officer at alliedtelesis.co.nz] 
Sent: Tuesday, July 03, 2012 3:12 PM
To: Gillian Flato
Subject: RE: Cleaning up color definitions

 

Hi Gillian

 

I've just looked up what we did and it was more complicated than I'd remembered. We were trying to clean out FM10's self-generated colours that it assigned to overlapping conditional text, and it turns out that FM locks those so you can't delete them. We started by doing search and replace on the MIF files to unlock the colours, then we ran a script.

 

I can look up more details if that sounds like the problem you're trying to solve, but our script was pretty rough and wouldn't be safe for anyone but us to use. The locked self-generated colours were a right pain until we worked out how to unlock them. That's not an issue unless you're using overlapping CT and want to change the CT indicator colours.

 

Cheers

Rebecca



>>> Gillian Flato <Gillian.Flato at nexenta.com> 4/07/12 04:09 >>>
Rebecca,

Do you just manually delete the colors or do you use a script?

Thanks
-Gillian

-----Original Message-----
From: rebecca officer [mailto:rebecca.officer at alliedtelesis.co.nz] 
Sent: Tuesday, July 03, 2012 3:00 AM
To: Gillian Flato
Subject: Re: Cleaning up color definitions

No, but we've done it pretty fast by editing MIF files. Let me know if you want more detail - I'm at home but can look it up tomorrow.

Cheers
Rebecca

>>> Gillian Flato <Gillian.Flato at nexenta.com> 07/03/12 6:06 PM >>>
Anyone know of a tool that allows you to clean up color definitions like BookVars cleans up variables?

Thank You,

Gillian Flato
Senior Content Developer
Skype: Gillian.B.Flato
Gillian.Flato at nexenta.com

[Description: os-oct]


NOTICE: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it.
If you have received this message in error please notify Allied Telesis Labs Ltd immediately.
Any views expressed in this message are those of the individual sender, except where the sender has the authority to issue and specifically states them to be the views of Allied Telesis Labs.


NOTICE: This message contains privileged and confidential
information intended only for the use of the addressee
named above. If you are not the intended recipient of
this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it.
If you have received this message in error please
notify Allied Telesis Labs Ltd immediately.
Any views expressed in this message are those of the
individual sender, except where the sender has the
authority to issue and specifically states them to
be the views of Allied Telesis Labs. 

NOTICE: This message contains privileged and confidential
information intended only for the use of the addressee
named above. If you are not the intended recipient of
this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it.
If you have received this message in error please
notify Allied Telesis Labs Ltd immediately.
Any views expressed in this message are those of the
individual sender, except where the sender has the
authority to issue and specifically states them to
be the views of Allied Telesis Labs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frameusers.com/pipermail/framers-frameusers.com/attachments/20120704/00f56725/attachment.htm>


More information about the framers mailing list