9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] troff in plan9port with a problem in tr2post
@ 2006-04-28  8:28 Lluís Batlle i Rossell
  2006-04-28 16:36 ` Russ Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Lluís Batlle i Rossell @ 2006-04-28  8:28 UTC (permalink / raw)
  To: 9fans Mailing list

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

I'd like to write a document in plan9port's troff (I'll need esperanto 
glyphs), and I even cannot success getting a postscript from a manpage.

I run, as stated in tr2post(1):
troff -man /usr/plan9/man/man1/tr2post.1 | tr2post | psfonts

and I get:
%!PS-Adobe-2.0
tr2post: <stdin>:6 :WARNING: cannot open file #9/troff/font/devps/TR
tr2post: <stdin>:6 :WARNING: fontpos=5
tr2post: <stdin>:6 :WARNING: fontmtab[0]=0x0
tr2post: <stdin>:6 :WARNING: fontmtab[1]=R
tr2post: <stdin>:6 :WARNING: fontmtab[2]=I
tr2post: <stdin>:6 :WARNING: fontmtab[3]=B
tr2post: <stdin>:6 :WARNING: fontmtab[4]=BI
tr2post: <stdin>:6 :WARNING: fontmtab[5]=TR
tr2post: <stdin>:6 :WARNING: fontmtab[6]=H
tr2post: <stdin>:6 :WARNING: fontmtab[7]=HI
tr2post: <stdin>:6 :WARNING: fontmtab[8]=HB
tr2post: <stdin>:6 :WARNING: fontmtab[9]=S1
tr2post: <stdin>:6 :WARNING: fontmtab[10]=S

being the tr2post: lines in stderr. Any clue about the problem? It's the 
first time I'm trying to use plan9's troff, so I'm quite lost.

Thanks in advance,
Lluís

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3311 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [9fans] rio
@ 2000-11-22  6:01 rob pike
  0 siblings, 0 replies; 10+ messages in thread
From: rob pike @ 2000-11-22  6:01 UTC (permalink / raw)
  To: 9fans

Rookie error in rio. In /sys/src/cmd/rio/wind.c,
change the line
			memmove(hidden+i, hidden+i+1, nhidden-i);
to
			memmove(hidden+i, hidden+i+1, (nhidden-i)*sizeof(hidden[0]));
and a stupid bug will vanish.  Astonishing it's lived
this long.

-rob


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [9fans] rio
@ 2000-07-30 14:53 rob pike
  0 siblings, 0 replies; 10+ messages in thread
From: rob pike @ 2000-07-30 14:53 UTC (permalink / raw)
  To: 9fans

Stupid bug introduced in rio, caused by our attempts to clean up
uses of %.*s.  /sys/src/cmd/rio/xfid.c:508 is missing an argument.
diff /n/dump/2000/0730/sys/src/cmd/rio/xfid.c xfid.c
508c508
< 			sprint(p, "%s/%.*s", w->dir, utfnlen(x->data, cnt));
---
> 			sprint(p, "%s/%.*s", w->dir, utfnlen(x->data, cnt), x->data);

The distributed binary is OK, but if you build from the unfixed
source all hell will break loose.

Mea culpa.  The compiler warns you and in all the furious building
I missed the warning.

-rob


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-05-04  1:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-28  8:28 [9fans] troff in plan9port with a problem in tr2post Lluís Batlle i Rossell
2006-04-28 16:36 ` Russ Cox
2006-04-28 16:46   ` [9fans] rio Sha0lin
2006-04-29 13:26     ` Sergey Zhilkin
2006-04-30 16:59       ` [9fans] rio Sha0lin
2006-04-30 18:31         ` Federico G. Benavento
2006-05-03 14:25           ` Sha0lin
2006-05-04  1:46             ` ISHWAR RATTAN
  -- strict thread matches above, loose matches on Subject: below --
2000-11-22  6:01 [9fans] rio rob pike
2000-07-30 14:53 rob pike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).