From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: No NEWS entry for doc-view-mupdf-use-svg (Emacs 30.0.91 feedback) Date: Mon, 23 Sep 2024 08:44:35 +0200 Message-ID: <8734lqzx64.fsf@gnu.org> References: <87cyky43fb.fsf@ice9.digital> <86setu5f85.fsf@gnu.org> <87zfo22jy4.fsf@ice9.digital> <86bk0h5sx9.fsf@gnu.org> <87ldzlgxvh.fsf@ice9.digital> <87msk0oqoq.fsf@gnu.org> <87plovmmox.fsf@ice9.digital> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4183"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.6; emacs 31.0.50 Cc: emacs-devel@gnu.org, Eli Zaretskii , visuweshm@gmail.com To: Morgan Willcock Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 23 08:45:32 2024 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 1sscp9-0000wG-QX for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Sep 2024 08:45:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sscoM-0004FL-Pd; Mon, 23 Sep 2024 02:44:42 -0400 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 1sscoK-0004F4-LV for emacs-devel@gnu.org; Mon, 23 Sep 2024 02:44:40 -0400 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 1sscoJ-0007Uj-JZ; Mon, 23 Sep 2024 02:44:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=2n19boFGx8wqjKmEJUEZVUv4BWzRKuPbDCvDeVewDRU=; b=SSAxaABTmm3GyysCnrGG 1VF3358bxFXc6lFWua7gZZrplkyaQSu7UTcDxjdSAWAe2ZQVhNVefHOqr485JP56Orfad2HSNBet/ O4HcSTsdmpvKRqYT4C+Ts7sFo9KiEQf/gCf/6Pd3PpiYIQV/MC2esyeq7VWFt5zwpKLtwA9XM2QKu Ah43lPUpdLdREiVo4HAayxml6dZwFxJPxF4EaCEMTOWkeUTYrHJtS14KlAQgLvbWEJDRpm1Of39DH vApfxYHZSVFv+dALMI4ifV7qNTMRYv6OiXd2os2LJdVN+earQn2UGaNckq18q1bn+nBXR/zoQL1T6 +zB5N1XSC83Aqg==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudelkedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepvhhishhufigvshhhmhesghhmrghilhdrtghomhdprhgtphhtthhopegvlhhiiiesgh hnuhdrohhrghdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgpdhr tghpthhtohepmhhorh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <87plovmmox.fsf@ice9.digital> (Morgan Willcock's message of "Sun, 22 Sep 2024 21:57:02 +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:323944 Archived-At: Morgan Willcock writes: > When looking at the SVG files in the location browsed by > doc-view-dired-cache I can see that the Azure invoice has: > > - A transparent background with black and grey text on it. > - A dark grey border with white text on it. > - A white border with black text on it. > > The transparent background is shown as white or black, depending on > whether the light or dark theme is loaded, but the text is always > readable because the text colour complements the background. > > The problem is the text that is not on the transparent area of the > document, presumably because a coloured border cannot be identified as > being part of the background and so the border colours will never > follow the theme. > > Based on my usage, setting doc-view-mupdf-use-svg to t seems to make > reading PDF documents significantly more difficult. > > Perhaps there should be an option to just assume a white background > and render using the original colours, and turn that on by default. That's what Visuwesh's advice of setting doc-view-svg-face's foreground/background to black and white would do. We could do that by default instead of inheriting from the default face (which is modified by the theme). That would probably give sensible results in most cases. I've also tried un-inheriting doc-view-svg-face from the default face so that it is the empty face, i.e., all its attributes are nil. In that case, it looks exactly as if it inherited from the default face, i.e., the document is styled according to the theme with the same problems for certain files as you see. I've also created a PDF with blue background and different text colors. In that case, doc-view-svg-face set to "black on wide" doesn't seem to have any effect. The foreground/background colors of the document appear exactly as I've specified them in the original LaTeX document and as the Evince or mupdf PDF viewer show them, too. Eli, what do you think? > Would that be what a regular PDF viewer does? It seems so. Bye, Tassilo