9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plan9port troff no Greek letters
@ 2010-09-20 11:46 Rudolf Sykora
  2010-09-20 12:00 ` EBo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rudolf Sykora @ 2010-09-20 11:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

my plan9 machine has broken down and I need to continue working.
I use troff with math. When I tried to typeset my text under plan9port
(instead of the native plan9) with

cat $stem.ms |9 pic|9 eqn|9 troff -ms|9 tr2post | 9 psfonts >$stem.ps

I can't see any Greek letters.
Is there sth. simple to do?

Thanks a lot!
Ruda

PS.: Does anyone of you know if it is possible to teach linux to read
unicode letters as plan9 does? I mean e.g. alt+*+a means alpha, etc.



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [9fans] plan9port troff no Greek letters
@ 2010-09-20 12:25 erik quanstrom
  0 siblings, 0 replies; 7+ messages in thread
From: erik quanstrom @ 2010-09-20 12:25 UTC (permalink / raw)
  To: 9fans

<rudolf.sykora@gmail.com> wrote:
> Hello,
>
> my plan9 machine has broken down and I need to continue working.
> I use troff with math. When I tried to typeset my text under plan9port
> (instead of the native plan9) with
>
> cat $stem.ms |9 pic|9 eqn|9 troff -ms|9 tr2post | 9 psfonts >$stem.ps
>
> I can't see any Greek letters.
> Is there sth. simple to do?

good question.  there seems to be something wrong with the troff
setup on p9p, at least on my machine

	echo αβδγ '\(*a' | 9 troff -ms | page
looks something like
	±²³ αβ
on my machine, so it doesn't appear to be a font problem, it appears
to be a mapping problem.

perhaps you could work around with

	... | sed 's/α/\(*a/g
		...
		s/Ω/\(*W/g' | ...

i thought this used to work, but my c.a. 1995 executable has the same
problem.  and since troff does the right thing natively on my 32-bit
rune system, it's not a 32-bit rune problem.

> PS.: Does anyone of you know if it is possible to teach linux to read
> unicode letters as plan9 does? I mean e.g. alt+*+a means alpha, etc.

i've been using utf-8 on unix since ~1992.  sam, 9term and the no-longer
new acme do a fine job.  in the old days, there were few problems at all
with this (execept for the occasional grep snafu).  now that unix tools are
so much "smarter", it's harder to outwit them but it still works pretty well.

the good news is we have replacements in the form of p9p programs.
the bad news is you have to remember to use them.  and there's always
the question of which grep are you running where.

- erik



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

end of thread, other threads:[~2010-09-24  5:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-20 11:46 [9fans] plan9port troff no Greek letters Rudolf Sykora
2010-09-20 12:00 ` EBo
2010-09-22 17:56 ` Russ Cox
2010-09-22 18:38   ` Rudolf Sykora
2010-09-23  1:20   ` erik quanstrom
2010-09-24  5:02 ` Tony Lainson
2010-09-20 12:25 erik quanstrom

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).