GNOME Bugzilla – Bug 303651
no colored text/ ps-images displayed in dvi files
Last modified: 2007-04-07 11:36:28 UTC
just take some .dvi file which has colored text and an image included. then that colored text is displayed as b/w and the image is completely dropped.
Right, we need support for dvi specials
*** Bug 341200 has been marked as a duplicate of this bug. ***
Created attachment 71214 [details] [review] Fix an infinite call-loop in mdvi-lib. Fix an infinite call-loop when mdvi_register_special is called.
Created attachment 71215 [details] [review] Add DVI Color special This patch add foreground color specials in the DVI backend. It support color in RGB, HSB, CMYK and Named-colors.
Created attachment 71216 [details] Test file for DVI specials Test file for DVI specials
The attached patch add the color special into DVI backend. Additionally it enable psfile bounding box drawing (implemented in mdvi-lib and enable when I call mdvi_register_special). I need to investigate a little more onto how fetch and draw the image on the document. Please, feel free to comment about the patch.
Thanks for the patch, Ricardo. I'll try to review it in near future.
I found a couple of bugs in my patch, so I will update it in the next days.
Any progress, Ricardo?
Sorry for the lag, I was busy the last months. At this moment I stuck with the background color, because I need to know the color before mdvi_dopage is called, and mdvi don't do any page preprocessing. For the ps-images (that they are external to the DVI file), I've no idea how I'll load and store the images in memory. The font-color special is working (I'll upload an updated path tomorrow).
Created attachment 81397 [details] [review] Updated patch for dvi-color-specials
Hi Ricardo, sorry for the late reply. I've just applied the patch. Thank you very much.