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

2012-07-04 Thread rebecca officer
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:
 
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:

 
  
  
  
  
  
 > # 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  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.offi...@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  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.offi...@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  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: 



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

2012-07-03 Thread rebecca officer
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:
 
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:
 
 
  
  
  
  
  
 > # 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  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.offi...@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  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.offi...@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  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.fl...@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.
___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to framers@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.