unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean-Christophe Helary <jean.christophe.helary@traductaire-libre.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>,
	Stefan Kangas <stefankangas@gmail.com>
Subject: Re: Translating the eps files in lispintro
Date: Sun, 21 Jan 2024 15:34:27 +0000	[thread overview]
Message-ID: <358143F2-8762-40B1-ABB1-2280EF291A45@traductaire-libre.org> (raw)
In-Reply-To: <CC9BF242-41EE-439C-8F9E-F13494D3BE59@gnu.org>



> On Jan 21, 2024, at 23:40, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> On January 21, 2024 3:47:42 PM GMT+02:00, Stefan Kangas <stefankangas@gmail.com> wrote:
>> Jean-Christophe Helary <jean.christophe.helary@traductaire-libre.org>
>> writes:
>> 
>>> Is there a practical way to edit the EPS files in the Introduction to Programming in Emacs Lisp?
>>> 
>>> I tried to modify the text directly in Emacs but the result was not satisfying.
>>> 
>>> I was wondering if it would not be a better solution to use SVG instead?
>> 
>> Why not, but does texinfo support SVG?  Starting with which version?

It's more a question of using SVG as a base from which to convert to other formats. See below.

> AFAIK, Texinfo doesn't support SVG images in Info documents.

Info is not concerned by eps or pdf either.

eps seems to be here to cover the TeX (DVI) output and pdf is here for the TeX (PDF) output. Html and info use the plain text graphs that are in the texi sources, and I guess DocBook too:

@c cons-cell-diagram #2
@ifnottex
@smallexample
@group
bouquet
     |
     |     ___ ___      ___ ___      ___ ___
      --> |___|___|--> |___|___|--> |___|___|--> nil
            |            |            |
            |            |            |
             --> rose     --> violet   --> buttercup
@end group


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: is EPS an accepted (editable) source format?

It would seem more practical to have a format that's a bit easier to edit (SVG, if only because it supports unicode) and from there use conversion tools to create the required formats:

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 not use images but just plain text)
eps, gif, jpeg (jpg), pdf, png, svg for DocBook output

https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Images


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.

Or maybe the actual source for the EPS (and PDF) files found in the intro is somewhere else? Are the files created from the texinfo source?



  reply	other threads:[~2024-01-21 15:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 11:17 Translating the eps files in lispintro Jean-Christophe Helary
2024-01-21 12:35 ` Po Lu
2024-01-21 13:47 ` Stefan Kangas
2024-01-21 14:40   ` Eli Zaretskii
2024-01-21 15:34     ` Jean-Christophe Helary [this message]
2024-01-21 16:05       ` Eli Zaretskii
2024-01-21 16:32         ` Jean-Christophe Helary
2024-01-23 17:15           ` Eli Zaretskii
2024-01-22  8:57       ` Tim Landscheidt
2024-01-22 13:20         ` Jean-Christophe Helary
2024-01-23 16:09           ` Tim Landscheidt
2024-01-23 20:08       ` Stefan Monnier via Emacs development discussions.
2024-01-24 12:25         ` Eli Zaretskii
2024-01-24 13:10           ` Ihor Radchenko
2024-01-24 18:20           ` Yuri Khan
2024-01-24 18:59             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=358143F2-8762-40B1-ABB1-2280EF291A45@traductaire-libre.org \
    --to=jean.christophe.helary@traductaire-libre.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).