9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] plan9port troff no Greek letters
Date: Mon, 20 Sep 2010 08:25:48 -0400	[thread overview]
Message-ID: <0474a0c17b4e77d88670c1573d77d7b6@plug.quanstro.net> (raw)

<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



             reply	other threads:[~2010-09-20 12:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20 12:25 erik quanstrom [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-20 11:46 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0474a0c17b4e77d88670c1573d77d7b6@plug.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).