Setting Font colur in Word to "Automatic"

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Techno
Sr. Propeller Head
Posts: 193
Joined: Fri Dec 09, 2005 9:23 pm
Location: NORTHAMPTON, England, UK
Contact:

Setting Font colur in Word to "Automatic"

Post by Techno »

This relates to generating Word output, with Flare 8.

Because I am generating what are intended to be "accessible" Word files for partially sighted and blind people who use screen readers, I ideally need the fornt colours when they arrive in Word, to be set to "Automatic" as opposed to a fixed colour.

An example of this is where someone wishes to "Reverse" colours to show say white font on a black background. (A standard Accessibiliuty feature of Windows) If the font colour is set to black, then when this reverse colour feature is used, you end up with black on black.

Anyone any thoughts other than having to edit the Word document's styles?

George.
George Bell
Techno-Vision Systems Ltd., U.K.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Setting Font colur in Word to "Automatic"

Post by LTinker68 »

You could try setting the font-color to inherit, if that's an option.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Techno
Sr. Propeller Head
Posts: 193
Joined: Fri Dec 09, 2005 9:23 pm
Location: NORTHAMPTON, England, UK
Contact:

Re: Setting Font colur in Word to "Automatic"

Post by Techno »

Sadly "inherit" doesn't appear to be an option.

George
George Bell
Techno-Vision Systems Ltd., U.K.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Setting Font colur in Word to "Automatic"

Post by LTinker68 »

Looks like the only options for that attribute are color values (no inherit or auto).

I think your only option is to have to stylesheets in your project. One that contains print-only styles for Word output, and one that has default and print-only styles for online output (and PDF output, if you want). (The print-only styles in the second stylesheet is for printing from the browser.)

If most of your styles are identical between the two except the color definitions, then you can be a bit more creative. Create a second stylesheet that contains only the font-color definitions you want for online output. At the top of that stylesheet (you'll have to open it in the Internal Text Editor), add a line that says @import url(Styles.css); where Styles.css is the name of the other stylesheet (the example assumes both stylesheets are in the same folder). In the original stylesheet, delete all the font-color definitions. You then set your Word target to point to the original stylesheet (Styles.css) and you point the online target to point to the new stylesheet. When Word output is generated, the original stylesheet without color definitions is used to build the output. When online output is built, the original stylesheet and the new stylesheet with font colors are used.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply