Re: Preventing not-so-smart quotes (was Re: To .jpg or not)
Re: Preventing not-so-smart quotes (was Re: To .jpg or not)
- Subject: Re: Preventing not-so-smart quotes (was Re: To .jpg or not)
- From: Christopher Nebel <email@hidden>
- Date: Thu, 25 Mar 2004 19:44:53 -0800
On Mar 25, 2004, at 5:58 PM, Walter Ian Kaye wrote:
If you feel really strongly about it, you could modify [troff] to not
do that, which would at least make local man pages palatable.
Incantation?
Um. You had to make me figure this out! I was thinking of modifying
the -Tascii driver for troff, which would require writing some C code,
but you can fake it by altering the doc.tmac macro package something
like this:
/usr/share/groff/1.18.1/tmac/doc.tmac
@@ -598,8 +598,8 @@
.de Dq
.if !\n[arg-limit] \
.ds macro-name Dq
-.ds quote-left "\*[Lq]
-.ds quote-right "\*[Rq]
+.ds quote-left "\*[q]
+.ds quote-right "\*[q]
.enclose-string \$@
..
.de Eq
@@ -627,8 +627,8 @@
.de Sq
.if !\n[arg-limit] \
.ds macro-name Sq
-.ds quote-left "\*[left-singlequote]
-.ds quote-right "\*[right-singlequote]
+.ds quote-left \&'
+.ds quote-right \&'
.enclose-string \$@
..
.de Es
(The lines beginning with "-" are the originals; the lines with "+" are
what to change them to. Don't type the -/+.) As written, this will
make typesetters output straight quotes too, but some sufficiently
clever troff code could probably fix that. (Exercise is left for the
reader. I don't really know troff; I hacked this together by looking
at other parts of the macro file.)
The fact that ProFont has [smart quoting] on by default is ironic
considering its stated purpose.
Indeed. I wonder how the tables got in there in the first place?
My theory -- which I didn't come up with, one of our font guys
suggested this -- is that someone ran an old tool called GXifier on it
back when Quickdraw GX was a big deal (System 7.5, circa 1994, if I
remember right). It would take your normal font and make it all
GX-spiffy -- problem was, it was overly aggressive and added some
features (like automatic smart quotes) that weren't exactly a good idea
at the time, and definitely aren't a good idea now that we have
Unicode.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.