cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

is it possible to change definition of named color?

naglists
1-Newbie

is it possible to change definition of named color?

Hi,

I'm trying to change the definition of a named color (occasionally referred
to as a "predefined color"). Is this possible?

I know I can change fontcolorgray1 but I don't think I can change gray1
which is what I need to do. (Well, *want* to do. I can change the XML but
I'd save a lot of time and effort if I could simply re-map gray1 to another
color.)

--
Paul Nagai
4 REPLIES 4

On Mon, Jan 25, 2010 at 2:26 PM, Paul Nagai <-> wrote:

> I'm trying to change the definition of a named color (occasionally referred
> to as a "predefined color"). Is this possible?
> I know I can change fontcolorgray1 but I don't think I can change gray1
> which is what I need to do. (Well, *want* to do. I can change the XML but
> I'd save a lot of time and effort if I could simply re-map gray1 to another
> color.)
>

I forgot to ask the root question, not how to make my solution work! A bunch
of our tables have cells set to gray1 (through the color picker). We now
want it to look like gray3 without updating the XML. Changing the definition
of backgroundcolorgray1 is the trick.

So, what I needed to do was:
set backgroundcolorgray1=gray3

My new problem with this solution is that this is all well and good on
Editor. The color setting in Editor doesn't change the output which is
produced on Publishing Engine. I know how to set this globally on the PE
server. I think I know how to set it for a doctype. I'm not sure I know how
to set it for a specific document or for a specific run of a document.

I can imagine finding or introducing a tag unique to the document and
triggering a system-func that ran an ACL, but I'm wondering if there is a
less func-y way to do it.

--
Paul Nagai

docname.acl.

Is it Friday?

Here's an Arbortext excerpt - just ran across it and thought I'd pass it along:

Highlighting text using color

Arbortext Editor allows the use of 20 predefined colors — aqua, black, blue, brown,
gray1, gray2, gray3, gray4, gray5, green, lime, maroon, navy, olive, orange, red, teal,
white, yellow, and violet — to highlight text in the Edit window display, published output,
and print output. The definitions of these predefined colors can be changed if needed. A
specific command controls the RGB value of each predefined color for both font and
background colors. Refer to the set backgroundcolorblack command or the set
fontcolorblack command for examples.

You can set both foreground (text and any associated underlines or strike-throughs) and
background color in a stylesheet. Foreground and background colors can be set by default
and can be inherited. Background color as defined in the highlight tag is the application of
color to the non-text area between the text baselines. If you wish to set the background of
an entire window, use the window_set command canvasbackground option.

Special features — The background color white means transparent, and is the default
background color.

REF: Arbortext FOSI Reference.pdf page 158

John T. Jarrett
BAE Systems | Arbortext version 5.4 | LOGSA XSL-FO v 1.5

Thanks, John. I've got the ACL command (set backgroundcolorgray1=gray3) but
now I'm having trouble getting it to apply to one document run through PE. I
can set it in Editor from the command line or an docname.acl. I can't get
that setting set on PE so it applies only to one document. Yet.

On Thu, Jan 28, 2010 at 2:42 PM, John Jarrett
<->wrote:

> Here's an Arbortext excerpt - just ran across it and thought I'd pass it
> along:
>
> Highlighting text using color
>
> Arbortext Editor allows the use of 20 predefined colors — aqua, black,
> blue, brown,
> gray1, gray2, gray3, gray4, gray5, green, lime, maroon, navy, olive,
> orange, red, teal,
> white, yellow, and violet — to highlight text in the Edit window display,
> published output,
> and print output. The definitions of these predefined colors can be changed
> if needed. A
> specific command controls the RGB value of each predefined color for both
> font and
> background colors. Refer to the *set backgroundcolorblack *command or the
> *set*
> *fontcolorblack *command for examples.
>
> You can set both foreground (text and any associated underlines or
> strike-throughs) and
> background color in a stylesheet. Foreground and background colors can be
> set by default
> and can be inherited. Background color as defined in the highlight tag is
> the application of
> color to the non-text area between the text baselines. If you wish to set
> the background of
> an entire window, use the *window_set command canvasbackground *option.
>
> Special features — The background color white means transparent, and is the
> default
> background color.
>
> REF: Arbortext FOSI Reference.pdf page 158
>
> John T. Jarrett
> BAE Systems | *Arbortext version 5.4 | *LOGSA XSL-FO v 1.5
>
Announcements

Top Tags