Re: DVI Specials



В Сбт, 19/08/2006 в 13:29 -0300, Ricardo Markiewicz пишет:
> Hi all!, I'm working on adding specials support to the DVI backend[1].
> At this moment I've complete Color support, and have some doubts.
> 

Hi Ricardo, very great news. No doubts, just do it :)

> Source code : should I patch mdvi-lib? or create something like
> dvi-special-color.c in ~/dvi ?
> 

I don't think there is much difference, but probably in mdvi will be
better. Since mdvi is rather standalone library, it will need color
support anyhow. But it's ok to implement it in pixbuf-device as well.
This code is so dirty that I don't think it will be worse.

> Named Colors : DVI Special support color in four formats : rgb, cmyk,
> hsb and named color. For named colors we need a color table.
> 

Why do you need a color table? Gdk provides function for color parsing
gdk_color_parse that support all names listed in /usr/share/X11/rgb.txt.
I think it's enough, I haven't looked inside though.

> I found a complete color table[2], but I think that is too big. I looked
> at the kdvi code, and they support arround 85 named colors. How many
> named colors we need to support?
> 
> Active DVI has a good example file[3] and they use more that 85 named
> colors.
> 
> [1] http://bugzilla.gnome.org/show_bug.cgi?id=303651
> [2] http://www.farb-tabelle.de/table-of-color.htm
> [3]
> http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/~checkout~/bazar-ocaml/advi/test/color.tex?rev=1.7;content-type=text%2Fplain

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]