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 13:32:03 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Looking at try_docbook_image, it only tries looking in one
location, the current directory.  If you are using separate build
and source directories, perhaps the .png files aren't actually in
the current directory when the makeinfo call occurs?  Or maybe
the doc/ prefix is missing?  I guess "strace" would help.

(I haven't tried this myself.)

John Darrington <address@hidden> writes:

> 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



reply via email to

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