bugtexinfo - GNU documentation system - Bugs: bug #37686, standalone info ignores text...


You are not allowed to post comments on this tracker with your current authentication level.

bug #37686: standalone info ignores text attribute of image tag

Submitted by:  Karl Berry <karl>
Submitted on:  Wed 07 Nov 2012 12:01:15 AM UTC  
Category:  None Release: 
Priority:  5 - Normal Severity:  3 - Normal
Item Group:  None Privacy:  Public
Open/Closed:  Closed Assigned to:  Sergey Poznyakoff <gray>
Status:  Fixed

Sat 17 Nov 2012 10:04:49 PM UTC, comment #4:

It works as expected. Thanks Sergey!

Patrice Dumas <pertusus>
Project Member
Sat 17 Nov 2012 05:18:28 PM UTC, comment #3:

Fixed. Please check.

Sergey Poznyakoff <gray>
Project MemberIn charge of this item.
Wed 07 Nov 2012 11:23:51 PM UTC, comment #2:

that ^H^@[...] stuff is actually documented in the manual, search for the literal string "^H^@" (not control characters) and you will see (there is a little more in the CVS texinfo.txi than in 4.13).

Anyway, it is currently only used for two things: 1) images, and 2) as a marker that "this is an index node" (ie, with @printindex output). This was added so index-search could unambiguously know which nodes to search. I guess standalone info could/should also use this. (Whether it was ever actually used as intended in emacs info, I do not know.) But it's way less important than the image stuff.

Thanks Sergey.

Karl Berry <karl>
Project Administrator
Wed 07 Nov 2012 05:47:07 AM UTC, comment #1:

Sure, will do. By the way, the ^@^H[...^@^H] construct seems undocumented. Just for the record, what can be inside of it, apart from the "image" stuff?

Sergey Poznyakoff <gray>
Project MemberIn charge of this item.
Wed 07 Nov 2012 12:01:15 AM UTC, original submission:

Hi Sergey,

It seems standalone info is effectively ignoring our wonderful ^@^H[...^@^H] tags in info files.

There is one case where this is a problem (originally reported by arnold robbins for gawk): if an image is available as both .txt and another format (say .png), CVS makeinfo outputs both in the .info file, with the .txt file contents included in the text= attribute, as in:

[image src="ridt.png" text="----------------
|RIDT txt image|

Therefore Info displays nothing. Whereas if the png file does not exist, then makeinfo puts the actual contents of .txt file in the .info output, and thus of course Info displays it fine.

We want to allow users to have both .png and .txt (and whatever else), and we want to include both in the .info file since Emacs Info has the capability of actually displaying the (presumably preferable) .png.

So, would you have time to hack up the source to extract the contents of the text= attribute and display it? I took a quick look at window.c but was unfortunately not inspired to actually write anything :(.

The .texi is just the simplest possible image inclusion:
\input texinfo
@setfilename ridt.info
@node Top

I'll attach a tarball with the various test files for possible convenience, though any image will behave the same way. It's just having both .txt and something else visible at makeinfo time that matters. ("RIDT" is a conference I helped organize in 1991. How time flies. :)


Karl Berry <karl>
Project Administrator


Attached Files
file #26883:  ridt-img.tgz added by karl (7KiB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pertusus (Posted a comment)
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by karl (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-17 pertusus Open/ClosedOpen => Closed
        StatusReady For Test => Fixed
    2012-11-17 gray StatusIn Progress => Ready For Test
    2012-11-07 gray StatusNone => In Progress
    2012-11-07 karl Attached File- => Added ridt-img.tgz, #26883

    Back to the top

    Powered by Savane 3.3