ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* stretching the caps
@ 2002-02-15 11:59 Bill McClain
  2002-02-15 20:12 ` Patrick Gundlach
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bill McClain @ 2002-02-15 11:59 UTC (permalink / raw)


This is perhaps more of a TeX question. The typography manuals recommend
letterspacing strings of caps and small caps. I see the \stretch macro,
but it requires a box of predetermined size. I would like to do
something like:

Make the string 10% wider:

   \Mystretch {BARCHESTER TOWERS} 1.10

or: Add .2pts between each character:

   \Mystretch {FRAMLEY PARSONAGE} 0.2pts

(I swear I will never letterspace lowercase letters).

-Bill


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

* Re: stretching the caps
  2002-02-15 11:59 stretching the caps Bill McClain
@ 2002-02-15 20:12 ` Patrick Gundlach
  2002-02-15 21:12   ` Henning Hraban Ramm
  2002-02-15 22:26 ` Hans Hagen
  2002-02-16  4:18 ` Guy Worthington
  2 siblings, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2002-02-15 20:12 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 818 bytes --]

Hi Bill,

sorry, I cannot help, but I have some comments on this.

> This is perhaps more of a TeX question. The typography manuals recommend
> letterspacing strings of caps and small caps. 

Right, but not streched by a fixed amount. This should be done by kerning 
pairs. So, for example, RA needs a differend spacing then HE. 

Too bad that there is no 'kerning on the fly' for \TeX. (Or, did I miss 
something? Perhaps something for my diploma thesis?)

I would do stuff like this (and already did) with virtual fonts. So you can 
adjust the spacing properly and this is done everywhere you need the Caps.
It takes some time, but it is worth the trouble.

[...]

> (I swear I will never letterspace lowercase letters).

:) Doesn't quark express do nasty things like that?

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: stretching the caps
  2002-02-15 20:12 ` Patrick Gundlach
@ 2002-02-15 21:12   ` Henning Hraban Ramm
  0 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2002-02-15 21:12 UTC (permalink / raw)


Am Freitag, 15. Februar 2002 21:12 schrieb Patrick Gundlach:
> :) Doesn't quark express do nasty things like that?

If you don't change the *&'%$§'* american defaults.

Grütze (statt Quark) für alle!


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

* Re: stretching the caps
  2002-02-15 11:59 stretching the caps Bill McClain
  2002-02-15 20:12 ` Patrick Gundlach
@ 2002-02-15 22:26 ` Hans Hagen
  2002-02-16  4:18 ` Guy Worthington
  2 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2002-02-15 22:26 UTC (permalink / raw)
  Cc: ntg-context

At 05:59 AM 2/15/2002 -0600, Bill McClain wrote:
>This is perhaps more of a TeX question. The typography manuals recommend
>letterspacing strings of caps and small caps. I see the \stretch macro,
>but it requires a box of predetermined size. I would like to do
>something like:
>
>Make the string 10% wider:
>
>    \Mystretch {BARCHESTER TOWERS} 1.10
>
>or: Add .2pts between each character:
>
>    \Mystretch {FRAMLEY PARSONAGE} 0.2pts
>
>(I swear I will never letterspace lowercase letters).

ok, in that case i'll tell you the trick:

\def\stretchedspaceamount{2pt} \stretchednormalcase{Hello World}

\def\stretchedspaceamount{3pt} \stretchednormalcase{Hello World}

beware: you need to use {\"e} or >127 ascii's for special chars

i will provide a neater mechanism some day (also outline fonts and so)

Hans

PS. See core-fnt and supp-fun for other trickery
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: stretching the caps
  2002-02-15 11:59 stretching the caps Bill McClain
  2002-02-15 20:12 ` Patrick Gundlach
  2002-02-15 22:26 ` Hans Hagen
@ 2002-02-16  4:18 ` Guy Worthington
  2 siblings, 0 replies; 5+ messages in thread
From: Guy Worthington @ 2002-02-16  4:18 UTC (permalink / raw)
  Cc: ntg-context

Bill McClain wrote
> This is perhaps more of a TeX question. The typography manuals recommend
> letterspacing strings of caps and small caps. I see the \stretch macro,
> but it requires a box of predetermined size. I would like to do
> something like:
> 
> Make the string 10% wider:
> 
>    \Mystretch {BARCHESTER TOWERS} 1.10
> 
> or: Add .2pts between each character:
> 
>    \Mystretch {FRAMLEY PARSONAGE} 0.2pts
> 
> (I swear I will never letterspace lowercase letters).

If you can live with a muddle of plain, latex and context, then
consider the soul.sty package (available on CTAN).  I've included an
example below

%--------------------------------------------------
\input miniltx
\input soul.sty

\sodef\SO{}{.08em}{.4em}{1em}%
\setuplabeltext[chapter=\SO{CHAPTER} ]
\def\ChapterTitle#1#2{%
  \vbox{
    \hbox{\midaligned{#1}}
    \blank[big]
    \hbox{\midaligned{#2}}
  }
}

\setuphead
  [chapter]
  [command=\ChapterTitle,
   page=right]

\setupbodyfont[cmr,10pt]

\starttext

\chapter{\small\SO{WHO WILL BE THE NEW BISHOP?}}

In the latter days of July in the year 185--, a most important
question was for 10 days hourly asked in the cathedral city of
Barchester, and answered every hour in various ways---Who was to be
the new bishop?

...

\stoptext
%--------------------------------------------------


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

end of thread, other threads:[~2002-02-16  4:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-15 11:59 stretching the caps Bill McClain
2002-02-15 20:12 ` Patrick Gundlach
2002-02-15 21:12   ` Henning Hraban Ramm
2002-02-15 22:26 ` Hans Hagen
2002-02-16  4:18 ` Guy Worthington

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