After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 568209 - yelp: patch to display images in Info docs
yelp: patch to display images in Info docs
Status: RESOLVED OBSOLETE
Product: yelp
Classification: Applications
Component: Info Pages
git master
Other All
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-18 20:07 UTC by Jan Nieuwenhuizen
Modified: 2018-05-22 12:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
yelp: display images in Info docs. (8.70 KB, patch)
2009-01-18 20:11 UTC, Jan Nieuwenhuizen
committed Details | Review
LilyPond's Absolute octave entry page with yelp-r3214 (139.31 KB, image/png)
2009-01-18 20:19 UTC, Jan Nieuwenhuizen
  Details
LilyPond's Absolute octave entry page with yelp-info-image patch (141.08 KB, image/png)
2009-01-18 20:20 UTC, Jan Nieuwenhuizen
  Details
simplify parsing of info * Notes:, merge with images. (14.53 KB, patch)
2009-05-06 14:06 UTC, Jan Nieuwenhuizen
none Details | Review

Description Jan Nieuwenhuizen 2009-01-18 20:07:31 UTC
Please describe the problem:
Yelp does not parse and display images in Info docs, rather
it mangles the cookie and displays the raw [image tag in text.

Steps to reproduce:
With yelp, visit an Info manual with images

example: http://lilypond.org/~janneke/software/info-image/info-image-1.tar.gz

lily docs: http://lilypond.org/download/binaries/documentation/lilypond-2.12.1-2.documentation.tar.bz2


Actual results:
Yelp does not display the image, but displays the raw [image tag in text, eg:

 [image src="lilypond/f4/lily-4221a4ab.png" alt="[image of music]" text="[image of music]"  ]



Expected results:
View the image inline.

Does this happen every time?
Yes.

Other information:
I'm attaching a patch against yelp HEAD

http://lilypond.org/~janneke/software/info-image/yelp-info-image.diff
Comment 1 Jan Nieuwenhuizen 2009-01-18 20:11:06 UTC
Created attachment 126714 [details] [review]
yelp: display images in Info docs.
Comment 2 Jan Nieuwenhuizen 2009-01-18 20:19:50 UTC
Created attachment 126715 [details]
LilyPond's Absolute octave entry page with yelp-r3214
Comment 3 Jan Nieuwenhuizen 2009-01-18 20:20:36 UTC
Created attachment 126716 [details]
LilyPond's Absolute octave entry page with yelp-info-image patch
Comment 4 Don Scorgie 2009-04-30 19:19:17 UTC
Many thanks for the patch.  I've now committed this to HEAD (rd0cd51f252fd) with a minor modification (to process images on pages with menus in them).  This'll be in yelp 2.28

Marking as fixed.

2009-04-30  Don Scorgie  <dscorgie@src.gnome.org>

	* src/yelp-info-parser.c: 
	* stylesheets/info2html: 
	Add support for displaying images in info
	files
	Bug #568209 - patch by Jan Nieuwenhuizen
Comment 5 Jan Nieuwenhuizen 2009-05-06 14:03:52 UTC
Thanks for applying!

I had a followup patch laying around that greatly simplifies
the "parsing" of `* Notes:' of info_process_text_notes ()
by taking advantage of regexps and handling images
and * Notes: alongside eachother.

I'm attaching an up to date version of the patch.
Comment 6 Jan Nieuwenhuizen 2009-05-06 14:06:00 UTC
Created attachment 134107 [details] [review]
simplify parsing of info * Notes:, merge with images.
Comment 7 Don Scorgie 2009-05-06 17:48:20 UTC
Thanks for the new patch.  Reopening so I don't forget about it.  I'll do a full review and get it committed soon.
Comment 8 Matthias Clasen 2012-05-27 17:20:04 UTC
this doesn't seem to work with today's yelp. I see [image of music] in yelps rendering of that 'absolute pitches' page
Comment 9 GNOME Infrastructure Team 2018-05-22 12:52:22 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp/issues/38.