[Framers] Setting up coloured text in Structure
Fei Min Lorente
FeiMin.Lorente at onsemi.com
Sun Feb 25 18:41:46 PST 2018
Thanks to everyone who responded. I'm going to go with Rob's solution because I understand how to apply it and I think the answer is no, I can't directly use the value of the colour attribute to choose which colour to apply.
Wim, I hadn't heard of the outputclass attribute before, so I looked it up and it looks like a DITA thing. I should have mentioned that this is a home-grown EDD and that I'm using FrameMaker 10, so I don't think that attribute is available to me.
If anyone is reading this for the first time, here are the answers I got:
------------------------------
Message: 1
Date: Fri, 23 Feb 2018 09:41:25 +1030
From: Rob Wallis <robnurflugel at gmail.com<mailto:robnurflugel at gmail.com>>
To: framers at lists.frameusers.com<mailto:framers at lists.frameusers.com>
Subject: Re: [Framers] Setting up coloured text in Structure
Message-ID:
<CAKWL4SiuAmn1S5aZ5tKBGZf-db24ybK5g+R1tVbYCN2pRXnV2g at mail.gmail.com<mailto:CAKWL4SiuAmn1S5aZ5tKBGZf-db24ybK5g+R1tVbYCN2pRXnV2g at mail.gmail.com>>
Content-Type: text/plain; charset="UTF-8"
I'd set it up like you would an emphasis wrapping element. Once you specify the list, you can use it wherever that element is allowed. For instance:
Attribute list
Name: Type Choice Optional
Choices: Bold, ........
Text format rules
If context is: [Type = "Bold"]
Text range.
Font properties
Weight: Bold
but replace Bold with the colour etc.
Hope it points you in the right direction
------------------------------
Message: 2
Date: Fri, 23 Feb 2018 10:24:52 +0100
From: Wim Hooghwinkel - idtp <wim at idtp.eu<mailto:wim at idtp.eu>>
To: FeiMin.Lorente at onsemi.com<mailto:FeiMin.Lorente at onsemi.com>
Cc: Framers <framers at lists.frameusers.com<mailto:framers at lists.frameusers.com>>
Subject: Re: [Framers] Setting up coloured text in Structure
Message-ID: <D1FCB1FC-3571-4A4B-8A83-261BED67EAC0 at idtp.eu<mailto:D1FCB1FC-3571-4A4B-8A83-261BED67EAC0 at idtp.eu>>
Content-Type: text/plain; charset=us-ascii
Hi Fei Min,
you should use paragraph and chatracter formats for your elements. Use the outputclass value to determine the format to use. Then change the formats in your template as needed.
Vriendelijke groet / Kind regards,
Wim Hooghwinkel
Fei Min Lorente
Business Process Analyst
Medical and Wireless Division
feimin.lorente at onsemi.com<mailto:feimin.lorente at onsemi.com>
+1 519-884-9696 ext. 2297 | Waterloo office
+1 519-831-4931 | mobile
+1 905-631-5724 | fax
www.onsemi.com<http://www.onsemi.com/>
More information about the Framers
mailing list