--- ./configure.ac	2007/02/05 16:04:12	1.1
+++ ./configure.ac	2007/02/05 16:04:49
@@ -431,7 +431,7 @@ if test "x$enable_pdf" = "xyes" ; then
 	EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/postscript;application/x-bzpostscript;application/x-gzpostscript;image/x-eps;image/x-bzeps;image/x-gzeps;"
 fi
 if test "x$enable_dvi" = "xyes"; then
-	EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/x-dvi;"
+	EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/x-dvi;application/x-bzdvi;application/x-gzdvi;"
 fi
 if test "x$enable_djvu" = "xyes"; then
 	EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}image/vnd.djvu;"
--- libdocument/ev-document-factory.c	2007/02/05 16:05:21	1.1
+++ libdocument/ev-document-factory.c	2007/02/05 16:06:50
@@ -98,7 +98,9 @@ const EvDocumentType document_types[] = 
 
 #ifdef ENABLE_DVI
 	/* dvi: */
-	{"application/x-dvi",          EV_COMPRESSION_NONE, EV_BACKEND_DVI,  dvi_document_get_type},
+	{"application/x-dvi",          EV_COMPRESSION_NONE,  EV_BACKEND_DVI,  dvi_document_get_type},
+	{"application/x-bzdvi",        EV_COMPRESSION_BZIP2, EV_BACKEND_DVI,  dvi_document_get_type},
+	{"application/x-gzdvi",        EV_COMPRESSION_GZIP,  EV_BACKEND_DVI,  dvi_document_get_type},
 #endif
 
 #ifdef ENABLE_COMICS
