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: John Darrington
Subject: Re: Ship large amounts of image files?
Date: Sun, 14 Oct 2012 21:01:48 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Thanks for looking into it.  It seems I am seeing that fallback behaviour.

J'

On Sun, Oct 14, 2012 at 09:52:29AM -0700, Ben Pfaff wrote:
     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.
     
     _______________________________________________
     pspp-dev mailing list
     address@hidden
     https://lists.gnu.org/mailman/listinfo/pspp-dev

Attachment: signature.asc
Description: Digital signature


reply via email to

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