Re: "Save as" key-binding, "smart quotes"

New Message Reply Date view Thread view Subject view Author view

From: Jonathan Guyer (jguyer@his.com)
Date: 20 Aug 99, 00:42 EST


From: Jonathan Guyer <jguyer@his.com>
Subject:      Re: "Save as" key-binding, "smart quotes"

At 9:53 AM -0400 8/19/99, Dominique Dhumieres wrote:
>B.Philip Jonsson wrote:
>
>> Also: can I get text mode to use and balance Mac's "smart
>> quotes" (xD2-xD5)?
>
>As far I can see, the pairs used by the 'balance' command are hard-coded.
>Would it be possible in Alpha 8 to be able to add pairs to those built in?
>(for instance <>, \le\ge, "smart single quotes" and so on).

I don't think Alpha's 'balance' is what BP meant. I think the request is
that when you type '"' (0x22), you get '"' (0xD2), and then when you type
the next '"', you get '"' (OxD3). This is already implemented (narrowly) in
TeX mode, where you get TeX smart quotes ("``" and "''").

I should be a pretty simple matter to generalize smartDQuote (and its ilk)
from latexSmart.tcl to work in a mode-dependent way. I leave this as an
exercise for the reader. 8^)

As to generalizing 'balance', yeah, I expect we can do this. We're
gradually working on removing _all_ of these hard-coded values. Some are
subtle, though.

__________________________________________________________________
  Jonathan E. Guyer
  <http://www.his.com/jguyer/>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:50 EST