Article View: gnu.groff.bug
Article #79\(rq does strange things in combination with groff -X -Tps
From: John Jorgensen
Date: Fri, 06 Nov 1992 15:29
Date: Fri, 06 Nov 1992 15:29
71 lines
2487 bytes
2487 bytes
GROFF VERSION: 1.06 MACHINE: Sun SPARCSTATION ELC, IPX OS: SunOS 4.1.2 COMPILER: gcc version 2.2.2 INPUT FILES: # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by on Fri Nov 6 10:12:12 EST 1992 # Contents: rq_test.tr echo x - rq_test.tr sed 's/^@//' > "rq_test.tr" <<'@//E*O*F rq_test.tr//' @.nf This is the \e(rq character (in at-signs): @\(rq@. @//E*O*F rq_test.tr// chmod u=rw,g=r,o=r rq_test.tr exit 0 COMMAND LINE: groff -X -Tps rq_test.tr DESCRIPTION OF INCORRECT BEHAVIOUR: There seems to be a problem with the definition of the right quotation mark character \(rq (and the \*(rq string when using the me macros) in combination with gxditview via "groff -X -Tps". On the screen, a spurious space shows up after the quotation mark. If you use the previewer's print option, the printed output contains an apostrophe followed by a right double quotation mark instead of just a double quotation mark (though it could be three apostrophes--my eyes aren't keen enough to be sure of the distinction). SUGGESTED FIX: I suspect that the problem is that the definition of Xps-char in tmac.Xps uses the ' character as a delimiter, which fouls up when Xps-char is passed '' as an argument. Using @ as a delimiter instead fixes this problem, though I'm not certain it doesn't cause others: *** /usr/local/share/lib/groff/tmac/tmac.Xps Wed Sep 16 15:16:21 1992 --- tmac.Xps Thu Nov 5 16:48:20 1992 *************** *** 2,8 **** .nr _C \n(.C .cp 0 .de Xps-char ! .char \\$1 \Z'\X'ps: invis'\\$2\X'ps: endinvis''\\$1 .. .Xps-char \(bu \fS\(bu\fP .Xps-char \(em "\v'-.25m'\h'.05m'\D'l .9m 0'\h'.05m'" --- 2,8 ---- .nr _C \n(.C .cp 0 .de Xps-char ! .char \\$1 \Z@\X@ps: invis@\\$2\X@ps: endinvis@@\\$1 .. .Xps-char \(bu \fS\(bu\fP .Xps-char \(em "\v'-.25m'\h'.05m'\D'l .9m 0'\h'.05m'"
Technical Details
Message-ID:
<9211061529.AA02942@buffoon.qucis.queensu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qucis.queensu.ca!jorgnsnShow Full Headers
Complete Article Headers
Newsgroups: gnu.groff.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qucis.queensu.ca!jorgnsn From: jorgnsn@qucis.queensu.ca (John Jorgensen) Subject: \(rq does strange things in combination with groff -X -Tps Message-ID: <9211061529.AA02942@buffoon.qucis.queensu.ca> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 6 Nov 1992 15:29:28 GMT Approved: bug-groff@prep.ai.mit.edu Lines: 74