[9fans] eqn and unicode -- Again

2009-06-06 Thread Gregory Pavelcak
I should probably just drop it because I reveal my ignorance when I post, and erik is the only one who has shown any interest, but ... I guess what I want is for eqn to sort of immediately convert GAMMA to Γ and then go about its business with Γ, as if it never saw the word GAMMA, got it? So, I w

Re: [9fans] eqn and unicode

2009-06-02 Thread erik quanstrom
> erik, > > You're reply and some reflection convinced me that my first > approach is just wrong. I don't understand the next-to-last > paragraph though. I tried creating gktbl and making the change > you suggest to text.c, and it seems to work. Why does > isalpharune() need changing? in trans(),

Re: [9fans] eqn and unicode

2009-06-02 Thread Gregory Pavelcak
erik, You're reply and some reflection convinced me that my first approach is just wrong. I don't understand the next-to-last paragraph though. I tried creating gktbl and making the change you suggest to text.c, and it seems to work. Why does isalpharune() need changing? Greg > i'm pretty sure

Re: [9fans] eqn and unicode

2009-06-02 Thread erik quanstrom
> Hmm. I submitted a patch so that fonts would apply to resword > rather than making it so that they don't apply to greek letters, > and I'm not even sure I did that right. > > diff -c /sys/src/cmd/eqn/text.c /usr/gp/sys/src/cmd/eqn/text.c > /sys/src/cmd/eqn/text.c:83,89 - /usr/gp/sys/src/cmd/eqn/

Re: [9fans] eqn and unicode

2009-06-02 Thread Gregory Pavelcak
> On Thu May 28 19:07:48 EDT 2009, r...@swtch.com wrote: >> On Thu, May 28, 2009 at 4:08 AM, Gregory Pavelcak >> wrote: >> > If you write the eqn-word for a greek letter, "GAMMA" for >> > example; eqn passes the unicode character (the output of >> > Alt-*G) to troff. If, on the other hand, you typ

Re: [9fans] eqn and unicode

2009-06-01 Thread erik quanstrom
On Thu May 28 19:07:48 EDT 2009, r...@swtch.com wrote: > On Thu, May 28, 2009 at 4:08 AM, Gregory Pavelcak > wrote: > > If you write the eqn-word for a greek letter, "GAMMA" for > > example; eqn passes the unicode character (the output of > > Alt-*G) to troff. If, on the other hand, you type Alt-*

Re: [9fans] eqn and unicode

2009-05-28 Thread Russ Cox
On Thu, May 28, 2009 at 4:08 AM, Gregory Pavelcak wrote: > If you write the eqn-word for a greek letter, "GAMMA" for > example; eqn passes the unicode character (the output of > Alt-*G) to troff. If, on the other hand, you type Alt-*G in eqn, > it passes `"\f2Γ\fP' to troff, thus producing, by my