From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: DocView, mupdf and librsvg Date: Sat, 07 Jan 2023 15:31:01 +0200 Message-ID: <83lemesc8a.fsf@gnu.org> References: <87y1qefszp.fsf@ledu-giraud.fr> <87cz7q352t.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 07 14:51:04 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pE9bE-000684-5h for ged-emacs-devel@m.gmane-mx.org; Sat, 07 Jan 2023 14:51:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE9Hh-0000kf-T7; Sat, 07 Jan 2023 08:30:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE9HZ-0000hV-4i for emacs-devel@gnu.org; Sat, 07 Jan 2023 08:30:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE9HY-0005nW-7a; Sat, 07 Jan 2023 08:30:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rXe1Rt7mzVilCk1xRgJRrSx5+7AZs42fusdygL5pWsY=; b=OwKafRgIwFpu nClofW1iD1ALt3HCYst62JxRitcssFu2BnmBKl/t424osbfYJiE6m7HJ6EIT9qx2hiiDIkiQMuAVV Y/KsmzyqhPd1vqSKHxZ2XxSe0bOLymV3TRTXAeXRXsYDj0BOdqjL8ytQcuEklQas3RtspRrts7Hlr WS6gzCn6DMWmxjpafpUrdAK75htmhLUCrCe4XmdFm97TwkYJ77wdGCuqXj7+RXFB4PN4AemQXv+Hx c9F6tb6gSuHAogvM3e41yYHmivQNtBqB1awbvaX1TMnO0eECjm8pR0qIqHl5PJ5ZvyD/WEOCx2lRC ZZz/P3B25O8nxaVDZjbd5g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE9HV-0005JP-5Q; Sat, 07 Jan 2023 08:30:42 -0500 In-Reply-To: <87cz7q352t.fsf@gmx.net> (message from Stephen Berman on Sat, 07 Jan 2023 13:24:42 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302272 Archived-At: > From: Stephen Berman > Cc: "emacs-devel" > Date: Sat, 07 Jan 2023 13:24:42 +0100 > > On Sat, 07 Jan 2023 13:07:22 +0100 Manuel Giraud wrote: > > > Hi, > > > > From some month now, to read PDF, DocView has switched from producing > > PNG files for its page cache to producing SVG files. I think it is a > > good idea but I have found a bug (that is outside the scope of Emacs > > that's why I'm reporting here): mutool could generate SVG files that > > librsvg is not able to read back. > > > > FTR, I'm using mupdf 1.21.1 and librsvg 2.54.5. I've attached a sample > > PDF and the produced SVG if you want to test on your setting. > > Yes, this is apparently a bug in how mutool processes "<" since at least > version 1.21.0, see also bug#60308. > > > I think it would be wise to defaults `doc-view-mupdf-use-svg' to nil in > > the upcoming Emacs 29. I think instead of changing the default unconditionally, we should probe the version of mutool, and change it only for affected versions. Would someone like to propose a patch along those lines?