[NTG-context] Automatic space before question mark

Marco Patzer lists at homerow.info
Fri Sep 6 18:20:31 CEST 2013


On 2013–09–06 "H. Özoguz" wrote:

> Thanks Marco and Wolfgang!

You should thank Hans for implementing all these features.

> How to define before ? and ! a 0.1 leftspace, but before the
> combination ?! only ONE 0.1 leftdistance - and not such a distance
> before the ! for this case?

The simplest solution would be to use “⁈” instead of “?!”.

\setupbodyfont
  [dejavu]

\definecharacterspacing
  [MySpacing]

\setupcharacterspacing
  [MySpacing]
  [\number`!]
  [left=.2]

\setupcharacterspacing
  [MySpacing]
  [\number`?]
  [left=.2]

\setcharacterspacing
  [MySpacing]

\starttext
  What? And why? Really⁈
\stoptext

Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130906/17c71d52/attachment.pgp>


More information about the ntg-context mailing list