After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 303651 - no colored text/ ps-images displayed in dvi files
no colored text/ ps-images displayed in dvi files
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
0.3.x
Other Linux
: Normal enhancement
: 0.10
Assigned To: Evince Maintainers
Evince Maintainers
: 341200 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-05-10 11:00 UTC by bugreports
Modified: 2007-04-07 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix an infinite call-loop in mdvi-lib. (637 bytes, patch)
2006-08-19 20:42 UTC, Ricardo Markiewicz
none Details | Review
Add DVI Color special (2.87 KB, patch)
2006-08-19 20:44 UTC, Ricardo Markiewicz
none Details | Review
Test file for DVI specials (48.80 KB, application/x-dvi)
2006-08-19 20:46 UTC, Ricardo Markiewicz
  Details
Updated patch for dvi-color-specials (3.91 KB, patch)
2007-01-28 22:17 UTC, Ricardo Markiewicz
committed Details | Review

Description bugreports 2005-05-10 11:00:32 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.
Comment 1 Nickolay V. Shmyrev 2005-05-10 19:05:28 UTC
Right, we need support for dvi specials
Comment 2 Nickolay V. Shmyrev 2006-05-11 05:04:48 UTC
*** Bug 341200 has been marked as a duplicate of this bug. ***
Comment 3 Ricardo Markiewicz 2006-08-19 20:42:51 UTC
Created attachment 71214 [details] [review]
Fix an infinite call-loop in mdvi-lib.

Fix an infinite call-loop when mdvi_register_special is called.
Comment 4 Ricardo Markiewicz 2006-08-19 20:44:41 UTC
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.
Comment 5 Ricardo Markiewicz 2006-08-19 20:46:06 UTC
Created attachment 71216 [details]
Test file for DVI specials

Test file for DVI specials
Comment 6 Ricardo Markiewicz 2006-08-19 20:51:16 UTC
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.
Comment 7 Nickolay V. Shmyrev 2006-08-22 00:13:30 UTC
Thanks for the patch, Ricardo. I'll try to review it in near future.
Comment 8 Ricardo Markiewicz 2006-08-22 17:35:31 UTC
I found a couple of bugs in my patch, so I will update it in the next days.
Comment 9 Wouter Bolsterlee (uws) 2006-12-21 00:09:30 UTC
Any progress, Ricardo?
Comment 10 Ricardo Markiewicz 2007-01-05 00:32:45 UTC
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).
Comment 11 Ricardo Markiewicz 2007-01-28 22:17:03 UTC
Created attachment 81397 [details] [review]
Updated patch for dvi-color-specials
Comment 12 Carlos Garcia Campos 2007-04-07 11:36:28 UTC
Hi Ricardo, sorry for the late reply. I've just applied the patch. Thank you very much.