From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Translating the eps files in lispintro Date: Sun, 21 Jan 2024 16:32:15 +0000 Message-ID: References: <358143F2-8762-40B1-ABB1-2280EF291A45@traductaire-libre.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel , Stefan Kangas To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 21 17:45:26 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 1rRawm-0003r5-R9 for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jan 2024 17:45:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRaw9-0000me-1H; Sun, 21 Jan 2024 11:44:45 -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 1rRakS-0005m9-GF for emacs-devel@gnu.org; Sun, 21 Jan 2024 11:32:40 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRakP-0006fp-R6 for emacs-devel@gnu.org; Sun, 21 Jan 2024 11:32:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traductaire-libre.org; s=protonmail; t=1705854754; x=1706113954; bh=0gt/FEk6Zn+AHukK+xxchIGDpZanLWE7MTCFOrN4yrI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=GGjiUhgfPSgLzPBHVdSjiz6mofzUpX4ab1YJqnmIn5NTPmjjy3BO4+ykDPXMWOFvC LEnNnl1Lo4yVQkNJg6JnT1cBe9p5HJN5ej0XCkdpfILDTZ3ta0qJAvcs5MWl5a5gjS hWVZc0+37tLmoS2oBNT6DsdxIOe5H0Y6VPe810uwd7G6LdNXUXsHiqy4JXL+a0l2Cx sQaKks+DG/fju2tNga23t9Dd7L62UPGWvCcebNv+jMsz3NNibJ3vAbUmu0Q7It5PeR cAE6WFlTn4WaQ8db6N8OPGTCX8vfd89d9nZc9IKOWRhBehzvb5t5scsC0Ps0NHcfXk qnQap6EcR3E5Q== In-Reply-To: Feedback-ID: 92162971:user:proton Received-SPF: pass client-ip=185.70.40.136; envelope-from=jean.christophe.helary@traductaire-libre.org; helo=mail-40136.proton.ch X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 21 Jan 2024 11:44:41 -0500 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:315185 Archived-At: > On Jan 22, 2024, at 1:05, Eli Zaretskii wrote: >=20 > On January 21, 2024 5:34:27 PM GMT+02:00, Jean-Christophe Helary wrote: >>=20 >>=20 >>> On Jan 21, 2024, at 23:40, Eli Zaretskii wrote: >>>=20 >>> On January 21, 2024 3:47:42 PM GMT+02:00, Stefan Kangas wrote: >>>> Jean-Christophe Helary >>>> writes: >>>>=20 >>>>> Is there a practical way to edit the EPS files in the Introduction to= Programming in Emacs Lisp? >>>>>=20 >>>>> I tried to modify the text directly in Emacs but the result was not s= atisfying. >>>>>=20 >>>>> I was wondering if it would not be a better solution to use SVG inste= ad? >>>>=20 >>>> Why not, but does texinfo support SVG? Starting with which version? >>=20 >> It's more a question of using SVG as a base from which to convert to oth= er formats. See below. >>=20 >>> AFAIK, Texinfo doesn't support SVG images in Info documents. >>=20 >> Info is not concerned by eps or pdf either. >>=20 >> eps seems to be here to cover the TeX (DVI) output and pdf is here for t= he TeX (PDF) output. Html and info use the plain text graphs that are in th= e texi sources, and I guess DocBook too: >>=20 >> @c cons-cell-diagram #2 >> @ifnottex >> @smallexample >> @group >> bouquet >> | >> | ___ ___ ___ ___ ___ ___ >> --> |___|___|--> |___|___|--> |___|___|--> nil >> | | | >> | | | >> --> rose --> violet --> buttercup >> @end group >>=20 >>=20 >> The problem is that it does not seem trivial to edit the files in Emacs = and replace the English with Japanese strings, for ex. So my question is: i= s EPS an accepted (editable) source format? >>=20 >> It would seem more practical to have a format that's a bit easier to edi= t (SVG, if only because it supports unicode) and from there use conversion = tools to create the required formats: >>=20 >> eps for TeX (DVI output) >> pdf/png/jpg (jpeg) for TeX (PDF output) >> png, jpg (jpeg), gif for HTML output (although the current output does n= ot use images but just plain text) >> eps, gif, jpeg (jpg), pdf, png, svg for DocBook output >>=20 >> https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Images >>=20 >>=20 >> Considering the needs of the lisp introduction, we could have svg for an= eventual DocBook output, png for the HTML and PDF output, eps for the DVI = output and we'd be all set. >>=20 >> Or maybe the actual source for the EPS (and PDF) files found in the intr= o is somewhere else? Are the files created from the texinfo source? >>=20 >=20 > No, the Emacs Info reader will display PNG images if Emacs supports them,= and fall back to ASCII art if not. Ok, so we'd need eps (DVI), png (PDF/HTML/Info/DocBook) and svg could also = be used for DocBook if necessary. Inkscape could be used to (command-line) convert svg to eps and png. Would that be an acceptable proposition to have "better" (as in editable/tr= anslatable) image source files for the introduction?