Bug 668254

Summary: xditview does not show the tilde character
Product: [openSUSE] openSUSE 11.3 Reporter: Christopher Yeleighton <giecrilj>
Component: X11 ApplicationsAssignee: Michal Vyskocil <mvyskocil>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Final   
Target Milestone: Factory   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard: maint:released:11.4:41619
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 698290    
Attachments: groffer -TX100 ls snapshot

Description Christopher Yeleighton 2011-01-31 09:17:03 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13

XDitView, as invoked from Groffer, does not show occurrences of the tilde character.

Reproducible: Always

Steps to Reproduce:
  1. { groffer -TX100 ls; }

Actual Results:  
  1. do not list implied entries ending with 

Expected Results:  
  1. do not list implied entries ending with ~

Note: the default { groffer ls; } does show the tilde character but it is unreadable because lines of text overlap (the glyphs used are too large).
Workaround: { groffer -Tps ls; }, requires GV.
Comment 1 Christopher Yeleighton 2011-01-31 10:18:07 UTC
You get the wrong glyph size by explicitly calling { groffer -Tps -X ls; } (in that order); these are the default options and they are obviously inconsistent.
Comment 2 Christopher Yeleighton 2011-02-01 23:44:32 UTC
and no arrows from pic, and no solid shapes
Comment 3 Michal Vyskocil 2011-04-28 14:37:21 UTC
Seems that groff-1.20.1 from 11.4+ don't have this problem (yes, excluding bnc#682913, but it will be fixed soon), please use this version. If you need use 11.3, I'll provide a backport build of it for 11.3.
Comment 4 Christopher Yeleighton 2011-04-29 08:31:39 UTC
Issue still present in groff-1.20.1-182.1.x86_64
Comment 5 Michal Vyskocil 2011-06-06 11:06:18 UTC
Created attachment 433032 [details]
groffer -TX100 ls snapshot

Hi, I'm not able to reproduce it. This is from my 11.3 system running latest groff from M17N. The tilde character looks good. Do you have any other things to test? For instance some example with arrows you mentioned few comments before.
Comment 6 Christopher Yeleighton 2011-06-06 12:43:34 UTC
(In reply to comment #5)
> Created an attachment (id=433032) [details]
> groffer -TX100 ls snapshot
> 
> Hi, I'm not able to reproduce it. This is from my 11.3 system running latest
> groff from M17N. The tilde character looks good. Do you have any other things
> to test? For instance some example with arrows you mentioned few comments
> before.

I got the tilde all right this time (mysteriously).  I changed the monitor to a higher resolution and the default glyph resolution to 100 (in KDE display settings) in the meantime.  (I would use -TX100 even before because it would give me bigger text, and you can change resolution interactively in xditview, which gxditview does not support).

The arrow appears when I declare width explicitly; perhaps the default width is too small for X11 (although it displays all right in Postscript).

The following PIC command produces a hollow circle instead of a filled one:

circle rad 0.05 solid;

Workaround: 

circle rad 0.05 filled 1;

{ groffer ls; } now produces Postscript on standard output (but it must be explicitly told ^D, otherwise it waits for input), which is acceptable, and { groffer -Tps -X ls; } produces readable output too.  

And the mouse-driven menu in gxditview does not work (it only appears) but the keyboard equivalents work.
Comment 7 Christopher Yeleighton 2011-06-06 12:50:44 UTC
However, the default package set does not supply gxditview, so groffer uses xditview (as in the bug report topic).

Still reproducible even with gxditview installed:

{ groffer -TX100 --x-viewer xditview ls; }

Either a bug in XOrg then, or gxditview should be provided by default (GNU groff is slightly incompatible with xditview).
Comment 8 Michal Vyskocil 2011-06-08 09:43:25 UTC
OK, now (In reply to comment #7)
> However, the default package set does not supply gxditview, so groffer uses
> xditview (as in the bug report topic).

OK, so I propose add the following to gxditview.spec

Supplements: packageand(groff:xorg-x11-libX11)

So the gxditview will be automatically installed on systems having groff and X11 libraries.

Does this work for you?
Comment 9 Michal Vyskocil 2011-06-08 09:55:50 UTC
Submitted a fix as revision 16 into M17N/groff
Comment 10 Christopher Yeleighton 2011-06-08 11:52:51 UTC
(In reply to comment #8)
> OK, so I propose add the following to gxditview.spec
> 
> Supplements: packageand(groff:xorg-x11-libX11)
> 
> So the gxditview will be automatically installed on systems having groff and
> X11 libraries.
> 
> Does this work for you?

If the incantation works as described, it will solve the problem in question,  

(It will also open an enhancement request to make gxditview more functional like xditview currently is.  Of course, having gxditview installed does not prevent anyone from using xditview if she is willing to trade accuracy for usability.)

Given the present situation, it would also be nice to support xditview in the alternatives system.
Comment 11 Michal Vyskocil 2011-06-09 08:28:58 UTC
OK then the new dependency will be added to Factory and backported to 11.4.

I'm not convinced there are users for (g)xditview alternatives, so I'm not going to implement that.

In case of gxditview usability - please forward your needs to upstream, I don't have any time to work on it. Thanks.
Comment 12 Swamp Workflow Management 2011-06-16 07:35:53 UTC
Update released for: groff-devx, gxditview, gxditview-debuginfo, gxditview-debugsource
Products:
openSUSE 11.4 (debug, i586, x86_64)