<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Shunsaku-san —<br>
<br>
</div>
<blockquote type="cite"
cite="mid:CAOyMh2rvu+K8W1aTTAZGG8LuWiW0UeH-q35w_13UH-b6n5VE5Q@mail.gmail.com">
<pre wrap="">I'm currently working on extending dvipdfmx to support various color
models. (mostly finished but testing remains)
This is implemented just as an extension to the existing color special
of dvipdfmx, pdf:bcolor and pdf:ecolor, of the form:
\special{pdf:bcolor @colorspace [1.0 0.4 0]}
...
\special{pdf:ecolor}
where @colorspace is an object representing color space defined
somewhere before. (/DeviceCMYK and other device color model
names can also be used in place of object reference)
For example, to use ICCBased color space,
\special{pdf:fstream @iccp (sRGB.icc) << /N 3 >>}
\special{pdf:obj @colorspace_srgb [ /ICCBased @iccp ]}
\special{pdf:bcolor @colorspace_srgb [0.0 1.0 0.0]}
Hello World!
\special{pdf:ecolor}
Here, ICC profile "sRGB.icc" is loaded. Other color models are also
supported. First define color space by pdf:obj and just refer to that
object in pdf:bolor.
Does this look OK?
Thanks,
Shunsaku Hirata
</pre>
</blockquote>
<br>
I am not sufficiently experienced in this field to say whether or
not it looks "OK", but it certainly looks extremely useful. I hope
that Ulrike can offer a more expert oninion. If you were to make
this change, would it automatically carry through to xdvipdfmx (as
slaved by XeTeX), or would that require additional work on your part
?<br>
<br>
<i>Philip Taylor</i><br>
<br>
<br>
</body>
</html>