pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ship large amounts of image files?


From: Ben Pfaff
Subject: Re: Ship large amounts of image files?
Date: Sun, 14 Oct 2012 09:52:29 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

John Darrington <address@hidden> writes:

> On Sat, Oct 13, 2012 at 01:19:09PM -0700, Ben Pfaff wrote:
>      
>      I think that the most important format is .png.  I don't know of
>      any Texinfo format that requires .jpg.  (Which one does?)  
>
> makeinfo --docbook generates xml which refers to JPG:
> <imagedata fileref="Images/pic10.jpg" format="JPG">

I'm a little surprised.  Looking at texinfo-4.13a, I see the
following in makeinfo/xml.c:

    void
    xml_insert_docbook_image (char *name_arg)
    {
      int found = 0;
      int elt = xml_in_para ? INLINEIMAGE : MEDIAOBJECT;

      if (is_in_insertion_of_type (floatenv))
        xml_begin_docbook_float (INFORMALFIGURE);
      else if (!xml_in_para)
        xml_insert_element (INFORMALFIGURE, START);

      xml_no_para++;

      xml_insert_element (elt, START);

      /* A selected few from http://docbook.org/tdg/en/html/imagedata.html.  */
      if (try_docbook_image (name_arg, "eps", "EPS", 0))
        found++;
      if (try_docbook_image (name_arg, "gif", "GIF", 0))
        found++;
      if (try_docbook_image (name_arg, "jpg", "JPG", 0))
        found++;
      if (try_docbook_image (name_arg, "jpeg", "JPEG", 0))
        found++;
      if (try_docbook_image (name_arg, "pdf", "PDF", 0))
        found++;
      if (try_docbook_image (name_arg, "png", "PNG", 0))
        found++;
      if (try_docbook_image (name_arg, "svg", "SVG", 0))
        found++;

      /* If no luck so far, just assume we'll eventually have a jpg.  */
      if (!found)
        try_docbook_image (name_arg, "jpg", "JPG", 1);

      xml_insert_text_file (name_arg);
      xml_insert_element (elt, END);

      xml_no_para--;

      if (elt == MEDIAOBJECT)
        xml_insert_element (INFORMALFIGURE, END);
    }

which implies, at least, that many image formats are supported,
including PNG.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]