Grayscale colorspace now handled. Accepts integer values from 0 (black) to 255 (white).
CMYK also supports only 0-255 values Attached is a grayscale abiword file. Just converts to RGB, like my CMYK work. Yes, I know that this isn't 1.0 critical work, but it's fun and easy at the moment as I'm doing some similar code at my dayjob. Dom
<?xml version="1.0"?> <!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd"> <abiword xmlns:awml="http://www.abisource.com/awml.dtd" version="0.99.1" fileformat="1.0" styles="unlocked"> <!-- ===================================================================== --> <!-- This file is an AbiWord document. --> <!-- AbiWord is a free, Open Source word processor. --> <!-- You may obtain more information about AbiWord at www.abisource.com --> <!-- You should not edit this file by hand. --> <!-- ===================================================================== --> <styles> <s type="P" name="Normal" basedon="" followedby="Current Settings" props="font-family:Times New Roman; margin-top:0pt; font-variant:normal; margin-left:0pt; text-indent:0in; widows:2; font-style:normal; font-weight:normal; text-decoration:none; color:000000; line-height:1.0; text-align:left; margin-bottom:0pt; text-position:normal; margin-right:0pt; bgcolor:transparent; font-size:12pt; field-font:NULL; font-stretch:normal"/> </styles> <pagesize pagetype="Letter" orientation="portrait" width="8.500000" height="11.000000" units="in" page-scale="1.000000"/> <section> <p style="Normal"><c props="lang:en-US; color:gray(0)">black</c></p> <p style="Normal"><c props="lang:en-US; color:gray(100)">lighter gray</c></p> <p style="Normal"><c props="lang:en-US; color:gray(200)">really light gray</c></p> <p style="Normal"><c props="lang:en-US; color:gray(255)">white</c></p> </section> </abiword>
