🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by John Jorgensen Fri, 06 Nov 1992 15:29
\(rq does strange things in combination with groff -X -Tps
#79
Author: John Jorgensen
Date: Fri, 06 Nov 1992 15:29
71 lines
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'"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads